1 #ifndef EVENTDISPATCHER_H_
2 #define EVENTDISPATCHER_H_
4 #include <sigc++/connection.h>
5 #include <sigc++/trackable.h>
12 Put your I/O objects inside one of these to get signaled when something happens
15 class EventDispatcher: public sigc::trackable
23 Checks for and dispatches events. If there are no events available, blocks
29 Checks for and dispatches events. If there are no events available, waits
30 at most the specified time before returning.
32 void tick(const Time::TimeDelta &);
37 sigc::connection evch_conn;
38 sigc::connection del_conn;
40 Slot(Base *o): obj(o) { }
42 typedef std::map<Base *, Slot> SlotMap;
47 void object_events_changed(PollEvent, Base *);
48 void object_deleted(Base *);