![]() |
Home · All Classes · All Functions · | ![]() |
The QMessageSortOrder class defines the parameters used for sorting a subset of queried messages from the messaging store. More...
#include <QMessageSortOrder>
The QMessageSortOrder class defines the parameters used for sorting a subset of queried messages from the messaging store.
A QMessageSortOrder is composed of a message property to sort and a sort order. The QMessageSortOrder class is used in conjunction with the QMessageManager::queryMessages() and QMessageService::queryMessages() functions to sort message results according to the criteria defined by the sort order.
For example: To create a query for all messages sorted by their timestamp in decending order:
QMessageSortOrder sortOrder(QMessageSortOrder::byTimeStamp(Qt::DescendingOrder)); QMessageIdList results = QMessageManager().queryMessages(QMessageFilter(), sortOrder);
See also QMessageManager and QMessageFilter.
Create a QMessageSortOrder with specifying matching parameters.
A default-constructed sort order (one for which isEmpty() returns true) sorts no messages.
The result of combining an empty sort order with a non-empty sort order is the same as the original non-empty sort order.
The result of combining two empty sort orders is an empty sort order.
Windows mobile and desktop platforms do not support sorting bySender() and byRecipients(), additionally the Windows mobile platform does not support sorting byTimeStamp() and bySize().
Constructs a copy of other.
Destroys the sort order.
Returns a sort order that sorts messages by their priority, according to order.
See also QMessage::priority().
Returns a sort order that sorts messages by their reception timestamp, according to order.
See also QMessage::receivedDate().
Returns a sort order that sorts messages by the addresses to which they were sent, according to order.
Not supported on the Windows mobile and desktop platforms.
See also QMessage::to().
Returns a sort order that sorts messages by the address from which they were sent, according to order.
Not supported on the Windows mobile and desktop platforms.
See also QMessage::from().
Returns a sort order that sorts messages by their size, according to order.
Not supported on the Windows mobile platform.
See also QMessage::size().
Returns a sort order that sorts messages by their status value flag, according to order.
See also QMessage::status().
Returns a sort order that sorts messages by their subject, according to order.
See also QMessage::subject().
Returns a sort order that sorts messages by their origination timestamp, according to order.
Not supported on the Windows mobile platform.
See also QMessage::date() and byReceptionTimeStamp().
Returns a sort order that sorts messages by their message type, according to order.
See also QMessage::type().
Returns true if the sort order remains empty after default construction; otherwise returns false.
Returns true if the sort order is supported on the current platform; otherwise returns false.
Returns a sort order that which is the result of concatenating the vaue of this sort order and the value of sort order other.
This function determines sorting precedence.
On the Windows Mobile platform bySubject() and byReceptionTimeStamp() sort orders can not be combined with each other.
Appends the value of the sort order other with the value of this sort order and assigns the result to this sort order.
This function determines sorting precedence.
On the Windows Mobile platform bySubject() and byReceptionTimeStamp() sort orders can not be combined with each other.
Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.1 |