Centos build fixes.
[dcpomatic.git] / src / lib / job.h
index 6310da32ae69a2b87db7bdbc8cb29688b447a418..5e3127dc158a432522590ffec566e5cfa1e21bbf 100644 (file)
@@ -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;