/** @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<Job>
+class Job : public boost::enable_shared_from_this<Job>, public boost::noncopyable
{
public:
- Job (boost::shared_ptr<Film>);
+ Job (boost::shared_ptr<const Film>);
virtual ~Job() {}
/** @return user-readable name of this job */
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<void()> Finished;
protected:
void set_state (State);
void set_error (std::string s, std::string d);
- boost::shared_ptr<Film> _film;
+ boost::shared_ptr<const Film> _film;
private: