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

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

Parameters

MNssVASDatabaseObserver * aObserverto be added

ConstructL()

voidConstructL()[private]

EPOC constructor

DoCancel()

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

HandleDatabaseEventL(CNssVASDBEvent::TVASDBEventType, CNssTag *)

voidHandleDatabaseEventL(CNssVASDBEvent::TVASDBEventTypeaEvent,
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)

voidHandleDatabaseEventL(RDbNotifier::TEventaEvent)[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 * aObserverto be removed

RunL()

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

StartMonitoring()

voidStartMonitoring()
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]