CMPXActiveTaskQueue Class Reference

class CMPXActiveTaskQueue : public CMPXTaskQueue

Encapsulates a task queue which will auto schedule the task

MPXCommon.lib

Inherits from

Constructor & Destructor Documentation

CMPXActiveTaskQueue()

CMPXActiveTaskQueue ( ) [private]

C++ constructor.

Since
S60 3.2.3

~CMPXActiveTaskQueue()

IMPORT_C ~CMPXActiveTaskQueue ( ) [virtual]

Destructor.

Since
S60 3.2.3

Member Functions Documentation

AddTaskL(TInt, TAny *, MMPXTaskQueueObserver *, TInt, CBufBase *, TAny *, CBase *, CBase *)

IMPORT_C void AddTaskL ( TInt aTask,
TAny * aCallback,
MMPXTaskQueueObserver * aHandler,
TInt aParamData = 0,
CBufBase * aBuf = NULL,
TAny * aPtrData = NULL,
CBase * aCObject1 = NULL,
CBase * aCObject2 = NULL
)

Add a task and automatically schedule task.

Since
S60 3.2.3

Parameters

TInt aTask task id
TAny * aCallback callback
MMPXTaskQueueObserver * aHandler task handler
TInt aParamData = 0 data
CBufBase * aBuf = NULL pointer to the buffer containing externalized parameter data. Client passes ownership of the buffer to TaskQueue.
TAny * aPtrData = NULL object pointer
CBase * aCObject1 = NULL pointer to CBased object, ownership transferred
CBase * aCObject2 = NULL pointer to CBased object, ownership transferred

CancelRequests()

IMPORT_C void CancelRequests ( )

Cancel all outstanding, asynchronous requests.

Since
S60 3.2.3

CompleteAllTasks(TInt)

IMPORT_C void CompleteAllTasks ( TInt aError )

Completes all outstanding tasks with an error code.

Since
S60 3.2.3

Parameters

TInt aError

CompleteTask()

IMPORT_C void CompleteTask ( )

Complete current task.

Since
S60 3.2.3

ConstructL()

void ConstructL ( ) [private]

2nd phase contructor.

Since
S60 3.2.3

NewL()

IMPORT_C CMPXActiveTaskQueue * NewL ( ) [static]

Two-phased constructor.

Since
S60 3.2.3

ScheduleNextTask()

IMPORT_C void ScheduleNextTask ( )

Schedule to execute next task.

Since
S60 3.2.3

Member Data Documentation

CMPXTaskQueueScheduler * iScheduler

CMPXTaskQueueScheduler * iScheduler [private]