#include <app/CVPbkContactCopier.h>
| class CVPbkContactCopier : public CBase |
| Public Member Enumerations | |
|---|---|
| enum | TVPbkContactCopyFlags { EVPbkSimpleContactCopy, EVPbkUseStoreSpecificCopyPolicy, EVPbkUsePlatformSpecificDuplicatePolicy } |
| Public Member Functions | |
|---|---|
| ~CVPbkContactCopier() | |
| IMPORT_C MVPbkContactOperationBase * | CopyContactsL(TUint32, const MVPbkContactLinkArray &, MVPbkContactStore *, CVPbkContactLinkArray &, MVPbkBatchOperationObserver &) |
| IMPORT_C CVPbkContactCopier * | NewL(CVPbkContactManager &) |
Virtual Phonebook contact copier. Copies source contacts to the target store according to copying rules.
A set of flags for copying. Fastest copy is EVPbkSimpleContactCopy.
| IMPORT_C MVPbkContactOperationBase * | CopyContactsL | ( | TUint32 | aContactCopyFlags, |
| const MVPbkContactLinkArray & | aSourceContactLinks, | |||
| MVPbkContactStore * | aTargetStore, | |||
| CVPbkContactLinkArray & | aCopiedContactLinks, | |||
| MVPbkBatchOperationObserver & | aObserver | |||
| ) | ||||
Copies a set of contacts to the target store.
| Parameter | Description |
|---|---|
| aContactCopyFlags | A set of TVPbkContactCopyFlags |
| aSourceContactLinks | Source contact links |
| aTargetStore | Target of the copy operation. If NULL this behaves like duplicate. |
| aCopiedContactLinks | The results of the copy. Copied contacts are added to this array. |
| aObserver | An observer for asynchronous operation |
Returns: A copy contact operation
| IMPORT_C CVPbkContactCopier * | NewL | ( | CVPbkContactManager & | aContactManager | ) | [static] |
Creates a new copier instance. Remember to open the stores first before starting any copy operation.
| Parameter | Description |
|---|---|
| aContactManager | The contact manager for getting stores. |
Returns: A new instance of this class