CCFActionPlugInThread Class Reference

class CCFActionPlugInThread : public CBase

Inherits from

Public Member Functions
~CCFActionPlugInThread ()
void AsyncExecutionCompleted ()
void CancelActionsWait ()
void CancelReleasePlugin ()
void ConstructPluginL ()
void DeletePlugin ()
void GetActionsL ( CDesCArray &)
TUid ImplementationUid ()
TBool Missing ()
void NewActionsAddedToQueueL ()
CCFActionPlugInThread * NewL ( CCFActivatorEngineActionPluginManager &, CImplementationInformation &)
CCFActionPlugInThread * NewLC ( CCFActivatorEngineActionPluginManager &, CImplementationInformation &)
CCFActionPlugInThread * NewLC ( CCFActivatorEngineActionPluginManager &, TUid , TInt )
void ReleasePlugin ( TRequestStatus &)
void ReloadPlugin ()
void RunPendingActions ()
const TSecurityPolicy & SecurityPolicy (const TDesC &)
void SetMissing ( TBool )
void TriggerL ( CCFActionIndication *)
TInt Version ()
void WaitActions ( TRequestStatus &)
Private Member Functions
CCFActionPlugInThread ( CCFActivatorEngineActionPluginManager &, CImplementationInformation &)
CCFActionPlugInThread ( CCFActivatorEngineActionPluginManager &, TUid , TInt )
TCFActionOwner ActionOwner ()
TInt AddToQueue ( CCFActionIndication *)
void ConstructL ()
void ExecuteActionsInQueue ()
CCFActionIndication * GetNextActionToExecute ()
void ThreadConstructL ()
void ThreadDestruct ()
TInt ThreadFunction ( TAny *)
void ThreadFunctionL ()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
CCFActionExecutionHandler * iActionExecutionHandler
CCFActivatorEngineActionPluginManager * iActionPluginManager
RPointerArray < CCFActionIndication > iActionQueue
RCriticalSection iActionQueueCriticalSection
TRequestStatus * iAsyncCleanupRequest
RSemaphore iConstructDestructSemaphore
CCFActionIndication * iCurrentAction
TBool iExit
TInt iImplVersion
RThread iMainThread
TThreadId iMainThreadId
TBool iMissing
CCFActionPlugIn * iPlugIn
TUid iPlugInUid
RThread iPluginThread
TRequestStatus * iRunPendingActionsRequestStatus
CActiveScheduler * iScheduler
CCFActivatorTimedSchedulerWait * iWait
TRequestStatus * iWaitActionsRequestStatus

Constructor & Destructor Documentation

CCFActionPlugInThread(CCFActivatorEngineActionPluginManager &, CImplementationInformation &)

CCFActionPlugInThread ( CCFActivatorEngineActionPluginManager & aActionPluginManager,
CImplementationInformation & aImplInfo
) [private]

Parameters

CCFActivatorEngineActionPluginManager & aActionPluginManager
CImplementationInformation & aImplInfo

CCFActionPlugInThread(CCFActivatorEngineActionPluginManager &, TUid, TInt)

CCFActionPlugInThread ( CCFActivatorEngineActionPluginManager & aActionPluginManager,
TUid aUid,
TInt aImplVersion
) [private]

Parameters

CCFActivatorEngineActionPluginManager & aActionPluginManager
TUid aUid
TInt aImplVersion

~CCFActionPlugInThread()

~CCFActionPlugInThread ( )

Member Functions Documentation

ActionOwner()

TCFActionOwner ActionOwner ( ) const [private]

AddToQueue(CCFActionIndication *)

TInt AddToQueue ( CCFActionIndication * aAction ) [private]

Parameters

CCFActionIndication * aAction

AsyncExecutionCompleted()

void AsyncExecutionCompleted ( )

CancelActionsWait()

void CancelActionsWait ( )

CancelReleasePlugin()

void CancelReleasePlugin ( )

Cancels release plug-in request.

ConstructL()

void ConstructL ( ) [private]

ConstructPluginL()

void ConstructPluginL ( )

DeletePlugin()

void DeletePlugin ( )

ExecuteActionsInQueue()

void ExecuteActionsInQueue ( ) [private]

GetActionsL(CDesCArray &)

void GetActionsL ( CDesCArray & aActionList ) const

Get actions from all plug-ins.

Parameters

CDesCArray & aActionList List where actions are stored.

GetNextActionToExecute()

CCFActionIndication * GetNextActionToExecute ( ) [private]

ImplementationUid()

TUid ImplementationUid ( ) const

Return implementation uid of the plug-in

