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

Constructor for performing 1st stage construction

Parameters

TServiceCategory aService

~CMediatorService()

~CMediatorService()

Destructor.

Member Functions Documentation

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

voidCommandResponseL(TUidaDomain,
TUidaCategory,
TIntaCommandId,
TIntaStatus,
const TDesC8 &aData
)

From MMediatorCommandResponseObserver. A response to a Mediator Service command.

Since
S60 v3.1

Parameters

TUid aDomainThe identifier of the domain
TUid aCategoryThe identifier of the category.
TInt aCommandIdThe identifier of the command.
TInt aStatusStandard Symbian error code indicating the success of the command.
const TDesC8 & aDataThe parameters of the response.

ConstructL()

voidConstructL()[protected]

EPOC default constructor for performing 2nd stage construction

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

voidMediatorEventL(TUidaDomain,
TUidaCategory,
TIntaEventId,
const TDesC8 &aData
)

From MMediatorEventObserver. A Mediator Service event.

Since
S60 3.1

Parameters

TUid aDomainThe identifier of the domain.
TUid aCategoryThe identifier of the category.
TInt aEventIdThe identifier of the event.
const TDesC8 & aDataThe parameters of the event.

NewL(TServiceCategory)

CMediatorService *NewL(TServiceCategoryaService)[static]

Two-phased constructor.

Parameters

TServiceCategory aService

NewLC(TServiceCategory)

CMediatorService *NewLC(TServiceCategoryaService)[static]

Two-phased constructor.

Parameters

TServiceCategory aService

SendCommand()

TInt SendCommand()[virtual]

Send mediator command.

SetMediatorParams()

voidSetMediatorParams()[private]

Sets the parameters used in Mediator commands and events

SetObserver(MMediatorServiceObserver *)

voidSetObserver(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]