diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-10-25 15:47:40 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-10-25 15:48:08 (GMT) |
commit | bfdf408bed69a279eb710de915e932764ceaed76 (patch) | |
tree | a56cca8886784d31d91532067b62ffc1818e8291 /Swift/Controllers/IdleDetector.h | |
parent | efd505dd4a85e696a650e29da829504cf01bb5d0 (diff) | |
download | swift-contrib-bfdf408bed69a279eb710de915e932764ceaed76.zip swift-contrib-bfdf408bed69a279eb710de915e932764ceaed76.tar.bz2 |
Some groundwork ready for autoaway
Diffstat (limited to 'Swift/Controllers/IdleDetector.h')
-rw-r--r-- | Swift/Controllers/IdleDetector.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Swift/Controllers/IdleDetector.h b/Swift/Controllers/IdleDetector.h new file mode 100644 index 0000000..72fe07c --- /dev/null +++ b/Swift/Controllers/IdleDetector.h @@ -0,0 +1,16 @@ +#pragma once + +#include <boost/signals.hpp> +#include <boost/shared_ptr.hpp> + +namespace Swift { +class IdleDetector { + public: + virtual ~IdleDetector() {}; + virtual void forceNotIdle() = 0; + boost::signal<void ()> onInputIdle; + boost::signal<void ()> onInputNotIdle; +}; +} + + |