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 void AddTaskL ( TInt aTask,
TAny * aCallback,
TInt aParamData = 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 aTask task id
TAny * aCallback callback
TInt aParamData = 0 parameter data of the task
CBufBase * aBuf = NULL extra data in buffer, ownership transferred.
TAny * aPtrData = NULL object pointer, owership not transferred.
CBase * aCObject1 = NULL pointer to CBased object, ownership transferred
CBase * aCObject2 = NULL pointer 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()

void ConstructL ( ) [protected]

2nd phase contructor.

Since
S60 3.2.3

IsEmpty()

IMPORT_C TBool IsEmpty ( )

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 TInt Param ( )

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 void RemoveTask ( TAny * aCallback )

Remove task for one client.

Since
S60 3.2.3

Parameters

TAny * aCallback

Reset()

IMPORT_C void Reset ( )

Reset task queue.

Since
S60 3.2.3

Task()

IMPORT_C TInt Task ( )

Get current task id.

Since
S60 3.2.3

Member Data Documentation

TSglQue< CTask > iTaskList

TSglQue < CTask > iTaskList [protected]