#include <app/MVPbkContactAttributeManager.h>
class MVPbkContactAttributeManager |
Abstract interface for contact attribute manager.
Contact attribute manager can be used to set global attributes such as speed dials for contacts or fields of contacts. The attributes can be stored in external databases so that some kind of mapping is maintained between contacts and attributes. This interface provides unified access to all global attributes.
MVPbkStoreContactField * | FindFieldWithAttributeL | ( | const MVPbkContactAttribute & | aAttr, |
MVPbkStoreContact & | aContact | |||
) | const [pure virtual] |
Finds the first field that has the aAttr and returns a reference to the field or NULL if not found.
Note: the returned reference will become invalid if MVPbkStoreContactFieldCollection::FieldAt is called for different field. If this is a problem then use MVPbkStoreContactField::CloneLC for permanent copy of the field.
Parameter | Description |
---|---|
aAttr | The attribute that is looked for. |
aContact | Contact whose fields are iterated. |
Returns: Returns a reference to the field or NULL if not found.
MVPbkContactOperationBase * | FindFieldsWithAttributeL | ( | TUid | aAttributeType, |
MVPbkStoreContact & | aContact, | |||
MVPbkMultiAttributePresenceObserver & | aObserver | |||
) | const [pure virtual] |
Initiates an asynchronous operation, which finds the aAttribute type attributed fields from the contact.
Parameter | Description |
---|---|
aAttributeType | Type of the attribute to find for. |
aContact | Contact whose attributes are checked. |
aObserver | Observer for the asynchronous process. |
Returns: Newly created handle to the operation.
MVPbkContactOperationBase * | FindFieldsWithAttributeL | ( | const MVPbkContactAttribute & | aAttribute, |
MVPbkStoreContact & | aContact, | |||
MVPbkMultiAttributePresenceObserver & | aObserver | |||
) | const [pure virtual] |
Initiates an asynchronous operation, which finds the aAttribute type attributed fields from the contact.
Parameter | Description |
---|---|
aAttribute | Attribute prototype to match against. |
aContact | Contact whose attributes are checked. |
aObserver | Observer for the asynchronous process. |
Returns: Newly created handle to the operation.
MVPbkStoreContactFieldCollection * | FindFieldsWithAttributeLC | ( | TUid | aAttributeType, |
MVPbkStoreContact & | aContact | |||
) | const [pure virtual] |
Returns fields with attribute type aAttributeType, or NULL if there is no fields with that attribute in this contact.
Parameter | Description |
---|---|
aAttributeType | Type of the attribute to find for. |
aContact | Contact whose attributes are checked. |
MVPbkStoreContactFieldCollection * | FindFieldsWithAttributeLC | ( | const MVPbkContactAttribute & | aAttribute, |
MVPbkStoreContact & | aContact | |||
) | const [pure virtual] |
Returns fields with attribute aAttribute, or NULL if there is no fields with that attribute in this contact.
Parameter | Description |
---|---|
aAttribute | Attribute prototype to match against. |
aContact | Contact whose attributes are checked. |
TBool | HasContactAttributeL | ( | TUid | aAttributeType, |
const MVPbkStoreContact & | aContact | |||
) | const [pure virtual] |
Checks if the given contact has the given attribute.
Parameter | Description |
---|---|
aAttributeType | Type of the attribute to check for. |
aContact | Contact whose attributes are checked. |
Returns: ETrue if aContact has an attribute of aAttributeType, EFalse otherwise.
TBool | HasContactAttributeL | ( | const MVPbkContactAttribute & | aAttribute, |
const MVPbkStoreContact & | aContact | |||
) | const [pure virtual] |
Checks if the given contact has an attribute matching the given attribute.
Parameter | Description |
---|---|
aAttribute | Attribute prototype to match against. |
aContact | Contact whose attributes are checked. |
Returns: ETrue if aContact has an attribute matching the aAttribute, EFalse otherwise.
MVPbkContactOperationBase * | HasContactAttributeL | ( | TUid | aAttributeType, |
const MVPbkStoreContact & | aContact, | |||
MVPbkSingleAttributePresenceObserver & | aObserver | |||
) | const [pure virtual] |
Checks if the given contact has the given attribute asynchronously.
Parameter | Description |
---|---|
aAttributeType | Type of the attribute to check for. |
aContact | Contact whose attributes are checked. |
aObserver | Observer for the asynchronous process. |
Returns: Newly created handle to the operation.
MVPbkContactOperationBase * | HasContactAttributeL | ( | const MVPbkContactAttribute & | aAttribute, |
const MVPbkStoreContact & | aContact, | |||
MVPbkSingleAttributePresenceObserver & | aObserver | |||
) | const [pure virtual] |
Checks if the given contact has an attribute matching the given attribute asynchronously.
Parameter | Description |
---|---|
aAttribute | Attribute prototype to match against. |
aContact | Contact whose attributes are checked. |
aObserver | Observer for the asynchronous process. |
Returns: Newly created handle to the operation.
TBool | HasFieldAttributeL | ( | TUid | aAttributeType, |
const MVPbkStoreContactField & | aField | |||
) | const [pure virtual] |
Checks if the given contact field has the given attribute.
Parameter | Description |
---|---|
aAttributeType | Type of the attribute to check for. |
aField | Field whose attributes are checked. |
Returns: ETrue if aField has an attribute of aAttributeType, EFalse otherwise.
TBool | HasFieldAttributeL | ( | const MVPbkContactAttribute & | aAttribute, |
const MVPbkStoreContactField & | aField | |||
) | const [pure virtual] |
Checks if the given contact field has an attribute matching the given attribute.
Parameter | Description |
---|---|
aAttribute | Attribute prototype to match against. |
aField | Contact field whose attribute is checked. |
Returns: ETrue if aField has an attribute matching the aAttribute, EFalse otherwise.
MVPbkContactOperationBase * | HasFieldAttributeL | ( | TUid | aAttributeType, |
const MVPbkStoreContactField & | aField, | |||
MVPbkSingleAttributePresenceObserver & | aObserver | |||
) | const [pure virtual] |
Checks if the given contact field has the given attribute asynchronously.
Parameter | Description |
---|---|
aAttributeType | Type of the attribute to check for. |
aField | Field whose attributes are checked. |
aObserver | Observer for the asynchronous process. |
Returns: Newly created handle to the operation.
MVPbkContactOperationBase * | HasFieldAttributeL | ( | const MVPbkContactAttribute & | aAttribute, |
const MVPbkStoreContactField & | aField, | |||
MVPbkSingleAttributePresenceObserver & | aObserver | |||
) | const [pure virtual] |
Checks if the given contact field has an attribute matching the given attribute asynchronously.
Parameter | Description |
---|---|
aAttribute | Attribute prototype to match against. |
aField | Contact field whose attribute is checked. |
aObserver | Observer for the asynchronous process. |
Returns: Newly created handle to the operation.
MVPbkContactOperationBase * | ListContactsL | ( | TUid | aAttributeType, |
MVPbkContactFindObserver & | aObserver | |||
) | [pure virtual] |
Lists all contacts having the requested type of attribute asynchronously.
Parameter | Description |
---|---|
aAttributeType | Type of the attribute to search for. |
aObserver | Observer for the asynchronous process. |
Returns: Newly created handle to the process.
MVPbkContactOperationBase * | ListContactsL | ( | const MVPbkContactAttribute & | aAttribute, |
MVPbkContactFindObserver & | aObserver | |||
) | [pure virtual] |
Lists all contacts matching the given attribute asynchronously.
Parameter | Description |
---|---|
aAttribute | Attribute prototype to match against. |
aObserver | Observer for the asynchronous process. |
Returns: Newly created handle to the process.
MVPbkContactOperationBase * | RemoveContactAttributeL | ( | const MVPbkContactLink & | aContactLink, |
const MVPbkContactAttribute & | aAttribute, | |||
MVPbkSetAttributeObserver & | aObserver | |||
) | [pure virtual] |
asynchronously removes the given attribute from the contact referred by the aContactLink.
Parameter | Description |
---|---|
aContactLink | Link to the contact whose attribute to remove. |
aAttribute | Attribute to remove from the contact. |
aObserver | Observer for the asynchronous process. |
Returns: Newly created handle to the operation.
MVPbkContactOperationBase * | RemoveContactAttributeL | ( | const MVPbkContactLink & | aContactLink, |
TUid | aAttributeType, | |||
MVPbkSetAttributeObserver & | aObserver | |||
) | [pure virtual] |
asynchronously removes all attributes having the attribute type aAttributeType from the contact.
Parameter | Description |
---|---|
aContactLink | Link to the contact whose attribute to remove. |
aAttributeType | Type of the attributes to remove from the contact. |
aObserver | Observer for the asynchronous process. |
Returns: Newly created handle to the operation.
MVPbkContactOperationBase * | RemoveFieldAttributeL | ( | MVPbkStoreContactField & | aField, |
const MVPbkContactAttribute & | aAttribute, | |||
MVPbkSetAttributeObserver & | aObserver | |||
) | [pure virtual] |
Asynchronously removes the given attribute from the given contact field.
Parameter | Description |
---|---|
aField | Field whose attribute to remove. |
aAttribute | Attribute to remove from the contact field. |
aObserver | Observer for the asynchronous process. |
Returns: Newly created handle to the operation.
MVPbkContactOperationBase * | RemoveFieldAttributeL | ( | MVPbkStoreContactField & | aField, |
TUid | aAttributeType, | |||
MVPbkSetAttributeObserver & | aObserver | |||
) | [pure virtual] |
Asynchronously removes all attributes having the attribute type aAttributeType from the contact field.
Parameter | Description |
---|---|
aField | Field whose attribute to remove. |
aAttributeType | Type of the attributes to remove from the contact field. |
aObserver | Observer for the asynchronous process. |
Returns: Newly created handle to the operation.
MVPbkContactOperationBase * | SetContactAttributeL | ( | const MVPbkContactLink & | aContactLink, |
const MVPbkContactAttribute & | aAttribute, | |||
MVPbkSetAttributeObserver & | aObserver | |||
) | [pure virtual] |
Asynchronously sets the contact attribute for the contact referred by the given contact link.
Parameter | Description |
---|---|
aContactLink | Link to contact whose attribute to set. |
aAttribute | Attribute to set for the contact. |
aObserver | Observer for the asynchronous process. |
Returns: Newly created handle to the operation.
MVPbkContactOperationBase * | SetFieldAttributeL | ( | MVPbkStoreContactField & | aField, |
const MVPbkContactAttribute & | aAttribute, | |||
MVPbkSetAttributeObserver & | aObserver | |||
) | [pure virtual] |
Asynchronously sets the contact field attribute for the give contact field.
Parameter | Description |
---|---|
aField | Contact field whose attribute to set. |
aAttribute | Attribute to set for the contact field. |
aObserver | Observer for the asynchronous process. |
Returns: Newly created handle to the operation.