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 ( TUint aNumClasses ) [static]

Parameters

TUint aNumClasses Number of event classes handled by the new manager.

IsEmpty(TUint)

TBool IsEmpty ( TUint aEventClass ) [pure virtual]

Parameters

TUint aEventClass event class to be checked for listeners.

Notify(TUint, TUint, const void *)

void Notify ( TUint aEventClass,
TUint aEventType,
const void * aData
) [pure virtual]

Parameters

TUint aEventClass event class, determines which listeners are notified.
TUint aEventType event type code, specific for given class.
const void * aData Event type specific data. The data is passed to all notified listeners.

RegisterListener(MEventListener *, TUint)

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

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

Parameters

MEventListener * aListener Pointer to listener instance
TUint aEventClass Event class for which notifications are to be sent.

RemoveListener(MEventListener *, TUint)

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

Parameters

MEventListener * aListener Pointer to listener instance to be unregistered
TUint aEventClass = 0 Event 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).