Tweak crop widgets.
[dcpomatic.git] / src / lib / job.h
index 41cefb9bee113a2ba322f06845fb4e02cf3daca0..1ea0a9b17373793693c45eaaa2c64c1c749d5e57 100644 (file)
@@ -30,7 +30,6 @@
 #include <boost/signals2.hpp>
 
 class Film;
-class Options;
 
 /** @class Job
  *  @brief A parent class to represent long-running tasks which are run in their own thread.
@@ -54,7 +53,8 @@ public:
        bool finished_ok () const;
        bool finished_in_error () const;
 
-       std::string error () const;
+       std::string error_summary () const;
+       std::string error_details () const;
 
        int elapsed_time () const;
        virtual std::string status () const;
@@ -84,7 +84,7 @@ protected:
        };
        
        void set_state (State);
-       void set_error (std::string e);
+       void set_error (std::string s, std::string d);
 
        /** Film for this job */
        boost::shared_ptr<Film> _film;
@@ -99,8 +99,9 @@ private:
        mutable boost::mutex _state_mutex;
        /** current state of the job */
        State _state;
-       /** message for an error that has occurred (when state == FINISHED_ERROR) */
-       std::string _error;
+       /** summary of an error that has occurred (when state == FINISHED_ERROR) */
+       std::string _error_summary;
+       std::string _error_details;
 
        /** time that this job was started */
        time_t _start_time;