CCFActionPlugIn Class Reference
class CCFActionPlugIn : public CBase
|
Base class for all Action plugins.
For every action plug-in implementation there will be also an action execution thread. Action execution thread uses shared heap with Context Framework Server main thread. Cleanup stack and active scheduler will be created for Action execution thread.
Actions are exeucted in three phase:
NOTE: It is crucial to only return ENone from ExecuteL if the action is really completed. Any active objects, timers or asynchronous requests won't be run since the action execution thread starts to wait in semaphore for a new action signalation when ExecuteL returns with ENone. In other cases action execution thread starts to wait for action to be completed. When the action is completed call AsyncExecutionCompleted to stop the wait.
CFActivatorEngine.lib
-
Since
-
S60 5.0
Constructor & Destructor Documentation
CCFActionPlugIn()
IMPORT_C
|
CCFActionPlugIn
|
(
|
)
|
[protected]
|
~CCFActionPlugIn()
IMPORT_C
|
~CCFActionPlugIn
|
(
|
)
|
|
Member Functions Documentation
AppendQueue(CCFActionIndication *)
AsyncExecutionCompleted()
IMPORT_C void
|
AsyncExecutionCompleted
|
(
|
)
|
|
Notifies the base implementation that async request has been completed. All errors will be ignored. If the operation executed is not async then this method is not needed to be called. Note:
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
ExecuteAction()
void
|
ExecuteAction
|
(
|
)
|
[private]
|
ExecuteL(CCFActionIndication *)
Executes action. If ExecuteL leaves, FinishedExecution won't be called. Note:
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
|
|
FinishedExecution()
IMPORT_C void
|
FinishedExecution
|
(
|
)
|
[virtual]
|
Finishes execution. Default implementation is empty.
GetActionsL(CDesCArray &)
void
|
GetActionsL
|
(
|
CDesCArray
&
|
aActionList
|
)
|
const [pure virtual]
|
Get actions the plugin can perform. Activator Engine calls this when it wants to know which actions the module supports.
Parameters
CDesCArray
& aActionList
|
Supported actions by the plug-in.
|
InitializeL()
void
|
InitializeL
|
(
|
)
|
[pure virtual]
|
Plug-in is allowed to reserve memory. It is nessecary that no memory is allocated before InitializeL is called.
NewL(const TUid &)
Symbian two phased contrstuctors.
Parameters
const
TUid
& aImplementationUid
|
Implementation to create.
|
NewLC(const TUid &)
Parameters
const
TUid
& aImplementationUid
|
|
PrepareExecutionL()
IMPORT_C void
|
PrepareExecutionL
|
(
|
)
|
[virtual]
|
Prepares execution. If PrepareExecutionL leaves, ExecuteL and FinishedExecution won't be called. Default implementation is empty.
SecurityPolicy()
Returns the security policy assigned with the plugin.
Member Enumerations Documentation
Enum TExecutionTime
Enumerators
ENone
|
|
ESmall
|
|
EMedium
|
|
ELong
|
|
Member Data Documentation
CCFActionPlugInImpl * iImpl
TAny * iReserved1
TAny
*
|
iReserved1
|
[private]
|
TAny * iReserved2
TAny
*
|
iReserved2
|
[private]
|
TAny * iReserved3
TAny
*
|
iReserved3
|
[private]
|
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.