CMediatorCommandInitiatorBody Class Reference

class CMediatorCommandInitiatorBody : public CActive

A class used to issue Mediator Service commands.

MediatorClient.lib
Since
S60 3.1

Inherits from

Constructor & Destructor Documentation

CMediatorCommandInitiatorBody(MMediatorCommandResponseObserver *)

CMediatorCommandInitiatorBody ( MMediatorCommandResponseObserver * aObserver ) [private]

C++ default constructor.

Parameters

MMediatorCommandResponseObserver * aObserver command response observer

~CMediatorCommandInitiatorBody()

~CMediatorCommandInitiatorBody ( ) [virtual]

Destructor.

Member Functions Documentation

CancelCommand(TUid, TUid, TInt)

void CancelCommand ( TUid aDomain,
TUid aCategory,
TInt aCommandId
)

Cancel a Mediator Service command.

Since
S60 3.1

Parameters

TUid aDomain The identifier of the domain
TUid aCategory The identifier of the category.
TInt aCommandId The identifier of the command.

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

DoCancel()

void DoCancel ( ) [protected, virtual]

IssueCommand(TUid, TUid, TInt, TVersion, const TDesC8 &)

TInt IssueCommand ( TUid aDomain,
TUid aCategory,
TInt aCommandId,
TVersion aVersion,
const TDesC8 & aData
)

Issue a Mediator Service command.

Since
S60 3.1

Parameters

TUid aDomain The identifier of the domain
TUid aCategory The identifier of the category.
TInt aCommandId The identifier of the command.
TVersion aVersion The version information for the command.
const TDesC8 & aData The parameters of the command.

NewL(MMediatorCommandResponseObserver *)

CMediatorCommandInitiatorBody * NewL ( MMediatorCommandResponseObserver * aObserver ) [static]

Two-phased constructor.

Parameters

MMediatorCommandResponseObserver * aObserver command response observer

ResetDataBufferL(TInt)

void ResetDataBufferL ( TInt aSize ) [private]

Re-init return data buffer

Since
S60 3.1

Parameters

TInt aSize size of the buffer

RunError(TInt)

TInt RunError ( TInt aError ) [protected, virtual]

Parameters

TInt aError

RunL()

void RunL ( ) [protected, virtual]

WaitForCommandResponse()

void WaitForCommandResponse ( ) [private]

Start to wait command response asynchronously

Since
S60 3.1

Member Data Documentation

TMediatorCategory iCategory

TMediatorCategory iCategory [private]

TMediatorCategoryRetBuffer iCategoryBuffer

TMediatorCategoryRetBuffer iCategoryBuffer [private]

MediatorService::TCommand iCommand

MediatorService::TCommand iCommand [private]

TCommandRetBuffer iCommandBuffer

TCommandRetBuffer iCommandBuffer [private]

HBufC8 * iCommandData

HBufC8 * iCommandData [private]

TPtr8 iCommandDataPtr

TPtr8 iCommandDataPtr [private]

RMediatorServer iMediatorServer

RMediatorServer iMediatorServer [private]

MMediatorCommandResponseObserver * iObserver

MMediatorCommandResponseObserver * iObserver [private]

TInt iResponseStatus

TInt iResponseStatus [private]

TPckg< TInt > iStatusBuffer

TPckg < TInt > iStatusBuffer [private]