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.
Public Member Functions | |
---|---|
RContactViewSortOrder() | |
void | AppendL(TFieldType) |
IMPORT_C void | Close() |
IMPORT_C void | CopyL(const RContactViewSortOrder &) |
TInt | Count() |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C TInt | ExternalizedSize() |
IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C TBool | operator==(const RContactViewSortOrder &) |
TFieldType | operator[](TInt) |
Private Attributes | |
---|---|
RArray< TFieldType > | iFields |
TInt | iSpare |
TInt32 | iSpare2 |
TInt32 | iSpare3 |
void | AppendL | ( | TFieldType | aField | ) | [inline] |
Appends a field type to the sort order object.
TFieldType aField | The field type to append. |
IMPORT_C void | CopyL | ( | const RContactViewSortOrder & | aSortOrder | ) |
const RContactViewSortOrder & aSortOrder |
TInt | Count | ( | ) | const [inline] |
Gets the number of field types in the sort order array.
The number of field types in the array.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
RWriteStream & aStream |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
RReadStream & aStream |
IMPORT_C TBool | operator== | ( | const RContactViewSortOrder & | aSortOrder | ) | const |
const RContactViewSortOrder & aSortOrder |
TFieldType | operator[] | ( | TInt | aIndex | ) | const [inline] |
Gets an indexed field type.
The field type located at the indexed position in the array.
TInt aIndex | Index of the required field type. A panic occurs if this is invalid. |