ContactFavouriteActionBuilder
#include <bb/pim/contacts/ContactFavouriteActionBuilder>
To link against this class, add the following line to your .pro file: LIBS += -lbbpim
The ContactFavouriteActionBuilder class lets you create, and specify properties for, a new ContactFavouriteAction or edit an existing ContactFavouriteAction.
You can use this class to set properties, such as action name and attribute association, for a ContactFavouriteAction. This class uses the builder pattern to create a ContactFavouriteAction and set its properties. Each of the set*() functions returns a self reference to the builder, allowing you to chain function calls together. For example, here's how to create a ContactFavouriteAction with a name and attribute association using the builder pattern:
ContactFavouriteAction action = ContactFavouriteActionBuilder()
.setActionName("email")
.setAttributeAssociation(123456);
BlackBerry 10.0.0
Public Functions Index
| ContactFavouriteActionBuilder () | |
| ContactFavouriteActionBuilder (const ContactFavouriteActionBuilder ©) | |
| ~ContactFavouriteActionBuilder () | |
| ContactFavouriteActionBuilder & | operator= (const ContactFavouriteActionBuilder &operand) |
| ContactFavouriteActionBuilder & | setActionName (QString actionName) |
| ContactFavouriteActionBuilder & | setAttributeAssociation (int attributeId) |
| operator ContactFavouriteAction () |
Public Functions
Copy constructor.
This function constructs a ContactFavouriteActionBuilder containing exactly the same values as the provided ContactFavouriteActionBuilder.
| Parameters | |
|---|---|
| copy |
The ContactFavouriteAction to be copied. |
BlackBerry 10.0.0
Destructor.
BlackBerry 10.0.0
ContactFavouriteActionBuilder &
Assignment operator.
This operator copies all values from the provided ContactFavouriteActionBuilder into this ContactFavouriteActionBuilder.
| Parameters | |
|---|---|
| operand |
The ContactFavouriteActionBuilder from which to copy all values. |
A ContactFavouriteActionBuilder with all copied data
BlackBerry 10.0.0
ContactFavouriteActionBuilder &
Sets the name of the action.
This value is the name of the action that's associated with the attribute, and can be a QString such as "phone", "email", "text", and so on.
| Parameters | |
|---|---|
| actionName |
The action name to set. |
A ContactFavouriteActionBuilder with the provided action name.
BlackBerry 10.0.0
ContactFavouriteActionBuilder &
Sets the attribute ID of the action.
The attribute ID specifies which attribute this action is associated with.
| Parameters | |
|---|---|
| attributeId |
The attribute ID to set. |
A ContactFavouriteActionBuilder with the provided attribute ID.
BlackBerry 10.0.0
Cast operator.
This operator casts an object to the ContactFavouriteAction type.
BlackBerry 10.0.0