28 #ifndef EVENT_HANDLER_H__ 29 #define EVENT_HANDLER_H__ 103 #endif // EVENT_HANDLER_H__ static void raise_event(const event *ev)
Check if an event corresponding to ev exists, and execute it.
This is the base class for actual event handlers.
virtual void remove_event(event *ev)=0
Unregister an event.
u_int8 type() const
Get the event's type.
static void init()
Instanciate the actual event handlers.
void add_event(event *ev)
Adds an event to this list.
Declares the base class for event handlers.
void set_registered(bool reg)
Set whether the event is registered with the event handler.
virtual void resume()
Re-enable an event that has been paused.
static void remove_event(event *ev)
Unregister an event.
virtual void raise_event(const event *ev)=0
Check if an event corresponding to ev exists, and execute it.
static void cleanup()
Delete the event handlers.
static void register_event(event *ev)
Registers an event.
virtual void register_event(event *ev)=0
Registers an event.
It ensures global access to the individual event handlers.
Declares the event_list class.