CMediatorCommandResponder Class Reference

class CMediatorCommandResponder : public CBase

A class used to respond to Mediator Service commands.

MediatorClient.lib
Since
S60 3.1

Inherits from

  • CMediatorCommandResponder

Constructor & Destructor Documentation

CMediatorCommandResponder()

CMediatorCommandResponder()[private]

C++ default constructor.

~CMediatorCommandResponder()

~CMediatorCommandResponder()[virtual]

Destructor.

Member Functions Documentation

ConstructL(MMediatorCommandObserver *)

voidConstructL(MMediatorCommandObserver *aObserver)[private]

By default Symbian 2nd phase constructor is private.

Parameters

MMediatorCommandObserver * aObservermediator command observer

IssueResponse(TUid, TUid, TInt, TInt, const TDesC8 &)

IMPORT_C TIntIssueResponse(TUidaDomain,
TUidaCategory,
TIntaCommandId,
TIntaStatus,
const TDesC8 &aData
)

Issue a response to a command.

Since
S60 3.1

Parameters

TUid aDomainThe identifier of the domain
TUid aCategoryThe identifier of the category.
TInt aCommandIdThe identifier of the command.
TInt aStatusResult status of the command.
const TDesC8 & aDataThe parameters of the response.

NewL(MMediatorCommandObserver *)

IMPORT_C CMediatorCommandResponder *NewL(MMediatorCommandObserver *aObserver)[static]

Two-phased constructor.

Parameters

MMediatorCommandObserver * aObservermediator command observer

RegisterCommand(TUid, TUid, const MediatorService::RCommandList &)

IMPORT_C TIntRegisterCommand(TUidaDomain,
TUidaCategory,
const MediatorService::RCommandList &aCommands
)

Register a command category. After registration all commands from the category may be initiated.

Since
S60 3.1

Parameters

TUid aDomainThe identifier of the domain
TUid aCategoryThe identifier of the category.
const MediatorService::RCommandList & aCommandsThe command list to be registered.

RegisterCommand(TUid, TUid, TInt, TVersion, TCapabilitySet, TInt)

IMPORT_C TIntRegisterCommand(TUidaDomain,
TUidaCategory,
TIntaCommandId,
TVersionaVersion,
TCapabilitySetaCaps,
TIntaTimeOut
)

Register a command. After registering the command it may be initiated.

Since
S60 3.1

Parameters

TUid aDomainThe identifier of the domain
TUid aCategoryThe identifier of the category.
TInt aCommandIdThe identifier of the category.
TVersion aVersionThe version of the command
TCapabilitySet aCapsCapabilities required for initiating the command.
TInt aTimeOut

UnregisterCommand(TUid, TUid, const MediatorService::RCommandList &)

IMPORT_C TIntUnregisterCommand(TUidaDomain,
TUidaCategory,
const MediatorService::RCommandList &aCommands
)

Unregister a command category.

Since
S60 3.1

Parameters

TUid aDomainThe identifier of the domain
TUid aCategoryThe identifier of the category.
const MediatorService::RCommandList & aCommandsList of commands to be unregistered.

UnregisterCommand(TUid, TUid, TInt)

IMPORT_C TIntUnregisterCommand(TUidaDomain,
TUidaCategory,
TIntaCommandId
)

Unregister a command.

Since
S60 3.1

Parameters

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

Member Data Documentation

CMediatorCommandResponderBody * iBody

CMediatorCommandResponderBody *iBody[private]

Pointer to implementation class Own.