Rename Subtitle -> Text
[dcpomatic.git] / src / lib / send_kdm_email_job.h
index cb968301f8e667297a7929066fd604e4eb4d40d9..88de1e9fee6bf86f8e997152391f2829e2674369 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "job.h"
 #include <dcp/types.h>
+#include <dcp/name_format.h>
 #include <boost/filesystem.hpp>
 
 class Screen;
@@ -30,11 +31,11 @@ class SendKDMEmailJob : public Job
 {
 public:
        SendKDMEmailJob (
-               std::string film_name,
-               std::string cpl_name,
-               boost::posix_time::ptime from,
-               boost::posix_time::ptime to,
                std::list<CinemaKDMs> cinema_kdms,
+               dcp::NameFormat container_name_format,
+               dcp::NameFormat filename_format,
+               dcp::NameFormat::Map name_values,
+               std::string cpl_name,
                boost::shared_ptr<Log> log
                );
 
@@ -43,10 +44,10 @@ public:
        void run ();
 
 private:
-       std::string _film_name;
+       dcp::NameFormat _container_name_format;
+       dcp::NameFormat _filename_format;
+       dcp::NameFormat::Map _name_values;
        std::string _cpl_name;
-       boost::posix_time::ptime _from;
-       boost::posix_time::ptime _to;
        std::list<CinemaKDMs> _cinema_kdms;
        boost::shared_ptr<Log> _log;
 };