X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fconfig.h;h=bcc46f8fa4535e26e7e84d60d4622d19c99247e9;hb=f76453d0b78e5b71abbd9b4fcfda9e8eb0b61ad0;hp=60e85c5f362dc1bfa2c0d8983458c758290342ef;hpb=8414829693900c3d6362a4f15d677bb7e1462c3e;p=dcpomatic.git diff --git a/src/lib/config.h b/src/lib/config.h index 60e85c5f3..bcc46f8fa 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -77,6 +77,10 @@ public: SOUND_OUTPUT, INTERFACE_COMPLEXITY, PLAYER_DCP_DIRECTORY, +#ifdef DCPOMATIC_VARIANT_SWAROOP + PLAYER_BACKGROUND_IMAGE, + PLAYER_WATERMARK, +#endif OTHER }; @@ -490,6 +494,20 @@ public: return _player_kdm_directory; } +#ifdef DCPOMATIC_VARIANT_SWAROOP + boost::optional player_background_image () const { + return _player_background_image; + } + + std::string kdm_server_url () const { + return _kdm_server_url; + } + + boost::optional player_watermark () const { + return _player_watermark; + } +#endif + /* SET (mostly) */ void set_master_encoding_threads (int n) { @@ -936,6 +954,36 @@ public: changed (); } +#ifdef DCPOMATIC_VARIANT_SWAROOP + void set_player_background_image (boost::filesystem::path p) { + maybe_set (_player_background_image, p, PLAYER_BACKGROUND_IMAGE); + } + + void unset_player_background_image () { + if (!_player_background_image) { + return; + } + _player_background_image = boost::none; + changed (PLAYER_BACKGROUND_IMAGE); + } + + void set_kdm_server_url (std::string s) { + maybe_set (_kdm_server_url, s); + } + + void set_player_watermark (boost::filesystem::path p) { + maybe_set (_player_watermark, p, PLAYER_WATERMARK); + } + + void unset_player_watermark () { + if (!_player_watermark) { + return; + } + _player_watermark = boost::none; + changed (PLAYER_WATERMARK); + } +#endif + void changed (Property p = OTHER); boost::signals2::signal Changed; /** Emitted if read() failed on an existing Config file. There is nothing @@ -1128,6 +1176,11 @@ private: */ boost::optional _player_dcp_directory; boost::optional _player_kdm_directory; +#ifdef DCPOMATIC_VARIANT_SWAROOP + boost::optional _player_background_image; + std::string _kdm_server_url; + boost::optional _player_watermark; +#endif static int const _current_version;