|
| | CAddonSettings (const std::shared_ptr< IAddon > &addon, AddonInstanceId instanceId) |
| |
| | ~CAddonSettings () override=default |
| |
| bool | Initialize () override |
| | Initializes the setting system with the generic settings definition and platform specific setting definitions.
|
| |
| bool | Load () override |
| | Loads the setting values.
|
| |
| bool | Save () override |
| | Saves the setting values.
|
| |
| std::shared_ptr< CSetting > | CreateSetting (const std::string &settingType, const std::string &settingId, CSettingsManager *settingsManager=nullptr) const override |
| | Creates a new setting of the given custom setting type.
|
| |
| void | OnSettingAction (const std::shared_ptr< const CSetting > &setting) override |
| | The given setting has been activated.
|
| |
| const std::string & | GetAddonId () const |
| |
| bool | Initialize (const CXBMCTinyXML &doc, bool allowEmpty=false) |
| |
| bool | Load (const CXBMCTinyXML &doc) |
| |
| bool | Save (CXBMCTinyXML &doc) const |
| |
| bool | HasSettings () const |
| |
| std::string | GetSettingLabel (int label) const |
| |
| std::shared_ptr< CSetting > | AddSetting (const std::string &settingId, bool value) |
| |
| std::shared_ptr< CSetting > | AddSetting (const std::string &settingId, int value) |
| |
| std::shared_ptr< CSetting > | AddSetting (const std::string &settingId, double value) |
| |
| std::shared_ptr< CSetting > | AddSetting (const std::string &settingId, const std::string &value) |
| |
| std::shared_ptr< ISettingControl > | CreateControl (const std::string &controlType) const override |
| | Creates a new setting control of the given custom setting control type.
|
| |
| virtual | ~ISettingControlCreator ()=default |
| |
| std::shared_ptr< CSetting > | CreateSetting (const std::string &settingType, const std::string &settingId, CSettingsManager *settingsManager=nullptr) const override |
| | Creates a new setting of the given custom setting type.
|
| |
| virtual | ~ISettingCreator ()=default |
| |
| virtual | ~CSettingsBase () |
| |
| CSettingsManager * | GetSettingsManager () const |
| |
| virtual bool | IsInitialized () const |
| | Returns whether the settings system has been initialized or not.
|
| |
| virtual void | SetLoaded () |
| | Tells the settings system that all setting values have been loaded.
|
| |
| virtual bool | IsLoaded () const |
| | Returns whether the settings system has been loaded or not.
|
| |
| virtual void | Unload () |
| | Unloads the previously loaded setting values.
|
| |
| virtual void | Uninitialize () |
| | Uninitializes the settings system.
|
| |
| void | RegisterCallback (ISettingCallback *callback, const SettingsContainer &settingList) |
| | Registers the given ISettingCallback implementation for the given set of settings.
|
| |
| void | UnregisterCallback (ISettingCallback *callback) |
| | Unregisters the given ISettingCallback implementation.
|
| |
| std::shared_ptr< CSetting > | GetSetting (const std::string &id) const |
| | Gets the setting with the given identifier.
|
| |
| std::vector< std::shared_ptr< CSettingSection > > | GetSections () const |
| | Gets the full list of setting sections.
|
| |
| std::shared_ptr< CSettingSection > | GetSection (const std::string §ion) const |
| | Gets the setting section with the given identifier.
|
| |
| bool | GetBool (const std::string &id) const |
| | Gets the boolean value of the setting with the given identifier.
|
| |
| int | GetInt (const std::string &id) const |
| | Gets the integer value of the setting with the given identifier.
|
| |
| double | GetNumber (const std::string &id) const |
| | Gets the real number value of the setting with the given identifier.
|
| |
| std::string | GetString (const std::string &id) const |
| | Gets the string value of the setting with the given identifier.
|
| |
| std::vector< CVariant > | GetList (const std::string &id) const |
| | Gets the values of the list setting with the given identifier.
|
| |
| bool | SetBool (const std::string &id, bool value) |
| | Sets the boolean value of the setting with the given identifier.
|
| |
| bool | ToggleBool (const std::string &id) |
| | Toggles the boolean value of the setting with the given identifier.
|
| |
| bool | SetInt (const std::string &id, int value) |
| | Sets the integer value of the setting with the given identifier.
|
| |
| bool | SetNumber (const std::string &id, double value) |
| | Sets the real number value of the setting with the given identifier.
|
| |
| bool | SetString (const std::string &id, const std::string &value) |
| | Sets the string value of the setting with the given identifier.
|
| |
| bool | SetList (const std::string &id, const std::vector< CVariant > &value) const |
| | Sets the values of the list setting with the given identifier.
|
| |
| bool | SetDefault (const std::string &id) |
| | Sets the value of the setting with the given identifier to its default.
|
| |
| void | SetDefaults () |
| | Sets the value of all settings to their default.
|
| |
| virtual | ~ISettingCallback ()=default |
| |
| virtual bool | OnSettingChanging (const std::shared_ptr< const CSetting > &setting) |
| | The value of the given setting is being changed.
|
| |
| virtual void | OnSettingChanged (const std::shared_ptr< const CSetting > &setting) |
| | The value of the given setting has changed.
|
| |
| virtual bool | OnSettingUpdate (const std::shared_ptr< CSetting > &setting, const char *oldSettingId, const TiXmlNode *oldSettingNode) |
| | The given setting needs to be updated.
|
| |
| virtual void | OnSettingPropertyChanged (const std::shared_ptr< const CSetting > &setting, const char *propertyName) |
| | The given property of the given setting has changed.
|
| |