class CContactDatabase::TSortPref |
Specifies the field type and order preferences used for sorting items in the contacts database.
The contents of the first field in a contact item matching the field type is used as the data to sort on. The order can either be ascending or descending.
Public Member Functions | |
---|---|
TSortPref() | |
TSortPref(TFieldType, TOrder) | |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C void | InternalizeL(RReadStream &) |
Public Member Enumerations | |
---|---|
enum | TOrder { EAsc, EDesc } |
Public Attributes | |
---|---|
TFieldType | iFieldType |
TOrder | iOrder |
TSortPref | ( | ) | [inline] |
Constructs a TSortPref object. The order is initialised to EAsc and the field type to KNullUid.
TSortPref | ( | TFieldType | aFieldType, |
TOrder | aOrder = EAsc | ||
) | [inline] |
Constructs the TSortPref object with a field type and an order.
TFieldType aFieldType | Specifies the field type to sort on. |
TOrder aOrder = EAsc | Specifies the sort order. |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
RWriteStream & aStream |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
RReadStream & aStream |
TFieldType | iFieldType |
The first field matching this field type is used for the text to sort on.