Allow configuration of KDM filename format.
[dcpomatic.git] / src / lib / screen_kdm.h
index 7ec8e9cd9bc7a3cde2bad367440bb3a703c7b497..2e015e63ea50b0a363b4576ea2365ca9eb73d4df 100644 (file)
@@ -21,6 +21,7 @@
 #ifndef DCPOMATIC_SCREEN_KDM_H
 #define DCPOMATIC_SCREEN_KDM_H
 
+#include "kdm_name_format.h"
 #include <dcp/encrypted_kdm.h>
 #include <boost/shared_ptr.hpp>
 
@@ -35,9 +36,10 @@ public:
                , kdm (k)
        {}
 
-       std::string filename (std::string film_name) const;
-
-       static void write_files (std::string film_name, std::list<ScreenKDM> screen_kdms, boost::filesystem::path directory);
+       static void write_files (
+               std::list<ScreenKDM> screen_kdms, boost::filesystem::path directory,
+               KDMNameFormat name_format, NameFormat::Map name_values
+               );
 
        boost::shared_ptr<Screen> screen;
        dcp::EncryptedKDM kdm;