CContactDatabase::TSortPref Class Reference

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.

CContactDatabase::SortL()

CContactDatabase::SortArrayL()

Public Member Functions
TSortPref()
TSortPref(TFieldType, TOrder)
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C voidInternalizeL(RReadStream &)
Public Member Enumerations
enumTOrder { EAsc, EDesc }
Public Attributes
TFieldType iFieldType
TOrder iOrder

Constructor & Destructor Documentation

TSortPref()

TSortPref()[inline]

Constructs a TSortPref object. The order is initialised to EAsc and the field type to KNullUid.

TSortPref(TFieldType, TOrder)

TSortPref(TFieldTypeaFieldType,
TOrderaOrder = EAsc
)[inline]

Constructs the TSortPref object with a field type and an order.

Parameters

TFieldType aFieldTypeSpecifies the field type to sort on.
TOrder aOrder = EAscSpecifies the sort order.

Member Functions Documentation

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

Member Enumerations Documentation

Enum TOrder

The sort order.

Enumerators

EAsc

Ascending sort order.

EDesc

Descending sort order.

Member Data Documentation

TFieldType iFieldType

TFieldType iFieldType

The first field matching this field type is used for the text to sort on.

TOrder iOrder

TOrder iOrder

Specifies whether the sort should be ascending or descending.