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)

void ContactOperationCompleted ( TContactOpResult aResult ) [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 aResult The result of the operation. The client takes the ownership of the iStoreContact immediately if set in aResult.

ContactOperationFailed(TContactOp, TInt, TBool)

void ContactOperationFailed ( TContactOp aOpCode,
TInt aErrorCode,
TBool aErrorNotified
) [pure virtual]

Called when a contact operation has failed.

Parameters

TContactOp aOpCode The operation that failed.
TInt aErrorCode System error code of the failure. KErrAccessDenied when EContactCommit means that contact hasn't been locked.
TBool aErrorNotified ETrue 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