diff options
Diffstat (limited to 'src/lib/job.h')
| -rw-r--r-- | src/lib/job.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/job.h b/src/lib/job.h index b44fd1365..8b89fd0c3 100644 --- a/src/lib/job.h +++ b/src/lib/job.h @@ -50,6 +50,10 @@ public: virtual std::string json_name () const = 0; /** Run this job in the current thread. */ virtual void run () = 0; + /** @return true if it should be possible to notify when this job finishes */ + virtual bool enable_notify () const { + return false; + } void start (); bool pause_by_user (); |
