Allow multiple DCPs to be written to a disk (#1756).
[dcpomatic.git] / src / lib / copy_to_drive_job.h
index cb91195c26208fecf0b9ea0cd2c647252ea88752..8616a05d22ffe3f6fe8be9e9f6f8e0067e736fa6 100644 (file)
@@ -25,7 +25,7 @@
 class CopyToDriveJob : public Job
 {
 public:
-       CopyToDriveJob (boost::filesystem::path dcp, Drive drive, Nanomsg& nanomsg);
+       CopyToDriveJob (std::vector<boost::filesystem::path> const& dcps, Drive drive, Nanomsg& nanomsg);
 
        std::string name () const override;
        std::string json_name () const override;
@@ -37,7 +37,7 @@ public:
 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<boost::filesystem::path> _dcps;
        Drive _drive;
        Nanomsg& _nanomsg;
 };