CActiveFavouritesDbNotifier Class Reference

API published in: S60 1st Ed

Link against: favouritesengine.lib

Capability Information

Required Capabilities

ReadUserData WriteUserData


#include <activefavouritesdbnotifier.h>

Detailed Description

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.


Public Member Functions

IMPORT_C  CActiveFavouritesDbNotifier (RFavouritesDb &aDb, MFavouritesDbObserver &aObserver)
  Constructor.
virtual IMPORT_C  ~CActiveFavouritesDbNotifier ()
  Destructor.
IMPORT_C TInt  Start ()
  Start the notifier.

Protected Member Functions

IMPORT_C void  RunL ()
  Invoked when the outstanding request completes.
IMPORT_C void  DoCancel ()
  Cancel any outstading request.

Constructor & Destructor Documentation

IMPORT_C CActiveFavouritesDbNotifier::CActiveFavouritesDbNotifier RFavouritesDb aDb,
MFavouritesDbObserver aObserver
 

Constructor.

Parameters:
aDb  The favourites database to watch for.
aObserver  The Observer to be notified about database events.
virtual IMPORT_C CActiveFavouritesDbNotifier::~CActiveFavouritesDbNotifier  )  [virtual]
 

Destructor.


Member Function Documentation

IMPORT_C void CActiveFavouritesDbNotifier::DoCancel  )  [protected]
 

Cancel any outstading request.

It's implementation of the Cancel protocol;

Returns:
void
IMPORT_C void CActiveFavouritesDbNotifier::RunL  )  [protected]
 

Invoked when the outstanding request completes.

Returns:
void
IMPORT_C TInt CActiveFavouritesDbNotifier::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).

Returns:
Error code.

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top