ContactActivity

Since: BlackBerry 10.0.0

#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.


Overview

Public Functions Index

ContactActivity ()
ContactActivity (const ContactActivity &copy)
~ContactActivity ()
intaccountId () const
QStringdescription () const
booldirection () const
intid () const
QStringmimeType () const
ContactActivity &operator= (const ContactActivity &operand)
QDateTimestatusTimeStamp () const

Public Functions

ContactActivity ()

Constructs a new ContactActivity.

Since:

BlackBerry 10.0.0

ContactActivity (

Copy constructor.

This function constructs a ContactActivity containing exactly the same values as the provided ContactActivity.

Parameters
copy

The ContactActivity to be copied.

Since:

BlackBerry 10.0.0

~ContactActivity ()

Destructor.

Since:

BlackBerry 10.0.0

int accountId ()

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.

Return:

The account ID of this ContactActivity.

Since:

BlackBerry 10.0.0

QString description ()

Retrieves the description of this ContactActivity.

The description provides additional information depending on the source of the activity:
  • 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.

Return:

The description of this ContactActivity.

Since:

BlackBerry 10.0.0

bool direction ()

Indicates the direction of this ContactActivity.

Return:

true if the direction of the activity is incoming, false if the direction is outgoing.

Since:

BlackBerry 10.0.0

int id ()

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.

Return:

The activity ID of this ContactActivity.

Since:

BlackBerry 10.0.0

QString mimeType ()

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.

Return:

The MIME type of this ContactActivity.

Since:

BlackBerry 10.0.0

ContactActivity & operator= (

Assignment operator.

This operator copies all values from the provided ContactActivity into this ContactActivity.

Parameters
operand

The ContactActivity from which to copy all values.

Return:

A ContactActivity with all copied data

Since:

BlackBerry 10.0.0

QDateTime statusTimeStamp ()

Retrieves the time stamp that's associated with this ContactActivity.

Return:

The date and time of this ContactActivity.

Since:

BlackBerry 10.0.0

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus