ContactPhoto
#include <bb/pim/contacts/ContactPhoto>
To link against this class, add the following line to your .pro file: LIBS += -lbbpim
The ContactPhoto class represents a photo that's associated with a Contact.
This class contains references to photos on the file system that's associated with the contact. Each contact can have multiple photos associated with it, and one photo can be designated the primary photo of the contact.
You can retrieve a list of photos for a contact by using Contact::photos(). You can retrieve the primary photo for a contact by using Contact::primaryPhoto(), and set the primary photo by using ContactService::setPrimaryPhoto(). You can create a new ContactPhoto and specify values for an existing ContactPhoto by using a ContactPhotoBuilder.
BlackBerry 10.0.0
Public Functions Index
| ContactPhoto () | |
| ~ContactPhoto () | |
| ContactPhoto (const ContactPhoto ©) | |
| ContactPhoto & | operator= (const ContactPhoto ©) |
| QString | smallPhoto () const |
| QString | largePhoto () const |
| QString | originalPhoto () const |
| int | sourceAccountId () const |
| ContactPhotoBuilder | edit () |
| int | id () const |
| bool | isValid () const |
Public Functions
Destructor.
BlackBerry 10.0.0
Copy constructor.
This function constructs a ContactPhoto containing exactly the same values as the provided ContactPhoto.
| Parameters | |
|---|---|
| copy |
The ContactPhoto to be copied. |
BlackBerry 10.0.0
ContactPhoto &
Assignment operator.
This operator copies all values from the provided ContactPhoto into this ContactPhoto.
| Parameters | |
|---|---|
| copy |
The ContactPhoto from which to copy all values. |
A ContactPhoto with all copied data
BlackBerry 10.0.0
QString
Retrieves the file path of the small photo that's associated with this ContactPhoto.
There is a "file://" prefix added to the response to help make Cascades integration easier.
The file path of the small photo that's associated with this ContactPhoto.
BlackBerry 10.0.0
QString
Retrieves the file path of the large photo that's associated with this ContactPhoto.
There is a "file://" prefix added to the response to help make Cascades integration easier.
The file path of the large photo that's associated with this ContactPhoto.
BlackBerry 10.0.0
QString
Retrieves the file path of the original photo that's associated with this ContactPhoto.
Both the small photo and large photo are created based on this original photo. There is a "file://" prefix added to the response to help make Cascades integration easier.
The file path of the original photo that's associated with this ContactPhoto.
BlackBerry 10.0.0
int
Retrieves the source account ID of this ContactPhoto.
You can use the source account ID to help locate the origin of the photo.
The source account ID of this ContactPhoto.
BlackBerry 10.0.0
ContactPhotoBuilder
Edits the contents of this ContactPhoto.
This function returns a ContactPhotoBuilder that you can use to change the values of this ContactPhoto.
A ContactPhotoBuilder that you can use to change the values of this ContactPhoto.
BlackBerry 10.0.0
int
Retrieves the internal ID of this ContactPhoto.
The internal ID of this ContactPhoto.
BlackBerry 10.0.0
bool
Indicates whether this ContactPhoto is valid.
You should use this function to determine if a ContactPhoto is valid before you use it.
true if this ContactPhoto is valid, false otherwise.
BlackBerry 10.0.0