![]() |
Home | ![]() |
The QMailThreadSortKey class defines the parameters used for sorting a subset of threads from the mail store. More...
#include <QMailThreadSortKey>
This class is under development and is subject to change.
typedef | ArgumentType |
enum | Property { Id, ServerUid } |
QMailThreadSortKey () | |
QMailThreadSortKey ( const QMailThreadSortKey & other ) | |
virtual | ~QMailThreadSortKey () |
const QList<ArgumentType> & | arguments () const |
void | deserialize ( Stream & stream ) |
bool | isEmpty () const |
void | serialize ( Stream & stream ) const |
bool | operator!= ( const QMailThreadSortKey & other ) const |
QMailThreadSortKey | operator& ( const QMailThreadSortKey & other ) const |
QMailThreadSortKey & | operator&= ( const QMailThreadSortKey & other ) |
QMailThreadSortKey & | operator= ( const QMailThreadSortKey & other ) |
bool | operator== ( const QMailThreadSortKey & other ) const |
QMailThreadSortKey | id ( Qt::SortOrder order = Qt::AscendingOrder ) |
QMailThreadSortKey | serverUid ( Qt::SortOrder order = Qt::AscendingOrder ) |
The QMailThreadSortKey class defines the parameters used for sorting a subset of threads from the mail store.
See also QMailStore and QMailThreadKey.
Defines the type used to represent a single sort criterion of a message sort key.
This enum type describes the sortable data properties of a QMailThread.
Constant | Value | Description |
---|---|---|
QMailThreadSortKey::Id | 0 | The ID of the thread. |
QMailThreadSortKey::ServerUid | 1 | The ServerUid of the thread. |
Create a QMailThreadSortyKey.
A default-constructed key (one for which isEmpty() returns true) sorts no messages.
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.
Create a copy of the QMailThreadSortKey other.
Destroys this QMailThreadSortKey.
Returns the list of arguments to this QMailThreadSortKey.
Reads the contents of a QMailThreadSortKey from stream.
Returns a key that sorts threads by their identifiers, according to order.
See also QMailThread::id().
Returns true if the key remains empty after default construction; otherwise returns false.
Writes the contents of a QMailThreadSortKey to a stream.
Returns a key that sorts threads by their server uid string according to order.
See also QMailThread::serverUid().
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 QMailThreadSortKey other to this.
Returns true if the value of this key is the same as the key other. Returns false otherwise.
Copyright © 2010 QtSoftware | Messaging Framework |