summaryrefslogtreecommitdiff
path: root/src/lib/job.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-09 15:14:08 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-09 15:14:08 +0100
commit92cafb6fc686a041354da2eabde6bcb2f6846e1d (patch)
treecdc26dde96d8c9ed1e9c60056a404ca3df2dcfac /src/lib/job.h
parentfd040c2bd27fde35424a384174ecb56c643764cd (diff)
parent6e5c4e570f26e05124ab0ef67e39c07bab9cb4d5 (diff)
Merge master.
Diffstat (limited to 'src/lib/job.h')
-rw-r--r--src/lib/job.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/job.h b/src/lib/job.h
index 2119db2f3..40e90b73c 100644
--- a/src/lib/job.h
+++ b/src/lib/job.h
@@ -47,6 +47,8 @@ public:
virtual void run () = 0;
void start ();
+ void pause ();
+ void resume ();
void cancel ();
bool is_new () const;
@@ -55,6 +57,7 @@ public:
bool finished_ok () const;
bool finished_in_error () const;
bool finished_cancelled () const;
+ bool paused () const;
std::string error_summary () const;
std::string error_details () const;
@@ -79,6 +82,7 @@ protected:
enum State {
NEW, ///< the job hasn't been started yet
RUNNING, ///< the job is running
+ PAUSED, ///< the job has been paused
FINISHED_OK, ///< the job has finished successfully
FINISHED_ERROR, ///< the job has finished in error
FINISHED_CANCELLED ///< the job was cancelled