class MVPbkContactObserver |
Virtual Phonebook Contact operation observer interface. This interface is used to signal the contact operation client of events.
Public Member Functions | |
---|---|
TAny * | ContactObserverExtension ( TUid ) |
void | ContactOperationCompleted ( TContactOpResult ) |
void | ContactOperationFailed ( TContactOp , TInt , TBool ) |
Protected Member Functions | |
---|---|
~MVPbkContactObserver () |
Public Member Enumerations | |
---|---|
enum |
TContactOp
{
EContactOperationUnknown = 0, EContactRead , EContactReadAndLock , EContactDelete , EContactLock , EContactCommit , EContactSetOwn } |
TAny * | ContactObserverExtension | ( | TUid | ) | [inline, virtual] |
Returns an extension point for this interface or NULL.
TUid |
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).
TContactOpResult aResult | The result of the operation. The client takes the ownership of the iStoreContact immediately if set in aResult. |
void | ContactOperationFailed | ( | TContactOp | aOpCode, |
TInt | aErrorCode, | |||
TBool | aErrorNotified | |||
) | [pure virtual] |
Called when a contact operation has failed.
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. |
Operation codes for Contact operation observers.
EContactOperationUnknown = 0 | |
EContactRead | |
EContactReadAndLock | |
EContactDelete | |
EContactLock | |
EContactCommit | |
EContactSetOwn |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.