CCFContextSourcePlugIn Class Reference
class CCFContextSourcePlugIn : public CBase
|
Context source plug-in API.
All context source plug-ins must define this interface to be able to publish contexts and subscribe contexts. It must be noticed that time consuming actions must not be done in construction phase. Only context definitions are allowed. All other initialization is done when InitializeL is called by Context Framework. Context source plug-in will be initialized in following order:
-
HandleSettingL
-
DefineContextsL
-
InitializeL
CFContextSourceManager.lib
-
Since
-
S60 5.0
Constructor & Destructor Documentation
CCFContextSourcePlugIn(TContextSourceInitParams *)
~CCFContextSourcePlugIn()
IMPORT_C
|
~CCFContextSourcePlugIn
|
(
|
)
|
[virtual]
|
Member Functions Documentation
DefineContextsL()
void
|
DefineContextsL
|
(
|
)
|
[pure virtual]
|
All contexts by this source must be defined in this stage. Contexts can be defined though MCF interface. Definition must include:
Extension(const TUid &)
IMPORT_C
TAny
*
|
Extension
|
(
|
const
TUid
&
|
aExtensionUid
|
)
|
const [virtual]
|
Returns an extension interface. The extension interface is mapped with the extension UID.
The default implemementation returns NULL.
Parameters
const
TUid
& aExtensionUid
|
|
HandleSettingL(CCFContextSourceSettingArray *)
Handles settings. All the setting blocks defined with the plug-in name in the XML settings file will be given in an array. Ownership of aSettingList is transferred to the plug-in.
InitializeL()
void
|
InitializeL
|
(
|
)
|
[pure virtual]
|
Plug-in is allowed to initialize. E.g. start listening some events or triggers.
NewL(const TUid &, TContextSourceInitParams *)
NewLC(const TUid &, TContextSourceInitParams *)
Member Data Documentation
MCFContextInterface & iCF
TUid
iDtorKey
TUid
|
iDtorKey
|
[protected]
|
Own: Descructor key for Ecom
TAny * iReserved1
TAny
*
|
iReserved1
|
[protected]
|
TAny * iReserved2
TAny
*
|
iReserved2
|
[protected]
|
TAny * iReserved3
TAny
*
|
iReserved3
|
[protected]
|
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.