S60 3rd Edition API Reference: CActiveApDb Class Reference
CActiveApDb Class Reference API published in: S60 1st Ed
Link against: apengine.lib
Capability Information Required Capabilities ReadDeviceData ReadUserData WriteDeviceData WriteUserData
Exceptions none
#include <activeapdb.h >
Detailed Description
This class manages and guards database integrity by handling all events that are related to the database.
These events may originate from the system (Shutdown, Backup/Restore) and from the database itself. The events are transformed into a simple protocol, defined by MActiveApDbObserver . Expects an active scheduler to be installed and running.
Constructor & Destructor Documentation
virtual IMPORT_C CActiveApDb::~CActiveApDb ( ) [virtual]
Member Function Documentation
Adds an observer to the list of observers to be notified about the DB events.
Also automatically starts observation and notification. The order of notification will be exactly the order of registration.
Parameters:
anObserver Observer to be notified about database-related events.
void CActiveApDb::ConstructL ( ) [protected]
Second phase constructor.
Leaves on failure.
Parameters:
aType The desired type of the CCommsDatabase object. events.
IMPORT_C CCommsDatabase* CActiveApDb::Database ( )
Returns the CCommsDatabase.
Required because we can not derive from CCommsDatabase...
static IMPORT_C CActiveApDb * CActiveApDb::NewL ( TCommDbDatabaseType aType = EDatabaseTypeIAP ) [static]
Two-phased constructor.
Leaves on failure.
Parameters:
aType The desired type of the CCommsDatabase object. Defaults to EDatabaseTypeIAP.
Returns: The constructed CActiveApDb object.
Removes an observer.
If not added, silently ignores.
Parameters:
Friends And Related Function Documentation
friend class CActiveApDbNotifier [friend]
The documentation for this class was generated from the following file: