diff options
Diffstat (limited to 'SwifTools/Idle/ActualIdleDetector.h')
-rw-r--r-- | SwifTools/Idle/ActualIdleDetector.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/SwifTools/Idle/ActualIdleDetector.h b/SwifTools/Idle/ActualIdleDetector.h new file mode 100644 index 0000000..48428bb --- /dev/null +++ b/SwifTools/Idle/ActualIdleDetector.h @@ -0,0 +1,25 @@ +#pragma once + +#include <boost/shared_ptr.hpp> + +#include "SwifTools/Idle/IdleDetector.h" + +namespace Swift { + class IdleQuerier; + class TimerFactory; + class Timer; + + class ActualIdleDetector : public IdleDetector, public boost::bsignals::trackable { + public: + ActualIdleDetector(IdleQuerier*, TimerFactory*, int refreshRateSeconds); + ~ActualIdleDetector(); + + private: + void handleTimerTick(); + + private: + IdleQuerier* querier; + bool isIdle; + boost::shared_ptr<Timer> timer; + }; +} |