Source-highlight Library
|
A generic event generator, for listeners of type EventListener and events of type EventType. More...
#include <eventgenerator.h>
Public Member Functions | |
void | addListener (EventListener *listener) |
void | removeListener (EventListener *listener) |
bool | hasListeners () const |
void | notify (const EventType &event) |
Notifies all listeners of a specific event. More... | |
Private Attributes | |
std::list< EventListener * > | listeners |
the list of listeners | |
A generic event generator, for listeners of type EventListener and events of type EventType.
EventListener must implement the method notify(const EventType &)
|
inline |
Notifies all listeners of a specific event.
event | the event |