Location:
e32base.h
Link against: euser.lib
class CAsyncCallBack : public CAsyncOneShot;
An active object that performs its processing through an associated call back function, and which is only performed once.
CBase
- Base class for all classes to be instantiated on the heap
CActive
- The core class of the active object abstraction
CAsyncOneShot
- An active object that performs processing that is only performed once
CAsyncCallBack
- An active object that performs its processing through an associated call back function, and which is only performed once
Defined in CAsyncCallBack
:
CAsyncCallBack()
, CAsyncCallBack()
, CallBack()
, RunL()
, Set()
, iCallBack
, ~CAsyncCallBack()
Inherited from CActive
:
Cancel()
,
Deque()
,
EPriorityHigh
,
EPriorityIdle
,
EPriorityLow
,
EPriorityStandard
,
EPriorityUserInput
,
Extension_()
,
IsActive()
,
IsAdded()
,
Priority()
,
RunError()
,
SetActive()
,
SetPriority()
,
TPriority
,
iStatus
Inherited from CAsyncOneShot
:
Call()
,
DoCancel()
,
Thread()
Inherited from CBase
:
Delete()
,
operator new()
IMPORT_C CAsyncCallBack(TInt aPriority);
Constructor taking a priority value.
Specifically, the constructor sets this active object's priority value through a call to the base class constructor in its ctor list.
No call back is set, which means that it must be set subsequently through a call to the Set()
function.
|
IMPORT_C CAsyncCallBack(const TCallBack &aCallBack, TInt aPriority);
Constructor taking a priority value and a callback.
Specifically, the constructor:
1. sets this active object's priority value through a call to the base class constructor in its ctor list
2. sets the callback; the function encapsulated by the callback is called when this active object is scheduled to run.
|
IMPORT_C void Set(const TCallBack &aCallBack);
Sets the call back.
|
|
IMPORT_C void CallBack();
Queues this active object to be run, if it is not already queued.
protected: TCallBack iCallBack;
The callback object that encapsulates the callback function.