CActiveFavouritesDbNotifier Class Reference

class CActiveFavouritesDbNotifier : public CActive

ActiveFavouritesDbNotifier is an Active object encapsulating a favourites database notifier. Once this notifier is Start() -ed, it keeps watching the database and notifies the observer, until the database is closed by all clients (i.e. released by DBMS), or it is DoCancel() -led.

Inherits from

Constructor & Destructor Documentation

CActiveFavouritesDbNotifier(RFavouritesDb &, MFavouritesDbObserver &)

IMPORT_C CActiveFavouritesDbNotifier ( RFavouritesDb & aDb,
MFavouritesDbObserver & aObserver
)
Constructor.
Since
0.9

Parameters

RFavouritesDb & aDb The favourites database to watch for.
MFavouritesDbObserver & aObserver The Observer to be notified about database events.

~CActiveFavouritesDbNotifier()

IMPORT_C ~CActiveFavouritesDbNotifier ( ) [virtual]

Destructor.

Member Functions Documentation

DoCancel()

IMPORT_C void DoCancel ( ) [protected, virtual]
Cancel any outstading request. It's implementation of the Cancel protocol;
Since
0.9

NotifyChange()

void NotifyChange ( ) [private]
Request database change notification from the Favourites Engine.
Since
0.9

RunL()

IMPORT_C void RunL ( ) [protected, virtual]
Invoked when the outstanding request completes.
Since
0.9

Start()

IMPORT_C TInt Start ( )
Start the notifier. The notification request is automatically renewed until it is cancelled, or the database is closed by all clients (i.e. released by DBMS).
Since
0.9

Member Data Documentation

RFavouritesDb & iDb

RFavouritesDb & iDb [private]

RFavouritesDbNotifier iNotifier

RFavouritesDbNotifier iNotifier [private]

MFavouritesDbObserver * iObserver

MFavouritesDbObserver * iObserver [private]