X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fupdate.h;h=b82be7808f7fa0c957a98c02a7ad69a3685e8b5d;hb=e60bb3e51bd1508b149e6b8f6608f09b5196ae26;hp=5bb9e95016de1ed2bace2ec556fd54f9dccfef07;hpb=bfe277e664a03ec47cd6bee7e1b1e4aca6eb38e6;p=dcpomatic.git diff --git a/src/lib/update.h b/src/lib/update.h index 5bb9e9501..b82be7808 100644 --- a/src/lib/update.h +++ b/src/lib/update.h @@ -21,6 +21,7 @@ * @brief UpdateChecker class. */ +#include "signaller.h" #include #include #include @@ -30,7 +31,7 @@ struct update_checker_test; /** Class to check for the existance of an update for DCP-o-matic on a remote server */ -class UpdateChecker : public boost::noncopyable +class UpdateChecker : public Signaller, public boost::noncopyable { public: UpdateChecker (); @@ -50,7 +51,7 @@ public: boost::mutex::scoped_lock lm (_data_mutex); return _state; } - + /** @return new stable version, if there is one */ boost::optional stable () { boost::mutex::scoped_lock lm (_data_mutex); @@ -62,7 +63,7 @@ public: boost::mutex::scoped_lock lm (_data_mutex); return _test; } - + /** @return true if the last signal emission was the first */ bool last_emit_was_first () const { boost::mutex::scoped_lock lm (_data_mutex); @@ -77,7 +78,7 @@ public: private: friend struct update_checker_test; - + static UpdateChecker* _instance; static bool version_less_than (std::string const & a, std::string const & b);