CMediatorEventConsumer Class Reference

class CMediatorEventConsumer : public CBase

A class used for receiving Mediator Service events.

MediatorClient.lib
Since
S60 3.1

Inherits from

Constructor & Destructor Documentation

CMediatorEventConsumer()

CMediatorEventConsumer ( ) [private]

C++ default constructor.

~CMediatorEventConsumer()

~CMediatorEventConsumer ( ) [virtual]

Destructor.

Member Functions Documentation

ConstructL(MMediatorEventObserver *)

void ConstructL ( MMediatorEventObserver * aObserver ) [private]

By default Symbian 2nd phase constructor is private.

Parameters

MMediatorEventObserver * aObserver mediator event observer

NewL(MMediatorEventObserver *)

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

Two-phased constructor.

Parameters

MMediatorEventObserver * aObserver mediator event observer

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

IMPORT_C TInt SubscribeEvent ( TUid aDomain,
TUid aCategory,
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 aDomain The identifier of the domain.
TUid aCategory The identifier of the category.
const MediatorService::REventList & aEvents The list of events.

SubscribeEvent(TUid, TUid, TInt, TVersion)

IMPORT_C TInt SubscribeEvent ( TUid aDomain,
TUid aCategory,
TInt aEventId,
TVersion aVersion
)

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

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.
TVersion aVersion Version information of the event

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

IMPORT_C TInt UnsubscribeEvent ( TUid aDomain,
TUid aCategory,
const MediatorService::REventList & aEvents
)

Unsubscibe event list.

Since
S60 3.1

Parameters

TUid aDomain The identifier of the domain.
TUid aCategory The identifier of the category.
const MediatorService::REventList & aEvents The list of events

UnsubscribeEvent(TUid, TUid, TInt)

IMPORT_C TInt UnsubscribeEvent ( TUid aDomain,
TUid aCategory,
TInt aEventId
)

Unsubscibe an 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.

Member Data Documentation

CMediatorEventConsumerBody * iBody

CMediatorEventConsumerBody * iBody [private]

Pointer to implementation class Own.