CVPbkContactCopier Class Reference

class CVPbkContactCopier : public CBase

Virtual Phonebook contact copier. Copies source contacts to the target store according to copying rules.

VPbkEng.lib

Inherits from

Constructor & Destructor Documentation

CVPbkContactCopier(CVPbkContactManager &)

CVPbkContactCopier(CVPbkContactManager &aContactManager)[private]

Parameters

CVPbkContactManager & aContactManager

~CVPbkContactCopier()

~CVPbkContactCopier()

Destructor.

Member Functions Documentation

CopyContactsL(TUint32, const MVPbkContactLinkArray &, MVPbkContactStore *, CVPbkContactLinkArray &, MVPbkBatchOperationObserver &)

IMPORT_C MVPbkContactOperationBase *CopyContactsL(TUint32aContactCopyFlags,
const MVPbkContactLinkArray &aSourceContactLinks,
MVPbkContactStore *aTargetStore,
CVPbkContactLinkArray &aCopiedContactLinks,
MVPbkBatchOperationObserver &aObserver
)

Copies a set of contacts to the target store.

Parameters

TUint32 aContactCopyFlagsA set of TVPbkContactCopyFlags
const MVPbkContactLinkArray & aSourceContactLinksSource contact links
MVPbkContactStore * aTargetStoreTarget of the copy operation. If NULL this behaves like duplicate.
CVPbkContactLinkArray & aCopiedContactLinksThe results of the copy. Copied contacts are added to this array.
MVPbkBatchOperationObserver & aObserverAn observer for asynchronous operation

NewL(CVPbkContactManager &)

IMPORT_C CVPbkContactCopier *NewL(CVPbkContactManager &aContactManager)[static]

Creates a new copier instance. Remember to open the stores first before starting any copy operation.

Parameters

CVPbkContactManager & aContactManagerThe contact manager for getting stores.

Member Enumerations Documentation

Enum TVPbkContactCopyFlags

A set of flags for copying. Fastest copy is EVPbkSimpleContactCopy.

Enumerators

EVPbkSimpleContactCopy = 0

Copies a field if the target store supports the field type. Does not perform additional checks.

EVPbkUseStoreSpecificCopyPolicy = 0x01

Uses a store specific copy policy if found for the target store. Can do e.g field type conversion between source and target field types. Falls back to simple copy if the copy policy was not found for the store.

EVPbkUsePlatformSpecificDuplicatePolicy = 0x02

Finds duplicates before saving a contact if there is a copy policy for the store that can handle the possible merge of new and existing contact data. Falls back to simple copy if the copy policy was not found for the store.

Member Data Documentation

CVPbkContactManager & iContactManager

CVPbkContactManager &iContactManager[private]