swaroop: only allow playback if configured lock file is present.
[dcpomatic.git] / src / lib / monitor_checker.h
index 4f856f41fda6d51a6108c11d52b5a1bfb74b36c0..f99ab4b2a46e31c90e019877f0c1f7f021784569 100644 (file)
 
 */
 
-#include "signaller.h"
+#include "checker.h"
 #include <boost/signals2.hpp>
 
-class MonitorChecker : public Signaller, public boost::noncopyable
+class MonitorChecker : public Checker
 {
 public:
-       ~MonitorChecker ();
+       MonitorChecker ();
 
-       void run ();
+       static MonitorChecker* instance ();
 
-       bool ok () const;
-       boost::signals2::signal<void (void)> StateChanged;
+protected:
+       bool check () const;
 
-       static MonitorChecker* instance ();
 private:
        static MonitorChecker* _instance;
-
-       MonitorChecker ();
-       void thread ();
-
-       boost::thread* _thread;
-       mutable boost::mutex _mutex;
-       bool _terminate;
-       bool _ok;
 };