Allow configuration of KDM filename format.
[dcpomatic.git] / src / lib / cinema_kdms.h
index e7efcb985df599645c8022599a21ebcf99e4b264..a9ab4867ed9b203a6c95d47c6f48e5843cae4d17 100644 (file)
@@ -27,16 +27,22 @@ class Log;
 class CinemaKDMs
 {
 public:
-       void make_zip_file (std::string film_name, boost::filesystem::path zip_file) const;
+       void make_zip_file (boost::filesystem::path zip_file, KDMNameFormat name_format, NameFormat::Map name_values) const;
 
        static std::list<CinemaKDMs> collect (std::list<ScreenKDM> kdms);
-       static void write_zip_files (std::string film_name, std::list<CinemaKDMs> cinema_kdms, boost::filesystem::path directory);
+
+       static void write_zip_files (
+               std::list<CinemaKDMs> cinema_kdms,
+               boost::filesystem::path directory,
+               KDMNameFormat name_format,
+               NameFormat::Map name_values
+               );
+
        static void email (
-               std::string film_name,
-               std::string cpl_name,
                std::list<CinemaKDMs> cinema_kdms,
-               dcp::LocalTime from,
-               dcp::LocalTime to,
+               KDMNameFormat name_format,
+               NameFormat::Map name_values,
+               std::string cpl_name,
                boost::shared_ptr<Log> log
                );