MEventService Class Reference

class MEventService : public MInetBase

Event Managers distribute the event notifications to the registered listeners.

Inherits from

Constructor & Destructor Documentation

~MEventService()

~MEventService()[inline, virtual]

Member Functions Documentation

CreateEventManager(TUint)

IMPORT_C MEventService *CreateEventManager(TUintaNumClasses)[static]

Parameters

TUint aNumClassesNumber of event classes handled by the new manager.

IsEmpty(TUint)

TBool IsEmpty(TUintaEventClass)[pure virtual]

Parameters

TUint aEventClassevent class to be checked for listeners.

Notify(TUint, TUint, const void *)

voidNotify(TUintaEventClass,
TUintaEventType,
const void *aData
)[pure virtual]

Parameters

TUint aEventClassevent class, determines which listeners are notified.
TUint aEventTypeevent type code, specific for given class.
const void * aDataEvent type specific data. The data is passed to all notified listeners.

RegisterListener(MEventListener *, TUint)

TInt RegisterListener(MEventListener *aListener,
TUintaEventClass
)[pure virtual]

If a listener wants to register for several event classes, this method needs to be called a multiple times.

Parameters

MEventListener * aListenerPointer to listener instance
TUint aEventClassEvent class for which notifications are to be sent.

RemoveListener(MEventListener *, TUint)

TInt RemoveListener(MEventListener *aListener,
TUintaEventClass = 0
)[pure virtual]

Parameters

MEventListener * aListenerPointer to listener instance to be unregistered
TUint aEventClass = 0Event class which is unregistered. If the listener was registered to other event classes, it remains registered there. If this parameter is omitted or 0 is given, then the listener is unregistered from all event classes (useful for cleanup).