Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QMailFolder class represents a folder for mail messages in the mail store. More...
#include <QMailFolder>
This class is under development and is subject to change.
The QMailFolder class represents a folder for mail messages in the mail store.
QMailFolder represents a folder of mail messages, either defined internally for application use, or to represent a folder object held by an external message service, such as an IMAP account.
A QMailFolder object has an optional parent of the same type, allowing folders to be arranged in tree structures. Messages may be associated with folders, allowing for simple classification and access by their parentFolderId property.
See also QMailMessage and QMailStore::folder().
This enum type describes the standard standard storage folders. These folders cannot be removed or updated.
Constant | Value | Description |
---|---|---|
QMailFolder::InboxFolder | 1 | Represents the standard inbox folder. |
QMailFolder::OutboxFolder | 2 | Represents the standard outbox folder. |
QMailFolder::DraftsFolder | 3 | Represents the standard drafts folder. |
QMailFolder::SentFolder | 4 | Represents the standard sent folder. |
QMailFolder::TrashFolder | 5 | Represents the standard trash folder. |
Constructor that creates an empty and invalid QMailFolder. An empty folder is one which has no name, no parent folder and no parent account. An invalid folder does not exist in the database and has an invalid id.
Creates a QMailFolder object with name name and parent folder ID parentFolderId, that is linked to a parent account parentAccountId.
Constructor that loads a standard QMailFolder specified by sf from the message store.
Constructor that creates a QMailFolder by loading the data from the message store as specified by the QMailFolderId id. If the folder does not exist in the message store, then this constructor will create an empty and invalid QMailFolder.
Creates a copy of the QMailFolder object other.
Destroys the QMailFolder object.
Returns the display name of the folder.
See also setDisplayName().
Returns the ID of the QMailFolder object. A QMailFolder with an invalid ID is one which does not yet exist on the message store.
See also setId().
Returns true if the folder is a root folder or false otherwise. A root folder is one which has not parent.
Returns the name of the folder.
See also setName().
Returns the id of the account which owns the folder. If the folder is not linked to an account an invalid id is returned.
See also setParentAccountId().
Returns the ID of the parent folder. This folder is a root folder if the parent ID is invalid.
See also setParentId().
Sets the display name of this folder to displayName.
See also displayName().
Sets the ID of this folder to id
See also id().
Sets the name of this folder to name.
See also name().
Sets the id of the account which owns the folder to id.
See also parentAccountId().
Sets the parent folder id to id. Warning: it is the responsibility of the application to make sure that no circular folder refernces are created.
See also parentId().
Sets the status value for the folder to newStatus.
See also status() and statusMask().
This is an overloaded member function, provided for convenience.
Sets the status flags indicated in mask to set.
See also status() and statusMask().
Returns the status value for the folder.
See also setStatus() and statusMask().
Returns the status bitmask needed to test the result of QMailFolder::status() against the QMailFolder status flag registered with the identifier flagName.
See also status() and QMailStore::folderStatusMask().
Assigns the value of the QMailFolder object other to this.
The status mask needed for testing the value of the registered status flag named "SynchronizationEnabled" against the result of QMailFolder::status().
This flag indicates that a folder should be included during account synchronization.
The status mask needed for testing the value of the registered status flag named "Synchronized" against the result of QMailFolder::status().
This flag indicates that a folder has been synchronized during account synchronization.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |