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 voidAddTaskL(TIntaTask,
TAny *aCallback,
MMPXTaskQueueObserver *aHandler,
TIntaParamData = 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 aTasktask id
TAny * aCallbackcallback
MMPXTaskQueueObserver * aHandlertask handler
TInt aParamData = 0data
CBufBase * aBuf = NULLpointer to the buffer containing externalized parameter data. Client passes ownership of the buffer to TaskQueue.
TAny * aPtrData = NULLobject pointer
CBase * aCObject1 = NULLpointer to CBased object, ownership transferred
CBase * aCObject2 = NULLpointer to CBased object, ownership transferred

CancelRequests()

IMPORT_C voidCancelRequests()

Cancel all outstanding, asynchronous requests.

Since
S60 3.2.3

CompleteAllTasks(TInt)

IMPORT_C voidCompleteAllTasks(TIntaError)

Completes all outstanding tasks with an error code.

Since
S60 3.2.3

Parameters

TInt aError

CompleteTask()

IMPORT_C voidCompleteTask()

Complete current task.

Since
S60 3.2.3

ConstructL()

voidConstructL()[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 voidScheduleNextTask()

Schedule to execute next task.

Since
S60 3.2.3

Member Data Documentation

CMPXTaskQueueScheduler * iScheduler

CMPXTaskQueueScheduler *iScheduler[private]