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  · 

QMessageSortOrder Class Reference

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

 #include <QMessageSortOrder>

This class was introduced in Qt Mobility 1.0.

Public Functions

QMessageSortOrder ()
QMessageSortOrder ( const QMessageSortOrder & other )
virtual ~QMessageSortOrder ()
bool isEmpty () const
bool isSupported () const
QMessageSortOrder operator+ ( const QMessageSortOrder & other ) const
QMessageSortOrder & operator+= ( const QMessageSortOrder & other )

Static Public Members

QMessageSortOrder byPriority ( Qt::SortOrder order = Qt::AscendingOrder )
QMessageSortOrder byReceptionTimeStamp ( Qt::SortOrder order = Qt::AscendingOrder )
QMessageSortOrder byRecipients ( Qt::SortOrder order = Qt::AscendingOrder )
QMessageSortOrder bySender ( Qt::SortOrder order = Qt::AscendingOrder )
QMessageSortOrder bySize ( Qt::SortOrder order = Qt::AscendingOrder )
QMessageSortOrder byStatus ( QMessage::Status flag, Qt::SortOrder order = Qt::AscendingOrder )
QMessageSortOrder bySubject ( Qt::SortOrder order = Qt::AscendingOrder )
QMessageSortOrder byTimeStamp ( Qt::SortOrder order = Qt::AscendingOrder )
QMessageSortOrder byType ( Qt::SortOrder order = Qt::AscendingOrder )

Detailed Description

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

A QMessageSortOrder is composed of a message property to sort and a sort order. The QMessageSortOrder class is used in conjunction with the QMessageManager::queryMessages() and QMessageService::queryMessages() functions to sort message results according to the criteria defined by the sort order.

For example: To create a query for all messages sorted by their timestamp in decending order:

 QMessageSortOrder sortOrder(QMessageSortOrder::byTimeStamp(Qt::DescendingOrder));
 QMessageIdList results = QMessageManager().queryMessages(QMessageFilter(), sortOrder);

See also QMessageManager and QMessageFilter.

Member Function Documentation

QMessageSortOrder::QMessageSortOrder ()

Create a QMessageSortOrder with specifying matching parameters.

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

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.

Windows mobile and desktop platforms do not support sorting bySender() and byRecipients(), additionally the Windows mobile platform does not support sorting byTimeStamp() and bySize().

QMessageSortOrder::QMessageSortOrder ( const QMessageSortOrder & other )

Constructs a copy of other.

This function was introduced in Qt Mobility 1.0.

QMessageSortOrder::~QMessageSortOrder () [virtual]

Destroys the sort order.

QMessageSortOrder QMessageSortOrder::byPriority ( Qt::SortOrder order = Qt::AscendingOrder ) [static]

Returns a sort order that sorts messages by their priority, according to order.

This function was introduced in Qt Mobility 1.0.

See also QMessage::priority().

QMessageSortOrder QMessageSortOrder::byReceptionTimeStamp ( Qt::SortOrder order = Qt::AscendingOrder ) [static]

Returns a sort order that sorts messages by their reception timestamp, according to order.

This function was introduced in Qt Mobility 1.0.

See also QMessage::receivedDate().

QMessageSortOrder QMessageSortOrder::byRecipients ( Qt::SortOrder order = Qt::AscendingOrder ) [static]

Returns a sort order that sorts messages by the addresses to which they were sent, according to order.

Not supported on the Windows mobile and desktop platforms.

This function was introduced in Qt Mobility 1.0.

See also QMessage::to().

QMessageSortOrder QMessageSortOrder::bySender ( Qt::SortOrder order = Qt::AscendingOrder ) [static]

Returns a sort order that sorts messages by the address from which they were sent, according to order.

Not supported on the Windows mobile and desktop platforms.

This function was introduced in Qt Mobility 1.0.

See also QMessage::from().

QMessageSortOrder QMessageSortOrder::bySize ( Qt::SortOrder order = Qt::AscendingOrder ) [static]

Returns a sort order that sorts messages by their size, according to order.

Not supported on the Windows mobile platform.

This function was introduced in Qt Mobility 1.0.

See also QMessage::size().

QMessageSortOrder QMessageSortOrder::byStatus ( QMessage::Status flag, Qt::SortOrder order = Qt::AscendingOrder ) [static]

Returns a sort order that sorts messages by their status value flag, according to order.

This function was introduced in Qt Mobility 1.0.

See also QMessage::status().

QMessageSortOrder QMessageSortOrder::bySubject ( Qt::SortOrder order = Qt::AscendingOrder ) [static]

Returns a sort order that sorts messages by their subject, according to order.

This function was introduced in Qt Mobility 1.0.

See also QMessage::subject().

QMessageSortOrder QMessageSortOrder::byTimeStamp ( Qt::SortOrder order = Qt::AscendingOrder ) [static]

Returns a sort order that sorts messages by their origination timestamp, according to order.

Not supported on the Windows mobile platform.

This function was introduced in Qt Mobility 1.0.

See also QMessage::date() and byReceptionTimeStamp().

QMessageSortOrder QMessageSortOrder::byType ( Qt::SortOrder order = Qt::AscendingOrder ) [static]

Returns a sort order that sorts messages by their message type, according to order.

This function was introduced in Qt Mobility 1.0.

See also QMessage::type().

bool QMessageSortOrder::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 QMessageSortOrder::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.

QMessageSortOrder QMessageSortOrder::operator+ ( const QMessageSortOrder & other ) const

Returns a sort order that which is the result of concatenating the vaue of this sort order and the value of sort order other.

This function determines sorting precedence.

On the Windows Mobile platform bySubject() and byReceptionTimeStamp() sort orders can not be combined with each other.

This function was introduced in Qt Mobility 1.0.

QMessageSortOrder & QMessageSortOrder::operator+= ( const QMessageSortOrder & other )

Appends the value of the sort order other with the value of this sort order and assigns the result to this sort order.

This function determines sorting precedence.

On the Windows Mobile platform bySubject() and byReceptionTimeStamp() sort orders can not be combined with each other.

This function was introduced in Qt Mobility 1.0.

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. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  4. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 41
  5. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  6. Adieu qmake, bienvenue qbs : Qt Building Suite, un outil déclaratif et extensible pour la compilation de projets Qt 17
  7. 2017 : un quinquennat pour une nouvelle version du C++ ? Possible, selon Herb Sutter 6
Page suivante

Le Qt Labs au hasard

Logo

Améliorer les performances de Qt lors du rendu avec plus de SIMD

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