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_CCActiveFavouritesDbNotifier(RFavouritesDb &aDb,
MFavouritesDbObserver &aObserver
)
Constructor.
Since
0.9

Parameters

RFavouritesDb & aDbThe favourites database to watch for.
MFavouritesDbObserver & aObserverThe Observer to be notified about database events.

~CActiveFavouritesDbNotifier()

IMPORT_C~CActiveFavouritesDbNotifier()[virtual]

Destructor.

Member Functions Documentation

DoCancel()

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

NotifyChange()

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

RunL()

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

Start()

IMPORT_C TIntStart()
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]