summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-29 09:57:58 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-29 09:57:58 +0100
commit736b3a068ba5a402b541d32f270669e6e1a4e5c4 (patch)
tree2185f71bde7283683161bd3a557f13b7a610e967 /src/lib/config.h
parent71be005818ddaa59cdcca2fa5fb3210d8ea7ae4f (diff)
Allow configuration of KDM filename format.
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index 61c6bfa69..d89adf491 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -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,6 +26,7 @@
#define DCPOMATIC_CONFIG_H
#include "isdcf_metadata.h"
+#include "kdm_name_format.h"
#include "types.h"
#include <dcp/certificate_chain.h>
#include <dcp/encrypted_kdm.h>
@@ -266,6 +267,10 @@ public:
return _show_hints_before_make_dcp;
}
+ KDMNameFormat kdm_filename_format () const {
+ return _kdm_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);
@@ -474,6 +479,10 @@ public:
maybe_set (_show_hints_before_make_dcp, s);
}
+ void set_kdm_filename_format (KDMNameFormat n) {
+ maybe_set (_kdm_filename_format, n);
+ }
+
void clear_history () {
_history.clear ();
changed ();
@@ -585,6 +594,7 @@ private:
std::vector<dcp::EncryptedKDM> _dkdms;
boost::filesystem::path _cinemas_file;
bool _show_hints_before_make_dcp;
+ KDMNameFormat _kdm_filename_format;
/** Singleton instance, or 0 */
static Config* _instance;