MVPbkContactObserver Class Reference

class MVPbkContactObserver

Virtual Phonebook Contact operation observer interface. This interface is used to signal the contact operation client of events.

Nested Classes and Structures

Constructor & Destructor Documentation

~MVPbkContactObserver()

~MVPbkContactObserver()[protected, inline, virtual]

Destructor.

Member Functions Documentation

ContactObserverExtension(TUid)

TAny *ContactObserverExtension(TUid)[inline, virtual]

Returns an extension point for this interface or NULL.

Parameters

TUid

ContactOperationCompleted(TContactOpResult)

voidContactOperationCompleted(TContactOpResultaResult)[pure virtual]

Called when a contact operation has succesfully completed.

NOTE: If you use Cleanupstack for MVPbkStoreContact use MVPbkStoreContact::PushL or CleanupDeletePushL from e32base.h. (Do Not Use CleanupStack::PushL(TAny*) because then the virtual destructor of the M-class won't be called when the object is deleted).

Parameters

TContactOpResult aResultThe result of the operation. The client takes the ownership of the iStoreContact immediately if set in aResult.

ContactOperationFailed(TContactOp, TInt, TBool)

voidContactOperationFailed(TContactOpaOpCode,
TIntaErrorCode,
TBoolaErrorNotified
)[pure virtual]

Called when a contact operation has failed.

Parameters

TContactOp aOpCodeThe operation that failed.
TInt aErrorCodeSystem error code of the failure. KErrAccessDenied when EContactCommit means that contact hasn't been locked.
TBool aErrorNotifiedETrue if the implementation has already notified user about the error, EFalse otherwise.

Member Enumerations Documentation

Enum TContactOp

Operation codes for Contact operation observers.

Enumerators

EContactOperationUnknown = 0
EContactRead
EContactReadAndLock
EContactDelete
EContactLock
EContactCommit
EContactSetOwn