Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QMailMessageMetaData class provides information about a message stored by Qtopia. More...
#include <QMailMessageMetaData>
This class is under development and is subject to change.
Inherited by QMailMessage.
The QMailMessageMetaData class provides information about a message stored by Qtopia.
The QMailMessageMetaData class provides information about messages stored in the Qt Extended system as QMailMessage objects. The meta data is more compact and more easily accessed and manipulated than the content of the message itself. Many messaging-related tasks can be accomplished by manipulating the message meta data, such as listing, filtering, and searching through sets of messages.
QMailMessageMetaData objects can be created as needed, specifying the identifier of the message whose meta data is required. The meta data of a message can be located by specifying the QMailMessageId identifier directly, or by specifying the account and server UID pair needed to locate the message.
The content of the message described by the meta data object can be accessed by creating a QMailMessage object specifying the identifier returned by QMailMessageMetaData::id().
See also QMailStore and QMailMessageId.
This enum type is used to describe the type of data contained within a message.
Constant | Value | Description |
---|---|---|
QMailMessageMetaData::UnknownContent | 0 | The content of the message has not been specified. |
QMailMessageMetaData::NoContent | 1 | The message does not contain content and is completely described by its meta data. |
QMailMessageMetaData::PlainTextContent | 2 | Plain text content. |
QMailMessageMetaData::RichTextContent | 3 | Text content described via QTextBrowser rich text markup. |
QMailMessageMetaData::HtmlContent | 4 | Content marked up via HyperText Markup Language. |
QMailMessageMetaData::ImageContent | 5 | Image content. |
QMailMessageMetaData::AudioContent | 6 | Audio content. |
QMailMessageMetaData::VideoContent | 7 | Video content. |
QMailMessageMetaData::MultipartContent | 8 | Content consisting of multiple individual parts related according to RFC 2046. |
QMailMessageMetaData::SmilContent | 9 | Dynamic content described via Synchronized Multimedia Integration Language. |
QMailMessageMetaData::VoicemailContent | 10 | Content that should be presented as a recorded audio message from a contact. |
QMailMessageMetaData::VideomailContent | 11 | Content that should be presented as a recorded video message from a contact. |
QMailMessageMetaData::VCardContent | 12 | A contact description, as defined by RFC 2425. |
QMailMessageMetaData::VCalendarContent | 13 | A scheduling element description as defined by the vCalendar 1.0 specification. |
QMailMessageMetaData::ICalendarContent | 14 | A scheduling element description as defined by RFC 2445. |
QMailMessageMetaData::UserContent | 64 | The first value that can be used for application-specific purposes. |
This enum type is used to describe the type of a message.
Constant | Value | Description |
---|---|---|
QMailMessageMetaData::Mms | 0x1 | The message is an MMS. |
QMailMessageMetaData::Sms | 0x4 | The message is an SMS. |
QMailMessageMetaData::Email | 0x8 | The message is an Email. |
QMailMessageMetaData::Instant | 0x20 | The message is an instant message. |
QMailMessageMetaData::System | 0x10 | The message is a system report. |
QMailMessageMetaData::None | 0 | Indicates no message type. |
QMailMessageMetaData::AnyType | Mms | Sms | Email | System | Instant | Indicates any type of message. |
Constructs an empty message meta data object.
Constructs a message meta data object from data stored in the message store with QMailMessageId id.
Constructs a message meta data object from data stored in the message store with the unique identifier uid from the account with id accountId.
Returns the type of content contained within the message.
See also setContent().
Returns the timestamp contained in the origination date header field of the message, if present; otherwise returns an empty string.
See also setDate().
Returns the originating address of the message.
See also setFrom().
Returns the name of the originating account for the message.
See also setFromAccount().
Returns the name of the originating mailbox for the message.
See also setFromMailbox().
Returns the Qt Extended unique QMailMessageId of the message.
See also setId().
Returns an indication of the size of the message. This measure should be used only in comparing the relative size of messages with respect to transmission.
Returns the MessageType of the message.
See also setMessageType().
Returns the id of the originating account for the message.
See also setParentAccountId().
Return the QMailFolderId of the folder that contains the message.
See also setParentFolderId().
Return the QMailFolderId of the folder that contained the message before it was moved into the current parent folder.
See also setPreviousParentFolderId().
Returns the identifier for the message on the originating server.
See also setServerUid().
Sets the type of content contained within the message to type. It is the caller's responsibility to ensure that this value matches the actual content.
See also content().
Sets the origination date header field specifying the timestamp of the message to timeStamp.
See also date().
Sets the from address, that is the originating address of the message to from.
See also from().
Sets the name of the originating account for the message to account.
See also fromAccount().
Sets the name of the originating mailbox for the message to mailBox.
See also fromMailbox().
Sets the QMailMessageId of the message to id. id should be different for each message known to Qtopia.
See also id().
Sets the MessageType of the message to type.
See also messageType().
Sets the id of the originating account for the message to id.
See also parentAccountId().
Sets the QMailFolderId of the folder that contains the message to id.
See also parentFolderId().
Sets the QMailFolderId of the folder that contained the message before it was moved into the current parent folder to id.
See also previousParentFolderId().
Sets the originating server identifier for the message to server. The identifier specified should be unique.
See also serverUid().
Sets the complete size of the message as found on the server to size.
See also size().
Sets the status value for the message 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().
Sets the subject of the message to subject.
See also subject().
Sets the list of primary recipients for the message to toList.
See also to().
This is an overloaded member function, provided for convenience.
Sets the list of primary recipients for the message to contain address.
Returns the complete size of the message as indicated on the originating server.
See also setSize().
Returns the status value for the message.
See also setStatus() and statusMask().
Returns the status bitmask needed to test the result of QMailMessageMetaData::status() against the QMailMessageMetaData status flag registered with the identifier flagName.
See also status() and QMailStore::messageStatusMask().
Returns the subject of the message, if present; otherwise returns an empty string.
See also setSubject().
Returns the list of primary recipients for the message.
See also setTo() and QMailAddress.
The status mask needed for testing the value of the registered status flag named "Downloaded" against the result of QMailMessage::status().
This flag indicates that the entire content of the message has been retrieved from the originating server.
The status mask needed for testing the value of the registered status flag named "Forwarded" against the result of QMailMessage::status().
This flag indicates that a message forwarding the content of this message has been created.
The status mask needed for testing the value of the registered status flag named "Incoming" against the result of QMailMessage::status().
This flag indicates that the message has been sent from an external source to an account whose messages are retrieved to Qt Extended.
The status mask needed for testing the value of the registered status flag named "New" against the result of QMailMessage::status().
This flag indicates that the meta data of the message has not yet been displayed to the user.
The status mask needed for testing the value of the registered status flag named "Outgoing" against the result of QMailMessage::status().
This flag indicates that the message originates within Qt Extended, for transmission to an external message sink.
The status mask needed for testing the value of the registered status flag named "Read" against the result of QMailMessage::status().
This flag indicates that the content of this message has been displayed to the user.
The status mask needed for testing the value of the registered status flag named "ReadElsewhere" against the result of QMailMessage::status().
This flag indicates that the content of this message has been reported as having been displayed to the user by some other client.
The status mask needed for testing the value of the registered status flag named "Removed" against the result of QMailMessage::status().
This flag indicates that the message has been deleted from or moved on the originating server.
The status mask needed for testing the value of the registered status flag named "Replied" against the result of QMailMessage::status().
This flag indicates that a message replying to the source of this message has been created, in response to this message.
The status mask needed for testing the value of the registered status flag named "RepliedAll" against the result of QMailMessage::status().
This flag indicates that a message replying to the source of this message and all its recipients, has been created in response to this message.
The status mask needed for testing the value of the registered status flag named "Sent" against the result of QMailMessage::status().
This flag indicates that the message has been delivered to an external message sink.
The status mask needed for testing the value of the registered status flag named "UnloadedData" against the result of QMailMessage::status().
This flag indicates that the meta data of the message is not loaded in entirety.
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |