MVPbkSingleContactOperationObserver Class Reference

#include <app/MVPbkSingleContactOperationObserver.h>

Link against: locutils.lib

class MVPbkSingleContactOperationObserver

Detailed Description

An observer interface for asynchronous single contact operations.

The interface is used in asynchronous operations that are related to one contact.

Constructor & Destructor Documentation

~MVPbkSingleContactOperationObserver ( )

~MVPbkSingleContactOperationObserver()[protected, inline, virtual]

Member Function Documentation

SingleContactOperationObserverExtension ( TUid )

TAny *SingleContactOperationObserverExtension(TUid)[inline, virtual]

Returns an extension point for this interface or NULL.

Returns: An extension point for this interface or NULL.

VPbkSingleContactOperationComplete ( MVPbkContactOperationBase &, MVPbkStoreContact * )

voidVPbkSingleContactOperationComplete(MVPbkContactOperationBase &aOperation,
MVPbkStoreContact *aContact
)[pure virtual]

Called when the operation is completed.

A client has the operation as a member and it can delete the operation instance in this function call. If the implementation of the store calls the function from the operation instance it must not handle any member data after calling it.

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).

ParameterDescription
aOperationThe completed operation.
aContactThe contact returned by the operation. A client must take the ownership immediately.

VPbkSingleContactOperationFailed ( MVPbkContactOperationBase &, TInt )

voidVPbkSingleContactOperationFailed(MVPbkContactOperationBase &aOperation,
TIntaError
)[pure virtual]

Called if the operation fails.

A client has the operation as a member and it can delete the operation instance in this function call. If the implementation of the store calls the function from the operation instance it must not handle any member data after calling it.

ParameterDescription
aOperationThe failed operation.
aErrorAn error code of the failure.