QMessageFolderFilter Class Reference The QMessageFolderFilter class defines the parameters used for querying a subset of all available folders from the messaging store. More...
#include <QMessageFolderFilter> This class is under development and is subject to change.
Public Functions
Static Public Members
QMessageFolderFilter byAncestorFolderIds ( const QMessageFolderId & id , QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes )
QMessageFolderFilter byAncestorFolderIds ( const QMessageFolderFilter & filter , QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes )
QMessageFolderFilter byDisplayName ( const QString & value , QMessageDataComparator::EqualityComparator cmp )
QMessageFolderFilter byDisplayName ( const QString & value , QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes )
QMessageFolderFilter byId ( const QMessageFolderId & id , QMessageDataComparator::EqualityComparator cmp = QMessageDataComparator::Equal )
QMessageFolderFilter byId ( const QMessageFolderIdList & ids , QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes )
QMessageFolderFilter byId ( const QMessageFolderFilter & filter , QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes )
QMessageFolderFilter byParentAccountId ( const QMessageAccountId & id , QMessageDataComparator::EqualityComparator cmp = QMessageDataComparator::Equal )
QMessageFolderFilter byParentAccountId ( const QMessageAccountFilter & filter , QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes )
QMessageFolderFilter byParentFolderId ( const QMessageFolderId & id , QMessageDataComparator::EqualityComparator cmp = QMessageDataComparator::Equal )
QMessageFolderFilter byParentFolderId ( const QMessageFolderFilter & filter , QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes )
QMessageFolderFilter byPath ( const QString & value , QMessageDataComparator::EqualityComparator cmp )
QMessageFolderFilter byPath ( const QString & value , QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes )
Detailed Description
The QMessageFolderFilter class defines the parameters used for querying a subset of all available folders from the messaging store.
A QMessageFolderFilter is composed of a folder property, an optional comparison operator and a comparison value. The QMessageFolderFilter class is used in conjunction with the QMessageStore::queryFolders () and QMessageStore::countFolders () functions to filter results which meet the criteria defined by the filter.
QMessageFolderFilters can be combined using the logical operators (&), (|) and (~) to create more refined queries.
See also QMessageStore and QMessageFolder .
Member Function Documentation
QMessageFolderFilter::QMessageFolderFilter ()
Creates a QMessageFolderFilter without specifying matching parameters.
A default-constructed filter (one for which isEmpty () returns true) matches all folders.
See also isEmpty ().
QMessageFolderFilter::QMessageFolderFilter ( const QMessageFolderFilter & other )
Constructs a copy of other .
QMessageFolderFilter::~QMessageFolderFilter () [virtual]
Destroys the filter.
QMessageFolderFilter QMessageFolderFilter::byAncestorFolderIds ( const QMessageFolderId & id , QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes ) [static]
Returns a filter matching folders whose ancestor folders' identifiers contain id , according to cmp .
See also QMessageFolder::id ().
QMessageFolderFilter QMessageFolderFilter::byAncestorFolderIds ( const QMessageFolderFilter & filter , QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes ) [static]
Returns a filter matching folders whose ancestor folders' identifiers contain a member of the set yielded by filter , according to cmp .
See also QMessageFolder::id ().
Returns a filter matching folders whose display name matches value , according to cmp .
See also QMessageFolder::displayName ().
QMessageFolderFilter QMessageFolderFilter::byDisplayName ( const QString & value , QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes ) [static]
Returns a filter matching folders whose display name matches the substring value , according to cmp .
See also QMessageFolder::displayName ().
Returns a filter matching folders whose identifier matches id , according to cmp .
See also QMessageFolder::id ().
QMessageFolderFilter QMessageFolderFilter::byId ( const QMessageFolderIdList & ids , QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes ) [static]
Returns a filter matching folders whose identifier is a member of ids , according to cmp .
See also QMessageFolder::id ().
QMessageFolderFilter QMessageFolderFilter::byId ( const QMessageFolderFilter & filter , QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes ) [static]
Returns a filter matching folders whose identifier is a member of the set yielded by filter , according to cmp .
See also QMessageFolder::id ().
QMessageFolderFilter QMessageFolderFilter::byParentAccountId ( const QMessageAccountId & id , QMessageDataComparator::EqualityComparator cmp = QMessageDataComparator::Equal ) [static]
Returns a filter matching folders whose parent account identifier matches id , according to cmp .
See also QMessageAccount::id ().
QMessageFolderFilter QMessageFolderFilter::byParentAccountId ( const QMessageAccountFilter & filter , QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes ) [static]
Returns a filter matching folders whose parent account identifier is a member of the set yielded by filter , according to cmp .
See also QMessageAccount::id ().
QMessageFolderFilter QMessageFolderFilter::byParentFolderId ( const QMessageFolderId & id , QMessageDataComparator::EqualityComparator cmp = QMessageDataComparator::Equal ) [static]
Returns a filter matching folders whose parent folder identifier matches id , according to cmp .
See also QMessageFolder::id ().
QMessageFolderFilter QMessageFolderFilter::byParentFolderId ( const QMessageFolderFilter & filter , QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes ) [static]
Returns a filter matching folders whose parent folder identifier is a member of the set yielded by filter , according to cmp .
See also QMessageFolder::id ().
Returns a filter matching folders whose path matches value , according to cmp .
See also QMessageFolder::path ().
QMessageFolderFilter QMessageFolderFilter::byPath ( const QString & value , QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes ) [static]
Returns a filter matching folders whose path matches the substring value , according to cmp .
See also QMessageFolder::path ().
bool QMessageFolderFilter::isEmpty () const
Returns true if the filter remains empty after default construction; otherwise returns false.
An empty filter matches all folders.
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.
bool QMessageFolderFilter::isSupported () const
Returns true if the filter is supported on the current platform; otherwise returns false.
Return the options for the search filter.
Default is no options set.
See also setOptions ().
Set the options for the search filter to options .
See also options ().
QMessageFolderFilter QMessageFolderFilter::operator& ( const QMessageFolderFilter & other ) const
Returns a filter that is the logical AND of this filter and the value of filter other .
const QMessageFolderFilter & QMessageFolderFilter::operator&= ( const QMessageFolderFilter & other )
Performs a logical AND with this filter and the filter other and assigns the result to this filter.
QMessageFolderFilter QMessageFolderFilter::operator| ( const QMessageFolderFilter & other ) const
Returns a filter that is the logical OR of this filter and the value of filter other .
const QMessageFolderFilter & QMessageFolderFilter::operator|= ( const QMessageFolderFilter & other )
Performs a logical OR with this filter and the filter other and assigns the result to this filter.
QMessageFolderFilter QMessageFolderFilter::operator~ () const
Returns a filter that is the logical NOT of the value of this filter (ignoring any options () 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 ().
Best Of
Actualités les plus lues
Le blog Digia au hasard
Le blog Digia est l'endroit privilégié pour la communication sur l'édition commerciale de Qt, où des réponses publiques sont apportées aux questions les plus posées au support.
Lire l'article.
Communauté
Ressources
Liens utiles
Contact
Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).
Qt dans le magazine