projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of /home/carl/git/dvdomatic
[dcpomatic.git]
/
src
/
lib
/
job.h
diff --git
a/src/lib/job.h
b/src/lib/job.h
index b391304792e0a3e9ab0a926ae440b3dfcf806e8d..f50ed078434efb6cd3661de2802a4c528fb18c7d 100644
(file)
--- a/
src/lib/job.h
+++ b/
src/lib/job.h
@@
-39,7
+39,7
@@
class Options;
class Job : public boost::enable_shared_from_this<Job>
{
public:
class Job : public boost::enable_shared_from_this<Job>
{
public:
- Job (boost::shared_ptr<const FilmState> s, boost::shared_ptr<const Options> o, Log* l);
+ Job (boost::shared_ptr<const FilmState> s, boost::shared_ptr<const Options> o, Log* l
, boost::shared_ptr<Job> req
);
/** @return user-readable name of this job */
virtual std::string name () const = 0;
/** @return user-readable name of this job */
virtual std::string name () const = 0;
@@
-48,6
+48,7
@@
public:
void start ();
void start ();
+ bool is_new () const;
bool running () const;
bool finished () const;
bool finished_ok () const;
bool running () const;
bool finished () const;
bool finished_ok () const;
@@
-66,6
+67,10
@@
public:
void emit_finished ();
void emit_finished ();
+ boost::shared_ptr<Job> required () const {
+ return _required;
+ }
+
/** Emitted from the GUI thread */
sigc::signal0<void> Finished;
/** Emitted from the GUI thread */
sigc::signal0<void> Finished;
@@
-95,6
+100,8
@@
private:
void run_wrapper ();
void run_wrapper ();
+ boost::shared_ptr<Job> _required;
+
/** mutex for _state and _error */
mutable boost::mutex _state_mutex;
/** current state of the job */
/** mutex for _state and _error */
mutable boost::mutex _state_mutex;
/** current state of the job */
@@
-119,6
+126,8
@@
private:
/** true if this job's progress will always be unknown */
bool _progress_unknown;
/** true if this job's progress will always be unknown */
bool _progress_unknown;
+
+ int _ran_for;
};
#endif
};
#endif