]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/eventdispatcher.h
Add move semantics to Variant
[libs/core.git] / source / io / eventdispatcher.h
index f95f477daac5199df5995698a217baa64e6e3f99..25341bfe36fd04bc28878c0a8971bfce62de689e 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <set>
 #include <sigc++/trackable.h>
+#include <msp/core/mspcore_api.h>
 #include <msp/time/timedelta.h>
 #include <msp/time/timer.h>
 #include "poll.h"
@@ -14,7 +15,7 @@ namespace IO {
 Put your I/O objects inside one of these to get signaled when something happens
 on some of them.
 */
-class EventDispatcher
+class MSPCORE_API EventDispatcher
 {
 private:
        struct Slot: public sigc::trackable
@@ -22,7 +23,7 @@ private:
                EventDispatcher &disp;
                EventObject &obj;
 
-               Slot(EventDispatcher &, EventObject &);
+               Slot(EventDispatcher &d, EventObject &o): disp(d), obj(o) { }
 
                void connect_signals() const;
                void events_changed(PollEvent) const;