Fix shared_ptr for Film.
[dcpomatic.git] / src / lib / job_manager.h
index 4b70738f0bb4a121c7e7b9e5c7c699ccfe3d4aa1..cc1c1d28fc20b9250e101c4b7251bf10e9faf2e7 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <list>
 #include <boost/thread/mutex.hpp>
+#include <boost/signals2.hpp>
 
 class Job;
 
@@ -39,6 +40,8 @@ public:
        bool work_to_do () const;
        bool errors () const;
 
+       boost::signals2::signal<void (bool)> ActiveJobsChanged;
+
        static JobManager* instance ();
 
 private:
@@ -48,5 +51,7 @@ private:
        mutable boost::mutex _mutex;
        std::list<boost::shared_ptr<Job> > _jobs;
 
+       bool _last_active_jobs;
+
        static JobManager* _instance;
 };