Support download of KDMs from a web service in swaroop profile.
[dcpomatic.git] / src / lib / config.h
index 2ebfef84d5a9d8a7c196cb04ca57e7b8919ae979..378272ff0a84159cdc524870d6dfb246e0e165ae 100644 (file)
@@ -497,6 +497,10 @@ public:
        boost::optional<boost::filesystem::path> player_background_image () const {
                return _player_background_image;
        }
+
+       std::string kdm_server_url () const {
+               return _kdm_server_url;
+       }
 #endif
 
        /* SET (mostly) */
@@ -957,6 +961,10 @@ public:
                _player_background_image = boost::none;
                changed (PLAYER_BACKGROUND_IMAGE);
        }
+
+       void set_kdm_server_url (std::string s) {
+               maybe_set (_kdm_server_url, s);
+       }
 #endif
 
        void changed (Property p = OTHER);
@@ -1153,6 +1161,7 @@ private:
        boost::optional<boost::filesystem::path> _player_kdm_directory;
 #ifdef DCPOMATIC_VARIANT_SWAROOP
        boost::optional<boost::filesystem::path> _player_background_image;
+       std::string _kdm_server_url;
 #endif
 
        static int const _current_version;