QtMobility Reference Documentation

QMessageAccountSortOrder Class Reference

The QMessageAccountSortOrder class defines the parameters used for sorting a subset of queried accounts from the messaging store. More...

 #include <QMessageAccountSortOrder>

This class was introduced in Qt Mobility 1.0.

Public Functions

QMessageAccountSortOrder ()
QMessageAccountSortOrder ( const QMessageAccountSortOrder & other )
virtual ~QMessageAccountSortOrder ()
bool isEmpty () const
bool isSupported () const

Static Public Members

QMessageAccountSortOrder byName ( Qt::SortOrder order = Qt::AscendingOrder )

Detailed Description

The QMessageAccountSortOrder class defines the parameters used for sorting a subset of queried accounts from the messaging store.

A QMessageAccountSortOrder is composed of a account property to sort and a sort order. The QMessageAccountSortOrder class is used in conjunction with the QMessageManager::queryAccounts() function to sort account results according to the criteria defined by the sort order.

See also QMessageManager and QMessageAccountFilter.

Member Function Documentation

QMessageAccountSortOrder::QMessageAccountSortOrder ()

Create a QMessageAccountSortOrder with specifying matching parameters.

A default-constructed sort order (one for which isEmpty() returns true) sorts no accounts.

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.

QMessageAccountSortOrder::QMessageAccountSortOrder ( const QMessageAccountSortOrder & other )

Constructs a copy of other.

This function was introduced in Qt Mobility 1.0.

QMessageAccountSortOrder::~QMessageAccountSortOrder () [virtual]

Destroys the sort order.

QMessageAccountSortOrder QMessageAccountSortOrder::byName ( Qt::SortOrder order = Qt::AscendingOrder ) [static]

Returns an sort order that sorts accounts by name, according to order.

This function was introduced in Qt Mobility 1.0.

See also QMessageAccount::name().

bool QMessageAccountSortOrder::isEmpty () const

Returns true if the sort order remains empty after default construction; otherwise returns false.

This function was introduced in Qt Mobility 1.0.

bool QMessageAccountSortOrder::isSupported () const

Returns true if the sort order is supported on the current platform; otherwise returns false.

This function was introduced in Qt Mobility 1.0.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.