Garmin Fleet Management Controller
2.19.0
|
Base class for objects that take action in response to an Event being posted. More...
#include <EventListener.h>
Public Member Functions | |
EventListener () | |
Construct a new EventListener. More... | |
virtual | ~EventListener () |
Destructor. More... | |
virtual void | onEvent (EventId aEventId, uint32 aEventData, void *aEventDataPtr, BOOL handleNow)=0 |
Callback for when an event is posted. More... | |
Base class for objects that take action in response to an Event being posted.
Abstract base class for objects that need to be notified of Event posting. An EventListener registers itself with the event system, and onEvent() is called when an event is posted.
Definition at line 24 of file EventListener.h.
EventListener::EventListener | ( | ) |
Construct a new EventListener.
Automatically registers this object with the Event manager.
Definition at line 19 of file EventListener.cpp.
References Event::addListener().
|
virtual |
Destructor.
Automatically unregisters this object from the Event manager.
Definition at line 29 of file EventListener.cpp.
References Event::removeListener().
|
pure virtual |
Callback for when an event is posted.
This function is called when any event has occurred.
aEventId | The Event ID. |
aEventData | An integer; meaning is event-specific. |
aEventDataPtr | A pointer; meaning is event-specific. |
handleNow | A boolean to determine if the event is queued or processed immediately |
Implemented in CWndEventListener.