return !_progress;
}
+ boost::shared_ptr<const Film> film () const {
+ return _film;
+ }
+
boost::signals2::signal<void()> Progress;
/** Emitted from the UI thread when the job is finished */
boost::signals2::signal<void()> Finished;
#include "job_manager.h"
#include "job.h"
#include "util.h"
+#include "film.h"
#include "transcode_job.h"
using std::string;
json << "{ \"jobs\": [";
for (list<shared_ptr<Job> >::iterator i = jobs.begin(); i != jobs.end(); ++i) {
- json << "{ "
- << "\"name\": \"" << (*i)->json_name() << "\", "
+ json << "{ ";
+
+ if ((*i)->film()) {
+ json << "\"dcp\": \"" << (*i)->film()->dcp_name() << "\", ";
+ }
+
+ json << "\"name\": \"" << (*i)->json_name() << "\", "
<< "\"progress\": " << (*i)->progress () << ", "
<< "\"status\": \"" << (*i)->json_status() << "\"";
-
json << " }";
list<shared_ptr<Job> >::iterator j = i;