Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QMailAccountSortKey class defines the parameters used for sorting a subset of queried accounts from the store. More...
#include <QMailAccountSortKey>
This class is under development and is subject to change.
The QMailAccountSortKey class defines the parameters used for sorting a subset of queried accounts from the store.
A QMailAccountSortKey is composed of an account property to sort and a sort order. The QMailAccountSortKey class is used in conjunction with the QMailStore::query() function to sort account results according to the criteria defined by the sort key.
For example: To create a query for all accounts sorted by the name in ascending order:
QMailAccountSortKey sortNameKey(QMailAccountSortKey::Name,Qt::Ascending); QMailAccountIdList results = QMailStore::instance()->query(sortNameKey);
See also QMailStore.
This enum type describes the sortable data properties of a QMailFolder.
Constant | Value | Description |
---|---|---|
QMailAccountSortKey::Id | 0 | The ID of the account. |
QMailAccountSortKey::Name | 1 | The name of the account. |
QMailAccountSortKey::MessageType | 2 | The type of messages handled by the account. |
QMailAccountSortKey::EmailAddress | 3 | The email address that is tied to the account. |
Create a QMailAccountSortKey with specifying matching parameters.
A default-constructed key (one for which isEmpty() returns true) sorts no folders.
The result of combining an empty key with a non-empty key is the same as the original non-empty key.
The result of combining two empty keys is an empty key.
Construct a QMailAccountSortKey which sorts a set of results based on the QMailAccountSortKey::Property p and the Qt::SortOrder order
Create a copy of the QMailAccountSortKey other.
Destroys this QMailAccountSortKey.
Returns true if the key remains empty after default construction; otherwise returns false.
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 QMailAccountSortKey other to this.
Returns true if the value of this key is the same as the key other. Returns false otherwise.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |