CMediatorEventProvider Class Reference

class CMediatorEventProvider : public CBase

A class used for raising Mediator Service events.

MediatorClient.lib
Since
S60 3.1

Inherits from

Constructor & Destructor Documentation

CMediatorEventProvider()

CMediatorEventProvider ( ) [private]

C++ default constructor.

~CMediatorEventProvider()

~CMediatorEventProvider ( ) [virtual]

Destructor.

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

NewL()

IMPORT_C CMediatorEventProvider * NewL ( ) [static]

Two-phased constructor.

RaiseEvent(TUid, TUid, TInt, TVersion, const TDesC8 &)

IMPORT_C TInt RaiseEvent ( TUid aDomain,
TUid aCategory,
TInt aEventId,
TVersion aVersion,
const TDesC8 & aData
)

Raise an event. This command needs SwEvent -capability.

Since
S60 3.1

Parameters

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

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

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

Registers a list of events within specified category. This command needs SwEvent -capability.

Since
S60 3.1

Parameters

TUid aDomain The identifier of the domain
TUid aCategory The identifier of the category.
const MediatorService::REventList & aEvents List of events to be registered.

RegisterEvent(TUid, TUid, TInt, TVersion, TCapabilitySet)

IMPORT_C TInt RegisterEvent ( TUid aDomain,
TUid aCategory,
TInt aEventId,
TVersion aVersion,
TCapabilitySet aCaps
)

Register a single event. After registering an event it may be raised. This command needs SwEvent -capability.

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 The version of the event.
TCapabilitySet aCaps Capabilities required for consuming the event.

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

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

Unregister an event category.

Since
S60 3.1

Parameters

TUid aDomain The identifier of the domain
TUid aCategory The identifier of the category.
const MediatorService::REventList & aEvents List of events to be unregistered.

UnregisterEvent(TUid, TUid, TInt)

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

Unregister an event.

Since
S60 3.1

Parameters

TUid aDomain
TUid aCategory The identifier of the category.
TInt aEventId The identifier of the event.

Member Data Documentation

CMediatorEventProviderBody * iBody

CMediatorEventProviderBody * iBody [private]

Pointer to implementation class Own.