![]() |
Home · All Classes · Grouped Classes · Annotated · Functions | ![]() |
The QMailStore class represents the main interface for storage and retrieval of messages and folders on the message store. More...
#include <QMailStore>
This class is under development and is subject to change.
Inherits QObject.
The QMailStore class represents the main interface for storage and retrieval of messages and folders on the message store.
The QMailStore class is accessed through a singleton interface and provides functions for adding, updating and deleting of QMailFolders and QMailMessages on the message store.
QMailStore also provides functions for querying and counting of QMailFolders and QMailMessages when used in conjunction with QMailMessageKey and QMailFolderKey classes.
See also QMailMessage, QMailFolder, QMailMessageKey, and QMailFolderKey.
This enum defines the message header return option for QMailStore::messageHeaders()
Constant | Value | Description |
---|---|---|
QMailStore::ReturnAll | 0 | Return all message headers that match the selection criteria, including duplicates. |
QMailStore::ReturnDistinct | 1 | Return distinct message headers that match the selection criteria, excluding duplicates. |
Destroys this QMailStore object.
Adds a new QMailFolder object a into the message store, performing respective integrity checks. Returns true if the operation completed successfully, false otherwise.
Adds a new QMailMessage object m into the message store, performing respective integrity checks. Returns true if the operation completed successfully, false otherwise.
Returns the count of the number of folders which pass the filtering criteria defined in QMailFolderKey key. If key is empty a count of all folders is returned.
Returns the count of the number of messages which pass the filtering criteria defined in QMailMessageKey key. If key is empty a count of all messages is returned.
Returns the QMailFolder defined by a QMailId id from the message store.
Signal that is emitted when the folders in the list ids are added to the mail store.
See also foldersRemoved() and foldersUpdated().
Signal that is emitted when the folders in the list ids are removed from the mail store.
See also foldersAdded() and foldersUpdated().
Signal that is emitted when the folders in the list ids are updated within the mail store.
See also foldersAdded() and foldersRemoved().
Returns an instance of the QMailStore object.
Returns the QMailMessage defined by a QMailId id from the message store.
This is an overloaded member function, provided for convenience.
Returns the QMailMessage defined by the unique identifier uid from the account account.
Returns the QMailMessage header defined by a QMailId id from the message store.
This is an overloaded member function, provided for convenience.
Returns the QMailMessage header defined by the unique identifier uid from the account account.
Retrieves a list of message headers containing data defined by properties for messages which pass the criteria defined by key. If option is ReturnAll then duplicate headers are included in the list; otherwise duplicate headers are excluded from the returned list.
Returns a list of headers if successfully completed, or an empty list for an error or no data.
Signal that is emitted when the messages in the list ids are added to the mail store.
See also messagesRemoved() and messagesUpdated().
Signal that is emitted when the messages in the list ids are removed from the mail store.
See also messagesAdded() and messagesUpdated().
Signal that is emitted when the messages in the list ids are updated within the mail store.
See also messagesAdded() and messagesRemoved().
Returns the QMailIds of folders in the message store. If key is not empty only folders matching the parameters set by key will be returned, otherwise all folder identifiers will be returned. If sortKey is not empty, the identifiers will be sorted by the parameters set by sortKey.
Returns the QMailIds of messages in the message store. If key is not empty only messages matching the parameters set by key will be returned, otherwise all message identifiers will be returned. If sortKey is not empty, the identifiers will be sorted by the parameters set by sortKey.
Removes a QMailFolder with QMailId id from the message store. This action also removes the sub-folder and messages of the folder. Returns true if the operation completed successfully, false otherwise.
Removes a QMailMessage with QMailId id from the message store. Returns true if the operation completed successfully, false otherwise.
Returns the total size of the messages which pass the filtering criteria defined in QMailMessageKey key. If key is empty the total size of all messages is returned.
Updates the existing QMailFolder f on the message store. Returns true if the operation completed successfully, false otherwise.
Updates the existing QMailMessage m on the message store. Returns true if the operation completed successfully, or false otherwise.
Updates the message properties defined in properties with data contained in the message data for all messages which pass the criteria defined by the QMailMessageKey key. Returns true if the operation completed successfully, or false otherwise.
This is an overloaded member function, provided for convenience.
Updates message status flags with status according to set for messages which pass the criteria defined in the QMailMessageKey key. Returns true if the operation completed successfully, or false otherwise.
Copyright © 2008 Nokia | Trademarks | Qtopia 4.3.3 |