1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 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; }; }