CTask Class Reference

class CTask : public CBase

Holds details about an individual message exchange with a server or CPM.

Inherits from

Constructor & Destructor Documentation

CTask(const TCFMessage &, TUint)

CTask(const TCFMessage &aMessage,
TUintaTaskId
)[private]

Constructor for CTask

Parameters

const TCFMessage & aMessagethe message to be associated with the task
TUint aTaskIdthe tasks identifier

~CTask()

~CTask()

Destructor for CTask

Member Functions Documentation

CheckIfSame(TCFMessage &)

TBool CheckIfSame(TCFMessage &aMessage)const

Compares the message code and parameter block of the task's message with the message passed as a parameter and returns the result

Parameters

TCFMessage & aMessagethe comparator

Dequeue()

voidDequeue()

Remove this from the linked list

GetMsgReturnCode(const TCFMessage &, TInt &)

TBool GetMsgReturnCode(const TCFMessage &aMessage,
TInt &aStatus
)[static]

Extracts the result code from the message supplied and returns it in the status parameter

Parameters

const TCFMessage & aMessagethe reply containing the result code
TInt & aStatusthe status to be filled in with the result code

Message()

const TCFMessage &Message()const

Accessor method for the message

NeedReply()

TBool NeedReply()const

Checks if the task's message should expect to receive a reply from the server or CPM

NewL(const TCFMessage &, const TUint)

CTask *NewL(const TCFMessage &aMessage,
const TUintaTaskId = 0
)[static]
Creates new CTask object
leave
KErrNoMemory

Parameters

const TCFMessage & aMessagethe message to be associated with the task
const TUint aTaskId = 0the tasks identifier

ReplyMatches(const TCFMessage &)

TBool ReplyMatches(const TCFMessage &aMessage)const

Determines if the message passed as a parameter is a reply to this task's message and returns the result

Parameters

const TCFMessage & aMessagethe reply message to test

TaskId()

TUint TaskId()const

Accessor method for the task id

Member Data Documentation

TDblQueLink iLink

TDblQueLink iLink

TCFMessage iMessage

TCFMessage iMessage[private]

TInt iTaskId

TInt iTaskId[private]