summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-03-19 22:34:00 +0100
committerCarl Hetherington <cth@carlh.net>2022-03-19 22:34:23 +0100
commit7bc591abc86ed4742f21f45ca1d6151cb14bc100 (patch)
tree661f3e1c78e80be366f0caad720f10e835a9f573 /src/lib/config.h
parentc7d1f6e7988888811fdac36c465919f170a06c7a (diff)
Add config option for default KDM type.
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index ec152b969..2ad201c35 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -563,6 +563,11 @@ public:
return _email_kdms;
}
+ dcp::Formulation default_kdm_type () const {
+ return _default_kdm_type;
+ }
+
+
/* SET (mostly) */
void set_master_encoding_threads (int n) {
@@ -1079,6 +1084,10 @@ public:
maybe_set (_email_kdms, email);
}
+ void set_default_kdm_type (dcp::Formulation type) {
+ maybe_set (_default_kdm_type, type);
+ }
+
void changed (Property p = OTHER);
boost::signals2::signal<void (Property)> Changed;
/** Emitted if read() failed on an existing Config file. There is nothing
@@ -1297,6 +1306,7 @@ private:
bool _use_isdcf_name_by_default;
bool _write_kdms_to_disk;
bool _email_kdms;
+ dcp::Formulation _default_kdm_type;
static int const _current_version;