diff options
Diffstat (limited to 'Swift/Controllers/Settings/SettingsProvider.h')
-rw-r--r-- | Swift/Controllers/Settings/SettingsProvider.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/Controllers/Settings/SettingsProvider.h b/Swift/Controllers/Settings/SettingsProvider.h index e884add..458653b 100644 --- a/Swift/Controllers/Settings/SettingsProvider.h +++ b/Swift/Controllers/Settings/SettingsProvider.h @@ -49,18 +49,19 @@ class SettingsProvider { virtual void createProfile(const std::string& profile) = 0; virtual void removeProfile(const std::string& profile) = 0; /** A final setting is one that this settings provider says may not be overriden by lower priority profiles. * e.g. An Administrator-set configuration to disallow saving user passwords could not be overridden by the user. */ template<typename T> bool getIsSettingFinal(const Setting<T>& setting) { return getIsSettingFinal(setting.getKey()); } + virtual bool hasSetting(const std::string& key) = 0; friend class SettingsProviderHierachy; protected: virtual bool getIsSettingFinal(const std::string& settingPath) = 0; public: /** * Emitted when a setting is changed. */ |