CMediatorEventConsumer Class Reference

class CMediatorEventConsumer : public CBase

A class used for receiving Mediator Service events.

MediatorClient.lib
Since
S60 3.1

Inherits from

  • CMediatorEventConsumer

Constructor & Destructor Documentation

CMediatorEventConsumer()

CMediatorEventConsumer()[private]

C++ default constructor.

~CMediatorEventConsumer()

~CMediatorEventConsumer()[virtual]

Destructor.

Member Functions Documentation

ConstructL(MMediatorEventObserver *)

voidConstructL(MMediatorEventObserver *aObserver)[private]

By default Symbian 2nd phase constructor is private.

Parameters

MMediatorEventObserver * aObservermediator event observer

NewL(MMediatorEventObserver *)

IMPORT_C CMediatorEventConsumer *NewL(MMediatorEventObserver *aObserver)[static]

Two-phased constructor.

Parameters

MMediatorEventObserver * aObservermediator event observer

SubscribeEvent(TUid, TUid, const MediatorService::REventList &)

IMPORT_C TIntSubscribeEvent(TUidaDomain,
TUidaCategory,
const MediatorService::REventList &aEvents
)

Subscibe an event list. Raised events from the list will be delivered via the observer interface.

Since
S60 3.1

Parameters

TUid aDomainThe identifier of the domain.
TUid aCategoryThe identifier of the category.
const MediatorService::REventList & aEventsThe list of events.

SubscribeEvent(TUid, TUid, TInt, TVersion)

IMPORT_C TIntSubscribeEvent(TUidaDomain,
TUidaCategory,
TIntaEventId,
TVersionaVersion
)

Subscibe an event. Raised events will be delivered via the observer interface.

Since
S60 3.1

Parameters

TUid aDomainThe identifier of the domain.
TUid aCategoryThe identifier of the category.
TInt aEventIdThe identifier of the event.
TVersion aVersionVersion information of the event

UnsubscribeEvent(TUid, TUid, const MediatorService::REventList &)

IMPORT_C TIntUnsubscribeEvent(TUidaDomain,
TUidaCategory,
const MediatorService::REventList &aEvents
)

Unsubscibe event list.

Since
S60 3.1

Parameters

TUid aDomainThe identifier of the domain.
TUid aCategoryThe identifier of the category.
const MediatorService::REventList & aEventsThe list of events

UnsubscribeEvent(TUid, TUid, TInt)

IMPORT_C TIntUnsubscribeEvent(TUidaDomain,
TUidaCategory,
TIntaEventId
)

Unsubscibe an event.

Since
S60 3.1

Parameters

TUid aDomainThe identifier of the domain.
TUid aCategoryThe identifier of the category.
TInt aEventIdThe identifier of the event.

Member Data Documentation

CMediatorEventConsumerBody * iBody

CMediatorEventConsumerBody *iBody[private]

Pointer to implementation class Own.