class CCatalogsEngine : public CBase |
A factory interface class for creating an instance of Catalogs Engine API.
ncdengine_20019119.lib
Public Member Functions | |
---|---|
~CCatalogsEngine () | |
IMPORT_C void | EndMaintenanceL () |
IMPORT_C CCatalogsEngine * | NewL (MCatalogsEngineObserver &) |
IMPORT_C CCatalogsEngine * | NewLC (MCatalogsEngineObserver &) |
IMPORT_C void | StartMaintenanceL () |
IMPORT_C TState | StateL () |
Protected Member Functions | |
---|---|
CCatalogsEngine () |
Public Member Enumerations | |
---|---|
enum | TState { EStateNormal , EStatePrepareMaintenance , EStateMaintenance } |
Private Attributes | |
---|---|
TUid | iDtor_ID_Key |
IMPORT_C void | EndMaintenanceL | ( | ) | [static] |
Ends engine maintenance. Engine usage is allowed.
KCatalogsErrorMaintenanceNotStarted |
Client has not started maintenance. |
Leave |
System wide error code. |
IMPORT_C CCatalogsEngine * | NewL | ( | MCatalogsEngineObserver & | aObserver | ) | [static] |
Instantiates the catalogs engine.
MCatalogsEngineObserver & aObserver | Observer interface for the Catalogs Engine. |
IMPORT_C CCatalogsEngine * | NewLC | ( | MCatalogsEngineObserver & | aObserver | ) | [static] |
Instantiates the catalogs engine, leaves pointer on cleanup stack.
MCatalogsEngineObserver & aObserver | Observer interface for the Catalogs Engine. |
IMPORT_C void | StartMaintenanceL | ( | ) | [static] |
Starts engine maintenance. All clients with open references to the engine will receive a callback (MCatalogsEngineObserver::CatalogsEngineShutdown()) requesting release of engine objects. Also, further engine instantiations are refused for other clients until EndMaintenanceL() is called by the client that initiated the update in the first place.
The client calling StartMaintenanceL() may itself receive a callback for engine shutdown if it has open references to the Catalogs Engine. In this case, the client must obey the callback, like all other clients, and release the references.
Reaching maintenance state can be observed by polling engine state with State().
KCatalogsErrorMaintenanceNotAuthorized |
Client is not authorized to start maintenance on engine. |
Leave |
System wide error code. |
Catalogs Engine state.
EStateNormal |
Normal state, engine object instantiation allowed |
EStatePrepareMaintenance |
Going to maintenance mode. Engine instantiation not allowed, but instances still exist. |
EStateMaintenance |
Maintenance mode. No Catalogs Engine instances exist, new ones not allowed. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.