diff options
Diffstat (limited to 'src/lib/job.h')
| -rw-r--r-- | src/lib/job.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/job.h b/src/lib/job.h index 6310da32a..5e3127dc1 100644 --- a/src/lib/job.h +++ b/src/lib/job.h @@ -43,6 +43,7 @@ public: /** @return user-readable name of this job */ virtual std::string name () const = 0; + virtual std::string json_name () const = 0; /** Run this job in the current thread. */ virtual void run () = 0; @@ -64,6 +65,7 @@ public: int elapsed_time () const; virtual std::string status () const; + std::string json_status () const; std::string sub_name () const { return _sub_name; } @@ -76,6 +78,10 @@ public: 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; |
