White space.
[dcpomatic.git] / src / lib / config.h
index 61c6bfa69f8fa1eb3d980244d8c63cdab25c3c56..0de71be512fb4447b95a6e776dcd2c2088356c47 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -26,7 +26,9 @@
 #define DCPOMATIC_CONFIG_H
 
 #include "isdcf_metadata.h"
+#include "kdm_filename_format.h"
 #include "types.h"
+#include <dcp/filename_format.h>
 #include <dcp/certificate_chain.h>
 #include <dcp/encrypted_kdm.h>
 #include <boost/shared_ptr.hpp>
@@ -266,6 +268,14 @@ public:
                return _show_hints_before_make_dcp;
        }
 
+       KDMFilenameFormat kdm_filename_format () const {
+               return _kdm_filename_format;
+       }
+
+       dcp::FilenameFormat dcp_filename_format () const {
+               return _dcp_filename_format;
+       }
+
        /** @param n New number of local encoding threads */
        void set_num_local_encoding_threads (int n) {
                maybe_set (_num_local_encoding_threads, n);
@@ -462,8 +472,7 @@ public:
        }
 #endif
 
-       void set_dkdms (std::vector<dcp::EncryptedKDM> dkdms)
-       {
+       void set_dkdms (std::vector<dcp::EncryptedKDM> dkdms) {
                _dkdms = dkdms;
                changed ();
        }
@@ -474,6 +483,14 @@ public:
                maybe_set (_show_hints_before_make_dcp, s);
        }
 
+       void set_kdm_filename_format (KDMFilenameFormat n) {
+               maybe_set (_kdm_filename_format, n);
+       }
+
+       void set_dcp_filename_format (dcp::FilenameFormat n) {
+               maybe_set (_dcp_filename_format, n);
+       }
+
        void clear_history () {
                _history.clear ();
                changed ();
@@ -585,6 +602,8 @@ private:
        std::vector<dcp::EncryptedKDM> _dkdms;
        boost::filesystem::path _cinemas_file;
        bool _show_hints_before_make_dcp;
+       KDMFilenameFormat _kdm_filename_format;
+       dcp::FilenameFormat _dcp_filename_format;
 
        /** Singleton instance, or 0 */
        static Config* _instance;