ContactActivity
#include <bb/pim/contacts/ContactActivity>
To link against this class, add the following line to your .pro file: LIBS += -lbbpim
The ContactActivity class represents an interaction with a Contact object.
A ContactActivity is linked to a particular Contact, and represents an interaction with that Contact using an email, phone call, or calendar event. For example, a ContactActivity might represent receiving a phone call from a particular contact in a user's Contacts application.
You can retrieve a list of ContactActivity objects for a Contact by using the ContactService.
BlackBerry 10.0.0
Public Functions Index
| ContactActivity () | |
| ~ContactActivity () | |
| ContactActivity (const ContactActivity ©) | |
| ContactActivity & | operator= (const ContactActivity &operand) |
| QString | mimeType () const |
| bool | direction () const |
| int | id () const |
| int | accountId () const |
| QString | description () const |
| QDateTime | statusTimeStamp () const |
Public Functions
Destructor.
BlackBerry 10.0.0
Copy constructor.
This function constructs a ContactActivity containing exactly the same values as the provided ContactActivity.
| Parameters | |
|---|---|
| copy |
The ContactActivity to be copied. |
BlackBerry 10.0.0
ContactActivity &
Assignment operator.
This operator copies all values from the provided ContactActivity into this ContactActivity.
| Parameters | |
|---|---|
| operand |
The ContactActivity from which to copy all values. |
A ContactActivity with all copied data
BlackBerry 10.0.0
QString
Retrieves the MIME type of this ContactActivity.
An example of a MIME type of an activity is "email". Using the MIME type, you can determine the appropriate service to retrieve the object that's associated with the contact.
The MIME type of this ContactActivity.
BlackBerry 10.0.0
bool
Indicates the direction of this ContactActivity.
true if the direction of the activity is incoming, false if the direction is outgoing.
BlackBerry 10.0.0
int
Retrieves the activity ID of this ContactActivity.
You can use the activity ID, along with the account ID and MIME type, to retrieve the object that caused this activity.
The activity ID of this ContactActivity.
BlackBerry 10.0.0
int
Retrieves the account ID of this ContactActivity.
The account ID determines which account this ContactActivity belongs to. You can use the account ID to retrieve the details for the activity.
The account ID of this ContactActivity.
BlackBerry 10.0.0
QString
Retrieves the description of this ContactActivity.
For messages, the description is the subject of the message.
For phone calls, the description is the phone number.
For calendar events, the description is the subject of the event.
The description of this ContactActivity.
BlackBerry 10.0.0
QDateTime
Retrieves the time stamp that's associated with this ContactActivity.
The date and time of this ContactActivity.
BlackBerry 10.0.0