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 * aObservercommand response observer

~CMediatorCommandInitiatorBody()

~CMediatorCommandInitiatorBody()[virtual]

Destructor.

Member Functions Documentation

CancelCommand(TUid, TUid, TInt)

voidCancelCommand(TUidaDomain,
TUidaCategory,
TIntaCommandId
)

Cancel a Mediator Service command.

Since
S60 3.1

Parameters

TUid aDomainThe identifier of the domain
TUid aCategoryThe identifier of the category.
TInt aCommandIdThe identifier of the command.

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

DoCancel()

voidDoCancel()[protected, virtual]

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

TInt IssueCommand(TUidaDomain,
TUidaCategory,
TIntaCommandId,
TVersionaVersion,
const TDesC8 &aData
)

Issue a Mediator Service command.

Since
S60 3.1

Parameters

TUid aDomainThe identifier of the domain
TUid aCategoryThe identifier of the category.
TInt aCommandIdThe identifier of the command.
TVersion aVersionThe version information for the command.
const TDesC8 & aDataThe parameters of the command.

NewL(MMediatorCommandResponseObserver *)

CMediatorCommandInitiatorBody *NewL(MMediatorCommandResponseObserver *aObserver)[static]

Two-phased constructor.

Parameters

MMediatorCommandResponseObserver * aObservercommand response observer

ResetDataBufferL(TInt)

voidResetDataBufferL(TIntaSize)[private]

Re-init return data buffer

Since
S60 3.1

Parameters

TInt aSizesize of the buffer

RunError(TInt)

TInt RunError(TIntaError)[protected, virtual]

Parameters

TInt aError

RunL()

voidRunL()[protected, virtual]

WaitForCommandResponse()

voidWaitForCommandResponse()[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]