CContextEngineAO Class Reference
class CContextEngineAO : public CActive |
This class implements an active object for collecting context metadata asyncronously from the context plugins.
Constructor & Destructor Documentation
CContextEngineAO(MContextInitializationObserver *, MContextSnapshotObserver *)
Default constructor, implicitly called by NewL().
~CContextEngineAO()
~CContextEngineAO | ( | ) | [virtual] |
Member Functions Documentation
BackupRestoreReady()
void | BackupRestoreReady | ( | ) | [private] |
Called when Backup&Restore has finished backup or restore.
BackupRestoreStart()
void | BackupRestoreStart | ( | ) | [private] |
Called when Backup&Restore is backing up or restoring.
ConstructL()
void | ConstructL | ( | ) | [private] |
2nd phase construction, called by NewL().
HandleBackupRestoreKeyAction(const TUint)
void | HandleBackupRestoreKeyAction | ( | const TUint | aKeyValue | ) | [private] |
Method HandleBackupRestoreKeyActionL. If user make full restore sets restore flag on.
InitializeL()
void | InitializeL | ( | ) | [private] |
Initialize this object. Thus load and initialize context plugins.
LoadPluginsL()
void | LoadPluginsL | ( | ) | [private] |
NewL(MContextInitializationObserver *, MContextSnapshotObserver *)
NotifyKeyL(const TInt, const TUid, const TUint)
void | NotifyKeyL | ( | const TInt | aKeyValue, |
| const TUid | aPropertyCategory, |
| const TUint | aKey |
| ) | |
Method NotifyKeyL from MKeyObserver get notifications when property key has changed.
Parameters
const TInt aKeyValue | |
const TUid aPropertyCategory | |
const TUint aKey | |
PluginCount()
Method used to clarify how many plug-ins are loaded.
PluginInitializationStatus(TInt)
void | PluginInitializationStatus | ( | TInt | aErrorCode | ) | |
Parameters
TInt aErrorCode | Error code for the first error occurred during initialization. |
PluginSnapshotStatus(CHarvesterData *)
void | PluginSnapshotStatus | ( | CHarvesterData * | aHD | ) | |
RunError(TInt)
From CActive. Handles a leave occurring in the request completion event handler RunL().
Parameters
TInt aError | An error code. |
RunL()
From CActive. Every call takes a context snapshot from one plug-in.
SetMdeSession(CMdESession *)
void | SetMdeSession | ( | CMdESession * | aSession | ) | |
Set a pointer to MdESession. The pointer is given forward to context plugins. Session must be set in order to successfully harvest context data.
Parameters
CMdESession * aSession | Session pointer to set. |
StartSnapshot(CContextSnapshotItem *)
Start taking a context snapshot (for multiple objects).
Parameters
CContextSnapshotItem * aItem | Observer to inform about snapshot completion and MdE objects the snapshot is taken to. |
Member Enumerations Documentation
Enum TContextEngineState
State for context engine (=this active object). Possible states: Ready for snapshot, initializing plugins or taking a snapshot.
Enumerators
EReady = 0 | |
EInitialization | |
ESnapshot | |
Member Data Documentation
MContextSnapshotObserver * iContextSnapshotObserver
This observer is used to inform Context Engine about finishing a context snapshot.
TInt
iInitializationError
TInt
| iInitializationError | [private] |
First error code encountered in initialization is cached here and returned later.
MContextInitializationObserver * iInitializationObserver
This observer is used to inform the client application about finishing plug-in initializations.
CContextSnapshotItem * iItem
Item to which we are currently doing a snapshot for.
TBool
iLastPlugin
TBool
| iLastPlugin | [private] |
iPropertyWatcher - used to check if only one plugin has not finished work.
CMdESession * iMdESession
CMdESession * | iMdESession | [private] |
iMdESession - MDE session.
TInt
iPluginSnapshotsLacking
TInt
| iPluginSnapshotsLacking | [private] |
Number of HDs currently not completed the snapshot yet.
RPointerArray< CContextPlugin > iPlugins
Plug-in array contains the plug-ins.
CPropertyWatcher * iPropertyWatcher
CPropertyWatcher * | iPropertyWatcher | [private] |
iPropertyWatcher - constains observed key's, owned by this class.
TInt
iSnapshotError
TInt
| iSnapshotError | [private] |
First error code encountered in snapshot is cached here and returned later.
TContextEngineState
iState
State of this active object.
TInt
iUninitializedPluginsCount
TInt
| iUninitializedPluginsCount | [private] |
Number of plug-ins currently not being initialized yet.
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.