CNssVASDBEventMonitor Class Reference

class CNssVASDBEventMonitor : public CActive
CNssVASDBEventMonitor is an active object responsible for observing VAS database changes and notifying all registerted observers of the change. NssVASApi.lib
Since
2.8

Inherits from

Constructor & Destructor Documentation

CNssVASDBEventMonitor()

CNssVASDBEventMonitor ( ) [private]

C++ constructor.

~CNssVASDBEventMonitor()

~CNssVASDBEventMonitor ( ) [virtual]

Destructor.

Member Functions Documentation

AddObserverL(MNssVASDatabaseObserver *)

void AddObserverL ( MNssVASDatabaseObserver * aObserver )
Method that adds an observer to the observer list
Since
2.0

Parameters

MNssVASDatabaseObserver * aObserver to be added

ConstructL()

void ConstructL ( ) [private]

EPOC constructor

DoCancel()

void DoCancel ( ) [virtual]
From CActive , cancel outstanding requests
Since
2.0

HandleDatabaseEventL(CNssVASDBEvent::TVASDBEventType, CNssTag *)

void HandleDatabaseEventL ( CNssVASDBEvent::TVASDBEventType aEvent,
CNssTag * aTag
)
handling of addional events ( tag added, tag deleted, tag changed) These events can be reported only when the events occur on the same thread as that of the observer (client monitoring the event).
Since
2.0

Parameters

CNssVASDBEvent::TVASDBEventType aEvent - VAS DB event type
CNssTag * aTag - tag on which the event occured

HandleDatabaseEventL(RDbNotifier::TEvent)

void HandleDatabaseEventL ( RDbNotifier::TEvent aEvent ) [private]
Called by RunL() to create an event object and call HandleDatabaseEvent() for all observers Handles Standard Symbian DBMS events
Since
2.0

Parameters

RDbNotifier::TEvent aEvent - Symbian DBMS event

NewL()

CNssVASDBEventMonitor * NewL ( ) [static]

Two-phased constructor.

RemoveObserver(MNssVASDatabaseObserver *)

TInt RemoveObserver ( MNssVASDatabaseObserver * aObserver )
Method that removes an observer from the observer list.
Since
2.0

Parameters

MNssVASDatabaseObserver * aObserver to be removed

RunL()

void RunL ( ) [virtual]
From CActive , called by RunL of RDBNotifier
Since
2.0

StartMonitoring()

void StartMonitoring ( )
Request to start monitoring the VAS DB
Since
2.0

Member Data Documentation

RDbNamedDatabase iDatabase

RDbNamedDatabase iDatabase [private]

RDbs iDbSession

RDbs iDbSession [private]

RDbNotifier iNotifier

RDbNotifier iNotifier [private]

CArrayPtrFlat< MNssVASDatabaseObserver > * iObservers

CArrayPtrFlat < MNssVASDatabaseObserver > * iObservers [private]