Missing()

TBool Missing ( ) const

Check if plug-in is missing.

NewActionsAddedToQueueL()

void NewActionsAddedToQueueL ( )

NewL(CCFActivatorEngineActionPluginManager &, CImplementationInformation &)

CCFActionPlugInThread * NewL ( CCFActivatorEngineActionPluginManager & aActionPluginManager,
CImplementationInformation & aImplInfo
) [static]

Parameters

CCFActivatorEngineActionPluginManager & aActionPluginManager
CImplementationInformation & aImplInfo

NewLC(CCFActivatorEngineActionPluginManager &, CImplementationInformation &)

CCFActionPlugInThread * NewLC ( CCFActivatorEngineActionPluginManager & aActionPluginManager,
CImplementationInformation & aImplInfo
) [static]

Parameters

CCFActivatorEngineActionPluginManager & aActionPluginManager
CImplementationInformation & aImplInfo

NewLC(CCFActivatorEngineActionPluginManager &, TUid, TInt)

CCFActionPlugInThread * NewLC ( CCFActivatorEngineActionPluginManager & aActionPluginManager,
TUid aUid,
TInt aImplVersion
) [static]

Parameters

CCFActivatorEngineActionPluginManager & aActionPluginManager
TUid aUid
TInt aImplVersion

ReleasePlugin(TRequestStatus &)

void ReleasePlugin ( TRequestStatus & aStatus )

Releases action plug-in implementation.

Parameters

TRequestStatus & aStatus Request status which is completed when the plug-in has been deleted.

ReloadPlugin()

void ReloadPlugin ( )

Reloads plug-in implementation.

RunPendingActions()

void RunPendingActions ( )

SecurityPolicy(const TDesC &)

const TSecurityPolicy & SecurityPolicy ( const TDesC & aActionId ) const

Get action security policy.

Parameters

const TDesC & aActionId Action which security is needed.

SetMissing(TBool)

void SetMissing ( TBool aMissing )

Set plug-in as missing state (installed/uninstalled).

Parameters

TBool aMissing ETrue if missing.

ThreadConstructL()

void ThreadConstructL ( ) [private]

ThreadDestruct()

void ThreadDestruct ( ) [private]

ThreadFunction(TAny *)

TInt ThreadFunction ( TAny * aSelf ) [private, static]

Parameters

TAny * aSelf

ThreadFunctionL()

void ThreadFunctionL ( ) [private]

TriggerL(CCFActionIndication *)

void TriggerL ( CCFActionIndication * aActionIndication )

Parameters

CCFActionIndication * aActionIndication

Version()

TInt Version ( ) const

Return the version of the implementation.

WaitActions(TRequestStatus &)

void WaitActions ( TRequestStatus & aStatus )

Parameters

TRequestStatus & aStatus

Member Data Documentation

CCFActionExecutionHandler * iActionExecutionHandler

CCFActionExecutionHandler * iActionExecutionHandler [private]

CCFActivatorEngineActionPluginManager * iActionPluginManager

CCFActivatorEngineActionPluginManager * iActionPluginManager [private]

RPointerArray< CCFActionIndication > iActionQueue

RPointerArray < CCFActionIndication > iActionQueue [private]

RCriticalSection iActionQueueCriticalSection

RCriticalSection iActionQueueCriticalSection [private]

TRequestStatus * iAsyncCleanupRequest

TRequestStatus * iAsyncCleanupRequest [private]

RSemaphore iConstructDestructSemaphore

RSemaphore iConstructDestructSemaphore [private]

CCFActionIndication * iCurrentAction

CCFActionIndication * iCurrentAction [private]

TBool iExit

TBool iExit [private]

TInt iImplVersion

TInt iImplVersion [private]

RThread iMainThread

RThread iMainThread [private]

TThreadId iMainThreadId

TThreadId iMainThreadId [private]

TBool iMissing

TBool iMissing [private]

CCFActionPlugIn * iPlugIn

CCFActionPlugIn * iPlugIn [private]

TUid iPlugInUid

TUid iPlugInUid [private]

RThread iPluginThread

RThread iPluginThread [private]

TRequestStatus * iRunPendingActionsRequestStatus

TRequestStatus * iRunPendingActionsRequestStatus [private]

CActiveScheduler * iScheduler

CActiveScheduler * iScheduler [private]

CCFActivatorTimedSchedulerWait * iWait

CCFActivatorTimedSchedulerWait * iWait [private]

TRequestStatus * iWaitActionsRequestStatus

TRequestStatus * iWaitActionsRequestStatus [private]