Fix KDM email start/end time substitution.
[dcpomatic.git] / src / lib / config.h
index 3a03084621d82f5c97cb6fc882c304cb5b581c3b..e18cd33121da70ea46a7429afd832bb17a8ce610 100644 (file)
@@ -39,6 +39,7 @@ class CinemaSoundProcessor;
 class DCPContentType;
 class Ratio;
 class Cinema;
+class Film;
 
 /** @class Config
  *  @brief A singleton class holding configuration.
@@ -271,8 +272,12 @@ public:
                return _kdm_filename_format;
        }
 
-       dcp::NameFormat dcp_filename_format () const {
-               return _dcp_filename_format;
+       dcp::NameFormat dcp_metadata_filename_format () const {
+               return _dcp_metadata_filename_format;
+       }
+
+       dcp::NameFormat dcp_asset_filename_format () const {
+               return _dcp_asset_filename_format;
        }
 
        /** @param n New number of local encoding threads */
@@ -486,8 +491,12 @@ public:
                maybe_set (_kdm_filename_format, n);
        }
 
-       void set_dcp_filename_format (dcp::NameFormat n) {
-               maybe_set (_dcp_filename_format, n);
+       void set_dcp_metadata_filename_format (dcp::NameFormat n) {
+               maybe_set (_dcp_metadata_filename_format, n);
+       }
+
+       void set_dcp_asset_filename_format (dcp::NameFormat n) {
+               maybe_set (_dcp_asset_filename_format, n);
        }
 
        void clear_history () {
@@ -506,6 +515,13 @@ public:
 
        void write () const;
 
+       void save_template (boost::shared_ptr<const Film> film, std::string name) const;
+       bool existing_template (std::string name) const;
+       std::list<std::string> templates () const;
+       boost::filesystem::path template_path (std::string name) const;
+       void rename_template (std::string old_name, std::string new_name) const;
+       void delete_template (std::string name) const;
+
        static Config* instance ();
        static void drop ();
        static void restore_defaults ();
@@ -602,7 +618,8 @@ private:
        boost::filesystem::path _cinemas_file;
        bool _show_hints_before_make_dcp;
        dcp::NameFormat _kdm_filename_format;
-       dcp::NameFormat _dcp_filename_format;
+       dcp::NameFormat _dcp_metadata_filename_format;
+       dcp::NameFormat _dcp_asset_filename_format;
 
        /** Singleton instance, or 0 */
        static Config* _instance;