summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-12-05 00:25:23 +0100
committerCarl Hetherington <cth@carlh.net>2021-12-06 22:42:11 +0100
commitd2f40438b9a6f396d385b91766193d9772f68d78 (patch)
treeeaa3fea1504a25a0af9918738b8311ebb4a2467b /src/lib
parent03f138ee007efd175c85d7c63f8deec567065d89 (diff)
Allow notification from disk writer jobs (#2143).
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/copy_to_drive_job.h9
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);