Try doing it after Pango::init().
[dcpomatic.git] / src / lib / send_kdm_email_job.h
index cb968301f8e667297a7929066fd604e4eb4d40d9..b4e007e3ba51cac9d576c115b90e4bac20245070 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,12 +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,
-               boost::shared_ptr<Log> log
+               dcp::NameFormat container_name_format,
+               dcp::NameFormat filename_format,
+               dcp::NameFormat::Map name_values,
+               std::string cpl_name
                );
 
        std::string name () const;
@@ -43,10 +43,9 @@ 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;
 };