| Home · All Classes · Grouped Classes · Annotated · Functions |
The QMailFolderSortKey class defines the parameters used for sorting a subset of queried folders from the mail store. More...
#include <QMailFolderSortKey>
The QMailFolderSortKey class defines the parameters used for sorting a subset of queried folders from the mail store.
A QMailFolderSortKey is composed of a folder property to sort and a sort order. The QMailFolderSortKey class is used in conjunction with the QMailStore::queryFolders() function to sort folder results according to the criteria defined by the sort key.
For example: To create a query for all folders sorted by the name in ascending order:
QMailFolderSortKey sortNameKey(QMailFolderSortKey::Name,Qt::Ascending);
QMailIdList results = QMailStore::instance()->queryFolders(sortNameKey);
See also QMailStore and QMailFolderKey.
This enum type describes the sortable data properties of a QMailFolder.
| Constant | Value | Description |
|---|---|---|
| QMailFolderSortKey::Id | 0 | The ID of the folder. |
| QMailFolderSortKey::Name | 1 | The name of the folder. |
| QMailFolderSortKey::ParentId | 2 | the ID of the parent folder for a given folder. |
Construct a QMailFolderSortKey which sorts a set of results based on the QMailFolderSortKey::Property p and the Qt::SortOrder order
Create a copy of the QMailFolderSortKey other.
Destroys this QMailFolderSortKey.
Returns true if the value of this key is not the same as the key other. Returns false otherwise.
Returns a key that is the logical AND of this key and the value of key other.
Performs a logical AND with this key and the key other and assigns the result to this key.
Assign the value of the QMailFolderSortKey other to this.
Returns true if the value of this key is the same as the key other. Returns false otherwise.
| Copyright © 2007 Trolltech | Trademarks | Qtopia 4.3.0 |