| class TMdEOrderRule |
TMdEOrderRule defines a rule that is used for sorting the results of a query. A query may use multiple order rules.
| Public Member Functions | |
|---|---|
| TMdEOrderRule ( TOrderRuleType , TBool ) | |
| TMdEOrderRule (const CMdEPropertyDef &, TBool ) | |
| IMPORT_C TBool | Ascending () |
| IMPORT_C TBool | CaseSensitive () |
| IMPORT_C const CMdEPropertyDef * | PropertyDef () |
| TUint32 | RequiredBufferSize () |
| void | SerializeL (CMdCSerializationBuffer &, TMdCOffset &) |
| IMPORT_C void | SetAscending ( TBool ) |
| IMPORT_C void | SetCaseSensitive ( TBool ) |
| IMPORT_C void | SetPropertyDef (const CMdEPropertyDef &) |
| IMPORT_C void | SetType ( TOrderRuleType ) |
| IMPORT_C TOrderRuleType | Type () |
| Private Attributes | |
|---|---|
| TBool | iAscending |
| TBool | iCaseSensitive |
| const CMdEPropertyDef * | iPropertyDef |
| TOrderRuleType | iType |
| IMPORT_C | TMdEOrderRule | ( | TOrderRuleType | aType, |
| TBool | aAscending = ETrue | |||
| ) | ||||
Constructor.
| TOrderRuleType aType | Type of the order rule. |
| TBool aAscending = ETrue | ETrue, if the rule order is ascending. |
| IMPORT_C | TMdEOrderRule | ( | const CMdEPropertyDef & | aPropertyDef, |
| TBool | aAscending = ETrue | |||
| ) | ||||
Constructor.
| const CMdEPropertyDef & aPropertyDef | Property definition. |
| TBool aAscending = ETrue | ETrue, if the rule order is ascending. |
| IMPORT_C TBool | CaseSensitive | ( | ) |
Returns type of text comparison, whether case sensitive or case insensitive.
| IMPORT_C const CMdEPropertyDef * | PropertyDef | ( | ) | const |
Returns the property definition associated with the order rule.
| TUint32 | RequiredBufferSize | ( | ) | const |
Get required size of serialized buffer when this is serialized.
| void | SerializeL | ( | CMdCSerializationBuffer & | aBuffer, |
| TMdCOffset & | aFreespaceOffset | |||
| ) | const | |||
Serialize own data to serialized buffer (correct position must be set before calling) and return new position of serialized buffer.
| CMdCSerializationBuffer & aBuffer | serialized buffer. |
| TMdCOffset & aFreespaceOffset |
| IMPORT_C void | SetAscending | ( | TBool | aAscending = ETrue | ) |
Sets the order rule to ascending or descending order.
| TBool aAscending = ETrue | ETrue ascending order, EFalse descending order. |
| IMPORT_C void | SetCaseSensitive | ( | TBool | aCaseSensitive | ) |
Sets text sorting case sensitive or case insensitive.
| TBool aCaseSensitive | ETrue case sensitive sort. EFalse case insensitive sort. |
| IMPORT_C void | SetPropertyDef | ( | const CMdEPropertyDef & | aPropertyDef | ) |
Associates a property definition with the order rule.
| const CMdEPropertyDef & aPropertyDef | Property definition. |
| IMPORT_C void | SetType | ( | TOrderRuleType | aType | ) |
Sets the type of the order rule.
| TOrderRuleType aType | Order rule type constant. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.