using boost::shared_ptr;
/** @param s Film that we are operating on.
+ * @param req Job that must be completed before this job is run.
*/
Job::Job (shared_ptr<Film> f, shared_ptr<Job> req)
: _film (f)
set_state (FINISHED_ERROR);
set_error (e.what ());
+ } catch (...) {
+
+ set_progress (1);
+ set_state (FINISHED_ERROR);
+ set_error ("unknown exception");
+
}
}
+/** @return true if this job is new (ie has not started running) */
bool
Job::is_new () const
{