MVPbkContactOperationFactory Class Reference

class MVPbkContactOperationFactory

A factory interface for asynchronous contact operations. This interface is used to create contact operations.

Member Functions Documentation

ContactOperationFactoryExtension(TUid)

TAny *ContactOperationFactoryExtension(TUid)[inline, virtual]

Returns an extension point for this interface or NULL.

Parameters

TUid

CreateCommitContactsOperationL(const TArray< MVPbkStoreContact * > &, MVPbkBatchOperationObserver &)

MVPbkContactOperation *CreateCommitContactsOperationL(const TArray< MVPbkStoreContact * > &aContacts,
MVPbkBatchOperationObserver &aObserver
)[pure virtual]

Creates an operation for committing multiple contacts.

Parameters

const TArray< MVPbkStoreContact * > & aContactsAn array of contact links that specify the contacts
MVPbkBatchOperationObserver & aObserverAn observer for the operation.

CreateCompressStoresOperationL(MVPbkBatchOperationObserver &)

MVPbkContactOperation *CreateCompressStoresOperationL(MVPbkBatchOperationObserver &aObserver)[pure virtual]

Creates an operation for compressing the store.

Parameters

MVPbkBatchOperationObserver & aObserverAn observer for the compress operation.

CreateContactRetrieverL(const MVPbkContactLink &, MVPbkSingleContactOperationObserver &)

MVPbkContactOperation *CreateContactRetrieverL(const MVPbkContactLink &aLink,
MVPbkSingleContactOperationObserver &aObserver
)[pure virtual]

Creates an operation for contact retrieval.

Parameters

const MVPbkContactLink & aLinkA link to the contact
MVPbkSingleContactOperationObserver & aObserverAn observer for the operation.

CreateDeleteContactsOperationL(const MVPbkContactLinkArray &, MVPbkBatchOperationObserver &)

MVPbkContactOperation *CreateDeleteContactsOperationL(const MVPbkContactLinkArray &aContactLinks,
MVPbkBatchOperationObserver &aObserver
)[pure virtual]

Creates an operation for deleting multiple contacts.

Parameters

const MVPbkContactLinkArray & aContactLinksAn array of contact links that specify the contacts.
MVPbkBatchOperationObserver & aObserverAn observer for the operation.

CreateFindOperationL(const TDesC &, const MVPbkFieldTypeList &, MVPbkContactFindObserver &)

MVPbkContactOperation *CreateFindOperationL(const TDesC &aSearchString,
const MVPbkFieldTypeList &aFieldTypes,
MVPbkContactFindObserver &aObserver
)[pure virtual]

Creates an operation for asynchronous contact finding.

Parameters

const TDesC & aSearchStringString to search for.
const MVPbkFieldTypeList & aFieldTypesList of field types that the search will include.
MVPbkContactFindObserver & aObserverObserver for the find process.

CreateFindOperationL(const MDesC16Array &, const MVPbkFieldTypeList &, MVPbkContactFindFromStoresObserver &, const TCallBack &)

MVPbkContactOperation *CreateFindOperationL(const MDesC16Array &aSearchStrings,
const MVPbkFieldTypeList &aFieldTypes,
MVPbkContactFindFromStoresObserver &aObserver,
const TCallBack &aWordParserCallBack
)[pure virtual]

Creates an operation for asynchronous contact finding. Finds a string containing text that is stored in one or more fields. Client can give multiple find words. All the words must match to separated data. E.g if there are two find words: "Jo" and "Jo" then field data "John Johnson" matches but "John Doe" doesn't if the word parser uses white space as a word separator.

NOTE: The accuracy of the results depends on the ability of the store implementation to implement the find. The performance can vary too depending on the store.

Parameters

const MDesC16Array & aSearchStringsWords that are compared to field data.
const MVPbkFieldTypeList & aFieldTypesTypes of the fields that are used.
MVPbkContactFindFromStoresObserver & aObserverAn observer for asynchronous operation.
const TCallBack & aWordParserCallBacka client implementation of word parser function that separates the field data into words. Parameter to function is TVPbkWordParserParam.

CreateMatchPhoneNumberOperationL(const TDesC &, TInt, MVPbkContactFindObserver &)

MVPbkContactOperation *CreateMatchPhoneNumberOperationL(const TDesC &aPhoneNumber,
TIntaMaxMatchDigits,
MVPbkContactFindObserver &aObserver
)[pure virtual]

Creates an operation for asynchronous phone number matching.

Parameters

const TDesC & aPhoneNumberA phone number to search for.
TInt aMaxMatchDigitsMaximum number of digits to match from the end of the number.
MVPbkContactFindObserver & aObserverObserver for the find process.