RContactViewSortOrder Class Reference

class RContactViewSortOrder

Specifies the sort order for a contact view.

It is implemented as an array of TFieldType UIDs, which define the fields whose contents are used to sort on, and their order.

The sort order for all concrete contact view classes can be retrieved using their implementation of CContactViewBase::SortOrderL(). The sort order is set during construction of local and remote views.

Constructor & Destructor Documentation

RContactViewSortOrder()

IMPORT_CRContactViewSortOrder()

Member Functions Documentation

AppendL(TFieldType)

voidAppendL(TFieldTypeaField)[inline]

Appends a field type to the sort order object.

Parameters

TFieldType aFieldThe field type to append.

Close()

IMPORT_C voidClose()

CopyL(const RContactViewSortOrder &)

IMPORT_C voidCopyL(const RContactViewSortOrder &aSortOrder)

Parameters

const RContactViewSortOrder & aSortOrder

Count()

TInt Count()const [inline]

Gets the number of field types in the sort order array.

The number of field types in the array.

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

ExternalizedSize()

IMPORT_C TIntExternalizedSize()const

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

operator==(const RContactViewSortOrder &)

IMPORT_C TBooloperator==(const RContactViewSortOrder &aSortOrder)const

Parameters

const RContactViewSortOrder & aSortOrder

operator[](TInt)

TFieldType operator[](TIntaIndex)const [inline]

Gets an indexed field type.

The field type located at the indexed position in the array.

Parameters

TInt aIndexIndex of the required field type. A panic occurs if this is invalid.

Member Data Documentation

RArray< TFieldType > iFields

RArray< TFieldType >iFields[private]

TInt iSpare

TInt iSpare[private]

TInt32 iSpare2

TInt32 iSpare2[private]

TInt32 iSpare3

TInt32 iSpare3[private]