MVPbkContactStoreObserver Class Reference

#include <app/MVPbkContactStoreObserver.h>

Link against: VPbkVCardEng.lib

class MVPbkContactStoreObserver
Public Member Functions
virtual TAny *ContactStoreObserverExtension(TUid)
pure virtual voidHandleStoreEventL(MVPbkContactStore &, TVPbkContactStoreEvent)
pure virtual voidStoreReady(MVPbkContactStore &)
pure virtual voidStoreUnavailable(MVPbkContactStore &, TInt)
Protected Member Functions
virtual ~MVPbkContactStoreObserver()

Detailed Description

An observer interface for contact store events

The client of the contact store must implement this interface. The contact store informs client about its state using this interface. The client is also able to get store events about changes in the store content.

Constructor & Destructor Documentation

~MVPbkContactStoreObserver ( )

~MVPbkContactStoreObserver()[protected, inline, virtual]

Member Function Documentation

ContactStoreObserverExtension ( TUid )

TAny *ContactStoreObserverExtension(TUid)[inline, virtual]

Returns an extension point for this interface or NULL.

Returns: an extension point for this interface or NULL.

HandleStoreEventL ( MVPbkContactStore &, TVPbkContactStoreEvent )

voidHandleStoreEventL(MVPbkContactStore &aContactStore,
)[pure virtual]

Called when changes occur in the contact store.

See also: TVPbkContactStoreEvent

aContactStoreA store whose event it is.
aStoreEventThe event that has occurred.

StoreReady ( MVPbkContactStore & )

voidStoreReady(MVPbkContactStore &aContactStore)[pure virtual]

Called when a contact store is ready to use.

aContactStoreThe store that is ready.

StoreUnavailable ( MVPbkContactStore &, TInt )

voidStoreUnavailable(MVPbkContactStore &aContactStore,
)[pure virtual]

Called when a contact store becomes unavailable.

Client may inspect the reason of the unavailability and decide whether or not it will keep the store opened (ie. listen to the store events).

aContactStoreThe store that became unavailable.
aReasonThe reason why the store is unavailable. This is one of the system wide error codes.