diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-07-29 15:54:09 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-07-29 15:54:09 +0100 |
| commit | fe9d2a290682021cd12a00bf21fa4db3012e2049 (patch) | |
| tree | 9db9c67b4fc29ecd30ab79c9bbf5b5af25ffda8a /src/lib/config.h | |
| parent | 7bdd09c815a8f4ddbb70c9fe3c55fa10b67bc641 (diff) | |
Basics of custom DCP filename components.
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index d89adf491..37a55a695 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -28,6 +28,7 @@ #include "isdcf_metadata.h" #include "kdm_name_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> @@ -271,6 +272,10 @@ public: 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); @@ -483,6 +488,10 @@ public: 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 (); @@ -595,6 +604,7 @@ private: boost::filesystem::path _cinemas_file; bool _show_hints_before_make_dcp; KDMNameFormat _kdm_filename_format; + dcp::FilenameFormat _dcp_filename_format; /** Singleton instance, or 0 */ static Config* _instance; |
