summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-03-20 08:38:25 +0100
committerCarl Hetherington <cth@carlh.net>2021-03-22 09:56:55 +0100
commitd461d2685050842cb86875f5a5aa62505779b9ed (patch)
tree04dc973c71ad70c8a9ada6b216079b666aa360d4 /src/lib/config.h
parentaed5d7b60b78ed6485f617dde4db9edca853d525 (diff)
Add simpler language tag dialog (#1931).
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index 0e8fccb53..3371e48bf 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -33,6 +33,7 @@
#include <dcp/name_format.h>
#include <dcp/certificate_chain.h>
#include <dcp/encrypted_kdm.h>
+#include <dcp/language_tag.h>
#include <boost/signals2.hpp>
#include <boost/filesystem.hpp>
#include <vector>
@@ -540,6 +541,10 @@ public:
return _minimum_frame_size;
}
+ std::vector<dcp::LanguageTag> custom_languages () const {
+ return _custom_languages;
+ }
+
/* SET (mostly) */
void set_master_encoding_threads (int n) {
@@ -1055,6 +1060,8 @@ public:
maybe_set (_minimum_frame_size, size);
}
+ void add_custom_language (dcp::LanguageTag tag);
+
void changed (Property p = OTHER);
boost::signals2::signal<void (Property)> Changed;
/** Emitted if read() failed on an existing Config file. There is nothing
@@ -1269,6 +1276,7 @@ private:
boost::optional<boost::filesystem::path> _player_kdm_directory;
boost::optional<AudioMapping> _audio_mapping;
int _minimum_frame_size;
+ std::vector<dcp::LanguageTag> _custom_languages;
static int const _current_version;