diff options
Diffstat (limited to 'Swift/Controllers/UIEvents/UIEventStream.h')
-rw-r--r-- | Swift/Controllers/UIEvents/UIEventStream.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Swift/Controllers/UIEvents/UIEventStream.h b/Swift/Controllers/UIEvents/UIEventStream.h new file mode 100644 index 0000000..a20c578 --- /dev/null +++ b/Swift/Controllers/UIEvents/UIEventStream.h @@ -0,0 +1,15 @@ +#pragma once + +#include <boost/signals.hpp> +#include <boost/shared_ptr.hpp> + + +#include "Swift/Controllers/UIEvents/UIEvent.h" + +namespace Swift { + class UIEventStream { + public: + boost::signal<void (boost::shared_ptr<UIEvent>)> onUIEvent; + void send(boost::shared_ptr<UIEvent> event) {onUIEvent(event);}; + }; +} |