X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fjob.h;h=716b0c5c62ae8fe4119d155d6b55a77b0772f6dd;hb=44555d6be9043c00030050caf9b49cd0241730c9;hp=40e90b73c72b3c136f0570cf7198018746610a29;hpb=92cafb6fc686a041354da2eabde6bcb2f6846e1d;p=dcpomatic.git diff --git a/src/lib/job.h b/src/lib/job.h index 40e90b73c..716b0c5c6 100644 --- a/src/lib/job.h +++ b/src/lib/job.h @@ -35,10 +35,10 @@ class Film; /** @class Job * @brief A parent class to represent long-running tasks which are run in their own thread. */ -class Job : public boost::enable_shared_from_this +class Job : public boost::enable_shared_from_this, public boost::noncopyable { public: - Job (boost::shared_ptr); + Job (boost::shared_ptr); virtual ~Job() {} /** @return user-readable name of this job */ @@ -71,7 +71,7 @@ public: void descend (float); float overall_progress () const; - /** Emitted by the JobManagerView from the UI thread */ + /** Emitted from the UI thread when the job is finished */ boost::signals2::signal Finished; protected: @@ -80,10 +80,10 @@ protected: /** Description of a job's state */ enum State { - NEW, ///< the job hasn't been started yet - RUNNING, ///< the job is running - PAUSED, ///< the job has been paused - FINISHED_OK, ///< the job has finished successfully + NEW, ///< the job hasn't been started yet + RUNNING, ///< the job is running + PAUSED, ///< the job has been paused + FINISHED_OK, ///< the job has finished successfully FINISHED_ERROR, ///< the job has finished in error FINISHED_CANCELLED ///< the job was cancelled }; @@ -91,7 +91,7 @@ protected: void set_state (State); void set_error (std::string s, std::string d); - boost::shared_ptr _film; + boost::shared_ptr _film; private: