![]() |
Home · All Classes · All Functions · | ![]() |
The QMessageAccountFilter class defines the parameters used for querying a subset of all available accounts from the messaging store. More...
#include <QMessageAccountFilter>
This class is under development and is subject to change.
QMessageAccountFilter () | |
QMessageAccountFilter ( const QMessageAccountFilter & other ) | |
virtual | ~QMessageAccountFilter () |
bool | isEmpty () const |
bool | isSupported () const |
QMessageDataComparator::MatchFlags | matchFlags () const |
void | setMatchFlags ( QMessageDataComparator::MatchFlags matchFlags ) |
QMessageAccountFilter | operator& ( const QMessageAccountFilter & other ) const |
const QMessageAccountFilter & | operator&= ( const QMessageAccountFilter & other ) |
QMessageAccountFilter | operator| ( const QMessageAccountFilter & other ) const |
const QMessageAccountFilter & | operator|= ( const QMessageAccountFilter & other ) |
QMessageAccountFilter | operator~ () const |
QMessageAccountFilter | byId ( const QMessageAccountId & id, QMessageDataComparator::EqualityComparator cmp = QMessageDataComparator::Equal ) |
QMessageAccountFilter | byId ( const QMessageAccountIdList & ids, QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes ) |
QMessageAccountFilter | byId ( const QMessageAccountFilter & filter, QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes ) |
QMessageAccountFilter | byName ( const QString & value, QMessageDataComparator::EqualityComparator cmp ) |
QMessageAccountFilter | byName ( const QString & value, QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes ) |
The QMessageAccountFilter class defines the parameters used for querying a subset of all available accounts from the messaging store.
A QMessageAccountFilter is composed of an account property, an optional comparison operator and a comparison value. The QMessageAccountFilter class is used in conjunction with the QMessageManager::queryAccounts() and QMessageManager::countAccounts() functions to filter results which meet the criteria defined by the filter.
QMessageAccountFilters can be combined using the logical operators (&), (|) and (~) to create more refined queries.
See also QMessageManager and QMessageAccount.
Creates a QMessageAccountFilter without specifying matching parameters.
A default-constructed filter (one for which isEmpty() returns true) matches all accounts.
See also isEmpty().
Constructs a copy of other.
Destroys the filter.
Returns a filter matching accounts whose identifier matches id, according to cmp.
See also QMessageAccount::id().
Returns a filter matching accounts whose identifier is a member of ids, according to cmp.
See also QMessageAccount::id().
Returns a filter matching accounts whose identifier is a member of the set yielded by filter, according to cmp.
See also QMessageAccount::id().
Returns a filter matching accounts whose name matches value, according to cmp.
See also QMessageAccount::name().
Returns a filter matching accounts whose name matches the substring value, according to cmp.
See also QMessageAccount::name().
Returns true if the filter remains empty after default construction; otherwise returns false.
An empty filter matches all accounts.
The result of combining an empty filter with a non-empty filter is the original non-empty filter. This is true regardless of whether the combination is formed by an AND or an OR operation.
The result of combining two empty filters is an empty filter.
Returns true if the filter is supported on the current platform; otherwise returns false.
Return the match flags for the search filter.
Default is no match flags set.
See also setMatchFlags().
Set the match flags for the search filter to matchFlags.
See also matchFlags().
Returns a filter that is the logical AND of this filter and the value of filter other.
Performs a logical AND with this filter and the filter other and assigns the result to this filter.
Returns a filter that is the logical OR of this filter and the value of filter other.
Performs a logical OR with this filter and the filter other and assigns the result to this filter.
Returns a filter that is the logical NOT of the value of this filter (ignoring any matchFlags() set on the filter).
If this filter is empty, the result will be a non-matching filter; if this filter is non-matching, the result will be an empty filter.
See also isEmpty().
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.0 |