EncodeOptions can go.
[dcpomatic.git] / src / lib / job.h
index b608f5da2b1ce028567e90642479fa8b8f537d86..f32cfa811ad58c19d10c320bcb323120099354ba 100644 (file)
 #include <string>
 #include <boost/thread/mutex.hpp>
 #include <boost/enable_shared_from_this.hpp>
-#include <sigc++/sigc++.h>
+#include <boost/signals2.hpp>
 
 class Film;
-class Options;
 
 /** @class Job
  *  @brief A parent class to represent long-running tasks which are run in their own thread.
@@ -39,6 +38,7 @@ class Job : public boost::enable_shared_from_this<Job>
 {
 public:
        Job (boost::shared_ptr<Film> s, boost::shared_ptr<Job> req);
+       virtual ~Job() {}
 
        /** @return user-readable name of this job */
        virtual std::string name () const = 0;
@@ -64,14 +64,11 @@ public:
        void descend (float);
        float overall_progress () const;
 
-       void emit_finished ();
-
        boost::shared_ptr<Job> required () const {
                return _required;
        }
 
-       /** Emitted from the GUI thread */
-       sigc::signal0<void> Finished;
+       boost::signals2::signal<void()> Finished;
 
 protected: