Location:
msvstd.h
Link against:
msgs.lib
TMsvSelectionOrdering
Supported from 5.0
Defines the sorting and grouping rules used to prepare a selection of entries. It is used in the interfaces of CMsvEntry
and CMsvServerEntry to set the ordering of an entry’s children.
Firstly, the entries will be grouped, if the appropriate grouping option is set, by:
Standard folders: any entries marked as standard folders are placed first, in the order they were created.
Entry type: in the order services, folders, messages, attachments, unknown
Priority: in the order high, medium, then low
MTM: either in the MTM order set by CMsvEntry::SetMtmListL()
or just in MTM Uid
value
Grouping options are simply Boolean flags that can be set on or off by functions of this class.
Secondly, the order of entries within these groups is defined by a sorting order option.
In pre-Unicode versions this class had the import library ment.lib.
Defined in TMsvSelectionOrdering
:
ExternalizeL()
, GroupByMtm()
, GroupByPriority()
, GroupByType()
, GroupStandardFolders()
, GroupingOn()
, InternalizeL()
, ShowInvisibleEntries()
, Sorting()
, TMsvSelectionOrdering()
, operator==()
TMsvSelectionOrdering();
TMsvSelectionOrdering(TInt aGroupingKey, TMsvSorting aSorting, TBool aShowInvisible=EFalse);
Creates a new object with no grouping, and sorting set to EMsvSortByNone
.
The second constructor sets the group, sort order, and show-invisibility options to those specified in the passed values.
|
void InternalizeL(RReadStream& aStream);
Reads an externalised object from the specified stream.
|
|
void ExternalizeL(RWriteStream& aStream) const;
Writes the object into the specified stream.
|
|
TBool operator==(const TMsvSelectionOrdering& aEntry) const;
Tests two TMsvSelectionOrdering
objects for equality. Two TMsvSelectionOrdering
objects are equal if the same grouping and sorting options have been set on each.
|
|
TBool GroupByMtm() const;
Gets the group-by-MTM flag.
|
TBool GroupByPriority() const;
Gets the group-by-priority flag.
|
TBool GroupByType() const;
Gets the group-by-entry-type flag.
|
TBool GroupingOn() const;
Tests whether any grouping option has been set.
|
TBool GroupStandardFolders() const;
Gets the group-by-standard-folders flag.
|
TBool ShowInvisibleEntries() const;
Gets the show-invisible-entries flag. Entries whose entry visible flag index field is not set are included in the ordered list only if this is set.
|
TMsvSorting Sorting() const;
Gets the sorting order of entries within groups.
|
void SetGroupByMtm(TBool aFlag);
Sets the group-by-MTM flag.
|
void SetGroupByPriority(TBool aFlag);
Sets the group-by-priority flag.
|
void SetGroupByType(TBool aFlag);
Sets the group-by-entry-type flag.
|
void SetGroupStandardFolders(TBool aFlag);
Sets the group-by-standard-folders flag.
|
void SetShowInvisibleEntries(TBool aFlag);
Sets the show-invisible-entries flag. Entries whose entry visible flag index field is not set are included in the ordered list only if this is set. Setting this flag off is useful if you intend to display the resulting ordered list to the user.
|
void SetSorting(TMsvSorting aSortType);
Sets the sorting order of entries within groups.
|