CMediatorService Class Reference

class CMediatorService : public CBase

This class is responsible for communication towards Mediator.

telephonyservice.lib
Since
S60 v5.1

Inherits from

Constructor & Destructor Documentation

CMediatorService(TServiceCategory)

CMediatorService ( TServiceCategory aService ) [protected]

Constructor for performing 1st stage construction

Parameters

TServiceCategory aService

~CMediatorService()

~CMediatorService ( )

Destructor.

Member Functions Documentation

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

void CommandResponseL ( TUid aDomain,
TUid aCategory,
TInt aCommandId,
TInt aStatus,
const TDesC8 & aData
)

From MMediatorCommandResponseObserver . A response to a Mediator Service command.

Since
S60 v3.1

Parameters

TUid aDomain The identifier of the domain
TUid aCategory The identifier of the category.
TInt aCommandId The identifier of the command.
TInt aStatus Standard Symbian error code indicating the success of the command.
const TDesC8 & aData The parameters of the response.

ConstructL()

void ConstructL ( ) [protected]

EPOC default constructor for performing 2nd stage construction

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

void MediatorEventL ( TUid aDomain,
TUid aCategory,
TInt aEventId,
const TDesC8 & aData
)

From MMediatorEventObserver . A Mediator Service event.

Since
S60 3.1

Parameters

TUid aDomain The identifier of the domain.
TUid aCategory The identifier of the category.
TInt aEventId The identifier of the event.
const TDesC8 & aData The parameters of the event.

NewL(TServiceCategory)

CMediatorService * NewL ( TServiceCategory aService ) [static]

Two-phased constructor.

Parameters

TServiceCategory aService

NewLC(TServiceCategory)

CMediatorService * NewLC ( TServiceCategory aService ) [static]

Two-phased constructor.

Parameters

TServiceCategory aService

SendCommand()

TInt SendCommand ( ) [virtual]

Send mediator command.

SetMediatorParams()

void SetMediatorParams ( ) [private]

Sets the parameters used in Mediator commands and events

SetObserver(MMediatorServiceObserver *)

void SetObserver ( MMediatorServiceObserver * aObserver )

Sets the observer.

Parameters

MMediatorServiceObserver * aObserver

SubscribeEvent()

TInt SubscribeEvent ( ) [virtual]

Subscribe mediator event.

Member Enumerations Documentation

Enum TServiceCategory

Enumerates service categories provided by CMediatorService .

ECallInfo - CMediatorService is used for call information commands and events. ECallRemotePartyInfo - CMediatorService is used for call remote party information commands and events.

Enumerators

ECallInfo
ECallRemotePartyInfo

Member Data Documentation

TUid iCategory

TUid iCategory [private]

TInt iCommandId

TInt iCommandId [private]

CMediatorCommandInitiator * iCommandInitiator

CMediatorCommandInitiator * iCommandInitiator [private]

TUid iDomain

TUid iDomain [private]

TInt iEventId

TInt iEventId [private]

CMediatorEventConsumer * iMediatorEvent

CMediatorEventConsumer * iMediatorEvent [private]

MMediatorServiceObserver * iObserver

MMediatorServiceObserver * iObserver [private]

TServiceCategory iServiceCategory

TServiceCategory iServiceCategory [private]

TVersion iVersion

TVersion iVersion [private]