X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcopy_to_drive_job.h;h=8616a05d22ffe3f6fe8be9e9f6f8e0067e736fa6;hb=182b9d2e2feb6545592868606aaf0f0146095481;hp=1a1a99f442f3a6707a074430cc65222fec3f2196;hpb=a1f7bf2d9e5610075fbd898cdf52f4f8373741f2;p=dcpomatic.git diff --git a/src/lib/copy_to_drive_job.h b/src/lib/copy_to_drive_job.h index 1a1a99f44..8616a05d2 100644 --- a/src/lib/copy_to_drive_job.h +++ b/src/lib/copy_to_drive_job.h @@ -25,16 +25,19 @@ class CopyToDriveJob : public Job { public: - CopyToDriveJob (boost::filesystem::path dcp, Drive drive, Nanomsg& nanomsg); + CopyToDriveJob (std::vector const& dcps, 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); void copy (boost::filesystem::path from, boost::filesystem::path to, uint64_t& total_remaining, uint64_t total); - boost::filesystem::path _dcp; + std::vector _dcps; Drive _drive; Nanomsg& _nanomsg; };