QMailMessageListModel Class Reference
|
Constant | Value | Description |
---|---|---|
QMailMessageListModel::MessageAddressTextRole | Qt::UserRole | The address text of a message. This a can represent a name if the address is tied to a contact in the addressbook and represents either the incoming or outgoing address depending on the message direction. |
QMailMessageListModel::MessageSubjectTextRole | ? | The subject of a message. For-non email messages this may represent the body text of a message. |
QMailMessageListModel::MessageFilterTextRole | ? | The MessageAddressTextRole concatenated with the MessageSubjectTextRole. This can be used by filtering classes to filter messages based on the text of these commonly displayed roles. |
QMailMessageListModel::MessageTimeStampTextRole | ? | The timestamp of a message. "Recieved" or "Sent" is prepended to the timestamp string depending on the message direction. |
QMailMessageListModel::MessageTypeIconRole | ? | An Icon representing the type of the message. |
QMailMessageListModel::MessageStatusIconRole | ? | An Icon representing the status of the message. e.g Read, Unread, Downloaded |
QMailMessageListModel::MessageDirectionIconRole | ? | An Icon representing the incoming or outgoing direction of a message. |
QMailMessageListModel::MessagePresenceIconRole | ? | An Icon representing the presence status of the contact associated with the MessageAddressTextRole. |
QMailMessageListModel::MessageBodyTextRole | ? | The body of a message represented as text. |
QMailMessageListModel::MessageIdRole | ? | The QMailMessageId value identifying the message. |
Constructs a QMailMessageListModel with a parent parent.
By default, the model will match all messages in the database, and display them in the order they were submitted, and mail store updates are not ignored.
See also setKey(), setSortKey(), and setIgnoreMailStoreUpdates().
Deletes the QMailMessageListModel object.
Returns the QMailMessageId of the message represented by the QModelIndex index. If the index is not valid an invalid QMailMessageId is returned.
Returns true if the model has been set to ignore updates emitted by the mail store; otherwise returns false.
See also setIgnoreMailStoreUpdates().
Returns the QModelIndex that represents the message with QMailMessageId id. If the id is not conatained in this model, an invalid QModelIndex is returned.
Returns true if the model contains no messages.
Returns the QMailMessageKey used to populate the contents of this model.
See also setKey().
Signal emitted when the data set represented by the model is changed. Unlike modelReset(), the modelChanged() signal can not be emitted as a result of changes occurring in the current data set.
Sets whether or not mail store updates are ignored to ignore.
If ignoring updates is set to true, the model will ignore updates reported by the mail store. If set to false, the model will automatically synchronize its content in reaction to updates reported by the mail store.
If updates are ignored, signals such as rowInserted and dataChanged will not be emitted; instead, the modelReset signal will be emitted when the model is later changed to stop ignoring mail store updates, and detailed change information will not be accessible.
See also ignoreMailStoreUpdates().
Sets the QMailMessageKey used to populate the contents of the model to key. If the key is empty, the model is populated with all the messages from the database.
See also key().
Sets the QMailMessageSortKey used to sort the contents of the model to sortKey. If the sort key is invalid, no sorting is applied to the model contents and messages are displayed in the order in which they were added into the database.
See also sortKey().
Returns the QMailMessageSortKey used to sort the contents of the model.
See also setSortKey().
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 qtextended4.4 | |
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 ! |
Copyright © 2000-2012 - www.developpez.com