3 This file is part of libmspio
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
7 #ifndef EVENTDISPATCHER_H_
8 #define EVENTDISPATCHER_H_
10 #include <sigc++/connection.h>
17 Put your I/O objects inside one of these to get signaled when something happens
28 Checks for and dispatches events. If block is true, will block until events
31 void tick(bool =true);
36 sigc::connection evch_conn;
37 sigc::connection del_conn;
39 Slot(Base *o): obj(o) { }
41 typedef std::map<Base *, Slot> SlotMap;
46 void object_events_changed(PollEvent, Base *);
47 void object_deleted(Base *);