diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-12-05 00:25:23 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-12-06 22:39:39 +0100 |
| commit | b64b4c0a22d99e65aef97355f2360b939ba84a96 (patch) | |
| tree | a62d3d58312f59c76f1aff4a6d522f07b03face9 | |
| parent | acd02c3a12043978c7e5a4c0ef0949db9bad9798 (diff) | |
Allow notification from disk writer jobs (#2143).
| -rw-r--r-- | src/lib/copy_to_drive_job.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/copy_to_drive_job.h b/src/lib/copy_to_drive_job.h index 1a1a99f44..cb91195c2 100644 --- a/src/lib/copy_to_drive_job.h +++ b/src/lib/copy_to_drive_job.h @@ -27,9 +27,12 @@ class CopyToDriveJob : public Job public: CopyToDriveJob (boost::filesystem::path dcp, Drive drive, Nanomsg& nanomsg); - std::string name () const; - std::string json_name () const; - void run (); + std::string name () const override; + std::string json_name () const override; + void run () override; + bool enable_notify () const override { + return true; + } private: void count (boost::filesystem::path dir, uint64_t& total_bytes); |
