diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-09-25 00:47:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-09-25 00:47:49 +0100 |
| commit | 8414829693900c3d6362a4f15d677bb7e1462c3e (patch) | |
| tree | 6245b62b23fccdf1f0abcb3b42a0743179297b9f /src/lib/config.h | |
| parent | f1b928749ca8082ca5929d6042c5d1e6a89ef489 (diff) | |
Add KDM directory configuration in player.
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index 814f078f0..60e85c5f3 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -486,6 +486,10 @@ public: return _player_dcp_directory; } + boost::optional<boost::filesystem::path> player_kdm_directory () const { + return _player_kdm_directory; + } + /* SET (mostly) */ void set_master_encoding_threads (int n) { @@ -920,6 +924,18 @@ public: changed (PLAYER_DCP_DIRECTORY); } + void set_player_kdm_directory (boost::filesystem::path p) { + maybe_set (_player_kdm_directory, p); + } + + void unset_player_kdm_directory () { + if (!_player_kdm_directory) { + return; + } + _player_kdm_directory = boost::none; + changed (); + } + void changed (Property p = OTHER); boost::signals2::signal<void (Property)> Changed; /** Emitted if read() failed on an existing Config file. There is nothing @@ -1111,6 +1127,7 @@ private: for playback. */ boost::optional<boost::filesystem::path> _player_dcp_directory; + boost::optional<boost::filesystem::path> _player_kdm_directory; static int const _current_version; |
