Location:
MSVSTD.H
Link against: msgs.lib
Link against: msgs_autoshutdown.lib
class TMsvSelectionOrdering;
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:
1. Standard folders: any entries marked as standard folders are placed first, in the order they were created.
2. Entry type: in the order services, folders, messages, attachments, unknown
3. Priority: in the order high, medium, then low
4. 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.
Defined in TMsvSelectionOrdering
:
ExternalizeL()
, GroupByMtm()
, GroupByPriority()
, GroupByType()
, GroupStandardFolders()
, GroupingOn()
, InternalizeL()
, SetGroupByMtm()
, SetGroupByPriority()
, SetGroupByType()
, SetGroupStandardFolders()
, SetShowInvisibleEntries()
, SetSorting()
, SetSubjectSkipString()
, ShowInvisibleEntries()
, Sorting()
, SubjectSkipString()
, TMsvSelectionOrdering()
, TMsvSelectionOrdering()
, operator==()
IMPORT_C TMsvSelectionOrdering();
Default constructor.
Creates a new object with no grouping, and sets the sorting to EMsvSortByNone.
IMPORT_C TMsvSelectionOrdering(TInt aGroupingKey, TMsvSorting aSorting, TBool aShowInvisible=EFalse);
Creates a new object, sets the group, sort order, and show-invisibility options to those specified in the parameters.
|
IMPORT_C void InternalizeL(RReadStream &aStream);
Reads an externalised object from the specified stream.
|
IMPORT_C void ExternalizeL(RWriteStream &aStream) const;
Writes the object into the specified stream.
|
IMPORT_C TBool operator==(const TMsvSelectionOrdering &aOrdering) const;
Tests two TMsvSelectionOrdering objects for equality.
Two TMsvSelectionOrdering objects are equal if the same grouping and sorting options have been set on each.
|
|
IMPORT_C void SetSubjectSkipString(const TDesC &aSubjectSkipString);
Set the subject skip string up to maximum length of KMaxSubjectSkipStringLength
|
|
IMPORT_C const TDesC &SubjectSkipString() const;
Get the current subject skip string
|
inline TMsvSorting Sorting() const;
Gets the sorting order of entries within groups.
|
inline TBool GroupByType() const;
Gets the group-by-entry-type flag.
|
inline TBool GroupStandardFolders() const;
Gets the group-by-standard-folders flag.
|
inline TBool GroupByPriority() const;
Gets the group-by-priority flag.
|
inline TBool GroupByMtm() const;
Gets the group-by-MTM flag.
|
inline 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.
|
inline TBool GroupingOn() const;
Tests whether any grouping option has been set.
|