Conversation
#include <bb/pim/message/Conversation>
To link against this class, add the following line to your .pro file: LIBS += -lbbpim
The Conversation class represents a conversation between message recipients.
A conversation is a set of related messages between recipients. By using the Conversation class, you can retrieve information such as conversation subject, participants, and the most recent message in the conversation. You can use this information to display a conversation in a custom interface that you create yourself (for example, an interface that's similar to BBM).
You can also use the MessageService to retrieve conversation information. For example, you can retrieve a list of conversations by calling MessageService::conversations(), or retrieve a list of just conversation IDs by calling MessageService::conversationKeys().
BlackBerry 10.0.0
Public Functions Index
| Conversation () | |
| ~Conversation () | |
| Conversation (const Conversation &other) | |
| Conversation & | operator= (const Conversation &other) |
| Conversation (ConversationPrivate *conversationPrivate) | |
| bool | isValid () const |
| ConversationKey | id () const |
| bb::pim::account::AccountKey | accountId () const |
| QList< FolderKey > | folderIds () const |
| MessageKey | latestMessageId () const |
| QString | sourceId () const |
| long | transmissionStatus () const |
| QString | subject () const |
| QList< MessageContact > | participants () const |
| int | messageCount () const |
| int | unreadMessageCount () const |
| ConversationStatus::Types | status () const |
| QString | name () const |
| QDateTime | timeStamp () const |
| QString | summary () const |
| QString | mimeType () const |
| void | apply (const ConversationUpdate &data) |
Public Functions
Destructor.
BlackBerry 10.0.0
Copy constructor.
This function constructs a Conversation containing exactly the same values as the provided Conversation.
| Parameters | |
|---|---|
| other |
The Conversation to be copied. |
BlackBerry 10.0.0
Conversation &
Assignment operator.
This operator copies all values from the provided Conversation into this Conversation.
| Parameters | |
|---|---|
| other |
The Conversation from which to copy all values. |
A Conversation with all copied data.
BlackBerry 10.0.0
Constructs a Conversation with the provided private conversation information.
This constructor creates a Conversation by using a d_ptr to private conversation information.
| Parameters | |
|---|---|
| conversationPrivate |
The private conversation information to use. |
BlackBerry 10.0.0
bool
Indicates whether this Conversation is valid.
true if this Conversation is valid, false otherwise.
BlackBerry 10.0.0
ConversationKey
Retrieves the ID of this Conversation.
This ID is unique per account.
The conversation's ID.
BlackBerry 10.0.0
bb::pim::account::AccountKey
Retrieves the account ID of this Conversation.
You can use this ID to determine which account the conversation belongs to.
The conversation's account ID.
BlackBerry 10.0.0
QList< FolderKey >
Retrieves the list of folder IDs for this Conversation.
The folder IDs are based on the folder ID of each message in the conversation (in no particular order).
inbox
inbox
sent
inbox
In this case, this function returns a QList with two folder IDs: inbox and sent.
The conversation's folder IDs.
BlackBerry 10.0.0
MessageKey
Retrieves the ID of the most recent message in this Conversation.
The ID of the most recent message in the conversation.
BlackBerry 10.0.0
QString
Retrieves the source ID of this Conversation.
This ID is the identifier that's supplied by the provider of the conversation.
The conversation's source ID.
BlackBerry 10.0.0
long
Retrieves the raw transmission status of this Conversation.
Note that this is the status of the latest message in the conversation, coming from the data store.
The conversation's raw transmission status.
BlackBerry 10.0.0
QString
Retrieves the subject of this Conversation.
The conversation's subject.
BlackBerry 10.0.0
QList< MessageContact >
Retrieves a list of the participants in this Conversation.
A list of the conversation's participants.
BlackBerry 10.0.0
int
Retrieves the number of messages in this Conversation.
The number of messages in the conversation.
BlackBerry 10.0.0
int
Retrieves the number of unread messages in this Conversation.
The number of unread messages in the conversation.
BlackBerry 10.0.0
ConversationStatus::Types
Retrieves a bitmask representing the status of this Conversation.
The ConversationStatus class includes the possible flags for the status of a conversation.
A bitmask representing the status of the conversation.
BlackBerry 10.0.0
QString
Retrieves the name of this Conversation.
The conversation's name.
BlackBerry 10.0.0
QDateTime
Retrieves the timestamp of this Conversation.
The conversation's timestamp.
BlackBerry 10.0.0
QString
Retrieves the summary of this Conversation.
The conversation's summary.
BlackBerry 10.0.0
QString
Retrieves the MIME type of this Conversation.
The conversation's MIME type, as a QString.
BlackBerry 10.0.0
void
Applies the provided conversation update to this Conversation.
This update is triggered by user interaction such as reading or flagging a message in the conversation. The ConversationUpdate class includes information for a particular update of a conversation.
| Parameters | |
|---|---|
| data |
The conversation update to apply. |
BlackBerry 10.0.0