Home · All Classes · All Functions ·

QMessageAccountOrdering Class Reference

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

    #include <QMessageAccountOrdering>

This class is under development and is subject to change.


Public Functions

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

Static Public Members

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

Detailed Description

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

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

See also QMessageStore and QMessageAccountFilter.


Member Function Documentation

QMessageAccountOrdering::QMessageAccountOrdering ()

Create a QMessageAccountOrdering with specifying matching parameters.

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

The result of combining an empty ordering with a non-empty ordering is the same as the original non-empty ordering.

The result of combining two empty keys is an empty ordering.

QMessageAccountOrdering::QMessageAccountOrdering ( const QMessageAccountOrdering & other )

Constructs a copy of other.

QMessageAccountOrdering::~QMessageAccountOrdering ()   [virtual]

Destroys the ordering.

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

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

See also QMessageAccount::name().

bool QMessageAccountOrdering::isEmpty () const

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

bool QMessageAccountOrdering::isSupported () const

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


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.0.0 (Technical Preview)