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 | ) |
Copies the field types contained in the specified sort order object into this object.
Any existing field types in this object are replaced.
const RContactViewSortOrder & aSortOrder | The sort order to be copied. |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalises a sort order object to a write stream.
RWriteStream & aStream | The stream to write to. |
IMPORT_C TInt | ExternalizedSize | ( | ) | const |
Retrieves the number of bytes required to store the sort order when externalised.
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
Internalises a sort order object from a read stream.
RReadStream & aStream | The stream to read from. |
IMPORT_C TBool | operator== | ( | const RContactViewSortOrder & | aSortOrder | ) | const |
Compares two sort order objects for equivalence.
const RContactViewSortOrder & aSortOrder | The sort order object to compare with this one. |
TFieldType | operator[] | ( | TInt | aIndex | ) | const [inline] |
Gets an indexed field type.
TInt aIndex | Index of the required field type. A panic occurs if this is invalid. |
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.