| Home · All Classes · Grouped Classes · Annotated · Functions |
The QMailMessageSortKey class defines the parameters used for sorting a subset of queried messages from the mail store. More...
#include <QMailMessageSortKey>
The QMailMessageSortKey class defines the parameters used for sorting a subset of queried messages from the mail store.
A QMailMessageSortKey is composed of a message property to sort and a sort order. The QMailMessageSortKey class is used in conjunction with the QMailStore::queryMessages() function to sort message results according to the criteria defined by the sort key.
For example: To create a query for all messages sorted by their timestamp in decending order:
QMailMessageSortKey sortArrivalTimeKey(QMailMessageSortKey::TimeStamp,Qt::Decending);
QMailIdList results = QMailStore::instance()->queryMessages(sortArrivalTimeKey);
See also QMailStore and QMailMessageKey.
This enum type describes the sortable data properties of a QMailFolder.
| Constant | Value | Description |
|---|---|---|
| QMailMessageSortKey::Id | 0 | The ID of the message. |
| QMailMessageSortKey::Type | 1 | The type of the message. |
| QMailMessageSortKey::ParentFolderId | 2 | The parent folder ID this message is contained in. |
| QMailMessageSortKey::Sender | 3 | The message sender address string. |
| QMailMessageSortKey::Recipients | 4 | The message recipient address string. |
| QMailMessageSortKey::Subject | 5 | The message subject string. |
| QMailMessageSortKey::TimeStamp | 6 | The message timestamp |
| QMailMessageSortKey::Flags | 7 | The message status flags. |
| QMailMessageSortKey::FromAccount | 8 | The name of the account the mesasge was downloaded from. |
| QMailMessageSortKey::FromMailbox | 9 | The imap mailbox the message was downloaded from. |
| QMailMessageSortKey::ServerUid | 10 | The IMAP server UID of the message. |
| QMailMessageSortKey::Size | 11 | The size of the message. |
Construct a QMailMessageSortKey which sorts a set of results based on the QMailMessageSortKey::Property p and the Qt::SortOrder order
Create a copy of the QMailMessageSortKey other.
Destroys this QMailMessageSortKey.
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 QMailMessageSortKey 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 |