Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

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 was introduced in Qt Mobility 1.0.

Public Functions

QMessageFolderFilter ()
QMessageFolderFilter ( const QMessageFolderFilter & other )
virtual ~QMessageFolderFilter ()
bool isEmpty () const
bool isSupported () const
QMessageDataComparator::MatchFlags matchFlags () const
void setMatchFlags ( QMessageDataComparator::MatchFlags matchFlags )
QMessageFolderFilter operator& ( const QMessageFolderFilter & other ) const
const QMessageFolderFilter & operator&= ( const QMessageFolderFilter & other )
QMessageFolderFilter operator| ( const QMessageFolderFilter & other ) const
const QMessageFolderFilter & operator|= ( const QMessageFolderFilter & other )
QMessageFolderFilter operator~ () const

Static Public Members

QMessageFolderFilter byAncestorFolderIds ( const QMessageFolderId & id, QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes )
QMessageFolderFilter byAncestorFolderIds ( const QMessageFolderFilter & filter, 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 byName ( const QString & pattern, QMessageDataComparator::LikeComparator cmp )
QMessageFolderFilter byName ( const QString & value, QMessageDataComparator::EqualityComparator cmp )
QMessageFolderFilter byName ( const QString & value, 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 & pattern, QMessageDataComparator::LikeComparator cmp )
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 QMessageManager::queryFolders() and QMessageManager::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.

Evaluation of filters is delayed until they are used in a QMessageManager function such as queryFolders, except where explicitly documented otherwise.

See also QMessageManager 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.

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

See also QMessageFolder::id().

QMessageFolderFilter QMessageFolderFilter::byId ( const QMessageFolderId & id, QMessageDataComparator::EqualityComparator cmp = QMessageDataComparator::Equal ) [static]

Returns a filter matching folders whose identifier matches id, according to cmp.

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

See also QMessageFolder::id().

QMessageFolderFilter QMessageFolderFilter::byName ( const QString & pattern, QMessageDataComparator::LikeComparator cmp ) [static]

Returns a filter matching folders whose display name matches pattern, according to cmp.

This filter is evaluated when it is constructed.

This function was introduced in Qt Mobility 1.2.

See also QMessageFolder::name().

QMessageFolderFilter QMessageFolderFilter::byName ( const QString & value, QMessageDataComparator::EqualityComparator cmp ) [static]

Returns a filter matching folders whose display name matches value, according to cmp.

Not supported on Linux, Harmattan and Meego.com (use InclusionComparator).

This function was introduced in Qt Mobility 1.0.

See also QMessageFolder::name().

QMessageFolderFilter QMessageFolderFilter::byName ( const QString & value, QMessageDataComparator::InclusionComparator cmp = QMessageDataComparator::Includes ) [static]

Returns a filter matching folders whose display name matches the substring value, according to cmp.

This function was introduced in Qt Mobility 1.0.

See also QMessageFolder::name().

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.

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

See also QMessageFolder::id().

QMessageFolderFilter QMessageFolderFilter::byPath ( const QString & pattern, QMessageDataComparator::LikeComparator cmp ) [static]

Returns a filter matching folders whose path matches pattern, according to cmp.

This filter is evaluated when it is constructed.

This function was introduced in Qt Mobility 1.2.

See also QMessageFolder::path().

QMessageFolderFilter QMessageFolderFilter::byPath ( const QString & value, QMessageDataComparator::EqualityComparator cmp ) [static]

Returns a filter matching folders whose path matches value, according to cmp.

Not supported on Linux, Harmattan and Meego.com (use InclusionComparator).

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

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 using an AND operation is the original non-empty filter.

The result of combining an empty filter with a non-empty filter using an OR operation is the empty filter.

The result of combining two empty filters is an empty filter.

This function was introduced in Qt Mobility 1.0.

bool QMessageFolderFilter::isSupported () const

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

This function was introduced in Qt Mobility 1.0.

QMessageDataComparator::MatchFlags QMessageFolderFilter::matchFlags () const

Return the match flags for the search filter.

Default is no match flags set.

This function was introduced in Qt Mobility 1.0.

See also setMatchFlags().

void QMessageFolderFilter::setMatchFlags ( QMessageDataComparator::MatchFlags matchFlags )

Set the match flags for the search filter to matchFlags.

This function was introduced in Qt Mobility 1.0.

See also matchFlags().

QMessageFolderFilter QMessageFolderFilter::operator& ( const QMessageFolderFilter & other ) const

Returns a filter that is the logical AND of this filter and the value of filter other.

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

QMessageFolderFilter QMessageFolderFilter::operator| ( const QMessageFolderFilter & other ) const

Returns a filter that is the logical OR of this filter and the value of filter other.

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

QMessageFolderFilter QMessageFolderFilter::operator~ () const

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.

This function was introduced in Qt Mobility 1.0.

See also isEmpty().

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 94
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 43
  4. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  5. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  6. Qt Commercial : Digia organise un webinar gratuit le 27 mars sur la conception d'interfaces utilisateur et d'applications avec le framework 0
  7. 2017 : un quinquennat pour une nouvelle version du C++ ? Possible, selon Herb Sutter 9
Page suivante

Le Qt Labs au hasard

Logo

QMake et au-delà, le retour

Les Qt Labs sont les laboratoires des développeurs de Qt, où ils peuvent partager des impressions sur le framework, son utilisation, ce que pourrait être son futur. 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

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt qtmobility-1.2
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web