#include <app/cntviewbase.h>
class RContactViewSortOrder |
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) |
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.
void | AppendL | ( | TFieldType | aField | ) | [inline] |
Appends a field type to the sort order object.
Parameters | |
---|---|
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.
Parameters | |
---|---|
aSortOrder | The sort order to be copied. |
TInt | Count | ( | ) | const [inline] |
Gets the number of field types in the sort order array.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalises a sort order object to a write stream.
Parameters | |
---|---|
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.
Parameters | |
---|---|
aStream | The stream to read from. |
IMPORT_C TBool | operator== | ( | const RContactViewSortOrder & | aSortOrder | ) | const |
Compares two sort order objects for equivalence.
Parameters | |
---|---|
aSortOrder | The sort order object to compare with this one. |
TFieldType | operator[] | ( | TInt | aIndex | ) | const [inline] |
Gets an indexed field type.
Parameters | |
---|---|
aIndex | Index of the required field type. A panic occurs if this is invalid. |