CMPXTaskQueue Class Reference

class CMPXTaskQueue : public CBase

Encapsulates a task queue.

MPXCommon.lib

Inherits from

Constructor & Destructor Documentation

CMPXTaskQueue()

CMPXTaskQueue()[protected]

C++ constructor.

Since
S60 3.2.3

~CMPXTaskQueue()

IMPORT_C~CMPXTaskQueue()[virtual]

Destructor.

Since
S60 3.2.3

Member Functions Documentation

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

IMPORT_C voidAddTaskL(TIntaTask,
TAny *aCallback,
TIntaParamData = 0,
CBufBase *aBuf = NULL,
TAny *aPtrData = NULL,
CBase *aCObject1 = NULL,
CBase *aCObject2 = NULL
)

Add a task into the queue.

Since
S60 3.2.3

Parameters

TInt aTasktask id
TAny * aCallbackcallback
TInt aParamData = 0parameter data of the task
CBufBase * aBuf = NULLextra data in buffer, ownership transferred.
TAny * aPtrData = NULLobject pointer, owership not transferred.
CBase * aCObject1 = NULLpointer to CBased object, ownership transferred
CBase * aCObject2 = NULLpointer to CBased object, ownership transferred

BufData()

IMPORT_C const TDesC8 &BufData()

Get pointer to buffer data. Task Queue has ownership of this buffer.

Since
S60 3.2.3

Callback()

IMPORT_C TAny *Callback()

Get current call back.

Since
S60 3.2.3

ConstructL()

voidConstructL()[protected]

2nd phase contructor.

Since
S60 3.2.3

IsEmpty()

IMPORT_C TBoolIsEmpty()

Return if the queue is empty.

Since
S60 3.2.3

NewL()

IMPORT_C CMPXTaskQueue *NewL()[static]

Two-phased constructor.

Since
S60 3.2.3

Param()

IMPORT_C TIntParam()

Get current parameter data.

Since
S60 3.2.3

PtrData()

IMPORT_C TAny *PtrData()

Get pointer parameter data. Client has ownership of this data.

Since
S60 3.2.3

RemoveTask()

IMPORT_C TAny *RemoveTask()

Remove current task, return callback function.

Since
S60 3.2.3

RemoveTask(TAny *)

IMPORT_C voidRemoveTask(TAny *aCallback)

Remove task for one client.

Since
S60 3.2.3

Parameters

TAny * aCallback

Reset()

IMPORT_C voidReset()

Reset task queue.

Since
S60 3.2.3

Task()

IMPORT_C TIntTask()

Get current task id.

Since
S60 3.2.3

Member Data Documentation

TSglQue< CTask > iTaskList

TSglQue< CTask >iTaskList[protected]