MVPbkContactCopyPolicy Class Reference
class MVPbkContactCopyPolicy |
Virtual Phonebook Contact copy policy interface.
Public Member Functions |
---|
| ~MVPbkContactCopyPolicy() |
MVPbkContactOperationBase * | AddFieldToContactL(MVPbkStoreContact &, const MVPbkFieldType &, const TDateTime &, const TDesC *, const MVPbkContactAttribute *, MVPbkContactFieldCopyObserver &) |
MVPbkContactOperationBase * | AddFieldToContactL(MVPbkStoreContact &, const MVPbkFieldType &, const TDesC &, const TDesC *, const MVPbkContactAttribute *, MVPbkContactFieldCopyObserver &) |
MVPbkContactOperationBase * | AddFieldToContactL(MVPbkStoreContact &, const MVPbkFieldType &, const TDesC8 &, const TDesC *, const MVPbkContactAttribute *, MVPbkContactFieldCopyObserver &) |
MVPbkContactOperationBase * | CommitContactL(MVPbkStoreContact *, MVPbkContactCopyObserver &) |
TAny * | ContactCopyPolicyExtension(TUid) |
MVPbkContactOperationBase * | CopyContactL(MVPbkStoreContact &, MVPbkContactStore &, MVPbkContactCopyObserver &) |
MVPbkContactOperationBase * | CopyTitleFieldsL(const MVPbkStoreContact &, MVPbkStoreContact &, MVPbkContactFieldsCopyObserver &) |
MVPbkContactOperationBase * | MergeAndSaveContactsL(RPointerArray< MVPbkStoreContact > &, MVPbkStoreContact &, MVPbkContactCopyObserver &) |
TBool
| SupportsContactMerge() |
Constructor & Destructor Documentation
~MVPbkContactCopyPolicy()
~MVPbkContactCopyPolicy | ( | ) | [inline, virtual] |
Member Functions Documentation
AddFieldToContactL(MVPbkStoreContact &, const MVPbkFieldType &, const TDateTime &, const TDesC *, const MVPbkContactAttribute *, MVPbkContactFieldCopyObserver &)
Adds a new data time field to contact asynchronously.
AddFieldToContactL(MVPbkStoreContact &, const MVPbkFieldType &, const TDesC &, const TDesC *, const MVPbkContactAttribute *, MVPbkContactFieldCopyObserver &)
Adds a new text field to contact asynchronously.
AddFieldToContactL(MVPbkStoreContact &, const MVPbkFieldType &, const TDesC8 &, const TDesC *, const MVPbkContactAttribute *, MVPbkContactFieldCopyObserver &)
Adds a new binary field to contact asynchronously.
CommitContactL(MVPbkStoreContact *, MVPbkContactCopyObserver &)
Handles the committing of the contact. This is called after adding fields to contact because it's possible that the policy needs still e.g split the contact.
Parameters
MVPbkStoreContact * aContact | the contact to commit, NOTE: ownership is taken. Client must keep the ownership until this function returns. |
MVPbkContactCopyObserver & aCopyObserver | the observer that is called when the contact has been copied |
ContactCopyPolicyExtension(TUid)
TAny * | ContactCopyPolicyExtension | ( | TUid | | ) | [inline, virtual] |
Returns an extension point for this interface or NULL.
CopyContactL(MVPbkStoreContact &, MVPbkContactStore &, MVPbkContactCopyObserver &)
Copies the contact to the target store. All possible data is copied. The difference to CommitContactL is that if you already have a contact that contains data then you don't need call AddFieldToContactL operations but this can be called instead.
CopyTitleFieldsL(const MVPbkStoreContact &, MVPbkStoreContact &, MVPbkContactFieldsCopyObserver &)
Copies title fields from source contact to the target contact. Policy defines the title field types. The field is not copied if the contact already contains the same type of title field.
MergeAndSaveContactsL(RPointerArray< MVPbkStoreContact > &, MVPbkStoreContact &, MVPbkContactCopyObserver &)
Merges source contacts to target contact if possible. Handles saving the existing contact and possible new contacts. The logic is defined by the policy. Client gets the links of the contacts that were actually saved.
SupportsContactMerge()
SupportsContactMerge()
TBool
| SupportsContactMerge | ( | ) | const [pure virtual] |
Returns ETrue if contact data merge is supported. This will disable duplicate contact saving in clients because duplicates need to be merged with new contacts.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.