|
|
| CAddonSettings (const std::shared_ptr< IAddon > &addon, AddonInstanceId instanceId) |
| |
| bool | Initialize () override |
| | Initializes the setting system with the generic settings definition and platform specific setting definitions. More...
|
| |
| bool | Load () override |
| | Loads the setting values. More...
|
| |
| bool | Save () override |
| | Saves the setting values. More...
|
| |
| 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. More...
|
| |
| void | OnSettingAction (const std::shared_ptr< const CSetting > &setting) override |
| | The given setting has been activated. More...
|
| |
|
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. More...
|
| |
| 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. More...
|
| |
|
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. More...
|
| |
|
virtual bool | IsLoaded () const |
| | Returns whether the settings system has been loaded or not.
|
| |
| virtual void | Unload () |
| | Unloads the previously loaded setting values. More...
|
| |
| virtual void | Uninitialize () |
| | Uninitializes the settings system. More...
|
| |
| void | RegisterCallback (ISettingCallback *callback, const std::set< std::string > &settingList) |
| | Registers the given ISettingCallback implementation for the given set of settings. More...
|
| |
| void | UnregisterCallback (ISettingCallback *callback) |
| | Unregisters the given ISettingCallback implementation. More...
|
| |
| std::shared_ptr< CSetting > | GetSetting (const std::string &id) const |
| | Gets the setting with the given identifier. More...
|
| |
| std::vector< std::shared_ptr< CSettingSection > > | GetSections () const |
| | Gets the full list of setting sections. More...
|
| |
| std::shared_ptr< CSettingSection > | GetSection (const std::string §ion) const |
| | Gets the setting section with the given identifier. More...
|
| |
| bool | GetBool (const std::string &id) const |
| | Gets the boolean value of the setting with the given identifier. More...
|
| |
| int | GetInt (const std::string &id) const |
| | Gets the integer value of the setting with the given identifier. More...
|
| |
| double | GetNumber (const std::string &id) const |
| | Gets the real number value of the setting with the given identifier. More...
|
| |
| std::string | GetString (const std::string &id) const |
| | Gets the string value of the setting with the given identifier. More...
|
| |
| std::vector< CVariant > | GetList (const std::string &id) const |
| | Gets the values of the list setting with the given identifier. More...
|
| |
| bool | SetBool (const std::string &id, bool value) |
| | Sets the boolean value of the setting with the given identifier. More...
|
| |
| bool | ToggleBool (const std::string &id) |
| | Toggles the boolean value of the setting with the given identifier. More...
|
| |
| bool | SetInt (const std::string &id, int value) |
| | Sets the integer value of the setting with the given identifier. More...
|
| |
| bool | SetNumber (const std::string &id, double value) |
| | Sets the real number value of the setting with the given identifier. More...
|
| |
| bool | SetString (const std::string &id, const std::string &value) |
| | Sets the string value of the setting with the given identifier. More...
|
| |
| bool | SetList (const std::string &id, const std::vector< CVariant > &value) |
| | Sets the values of the list setting with the given identifier. More...
|
| |
| bool | SetDefault (const std::string &id) |
| | Sets the value of the setting with the given identifier to its default. More...
|
| |
|
void | SetDefaults () |
| | Sets the value of all settings to their default.
|
| |
| virtual bool | OnSettingChanging (const std::shared_ptr< const CSetting > &setting) |
| | The value of the given setting is being changed. More...
|
| |
| virtual void | OnSettingChanged (const std::shared_ptr< const CSetting > &setting) |
| | The value of the given setting has changed. More...
|
| |
| virtual bool | OnSettingUpdate (const std::shared_ptr< CSetting > &setting, const char *oldSettingId, const TiXmlNode *oldSettingNode) |
| | The given setting needs to be updated. More...
|
| |
| virtual void | OnSettingPropertyChanged (const std::shared_ptr< const CSetting > &setting, const char *propertyName) |
| | The given property of the given setting has changed. More...
|
| |
|
|
void | InitializeSettingTypes () override |
| |
|
void | InitializeControls () override |
| |
|
void | InitializeConditions () override |
| |
|
bool | InitializeDefinitions () override |
| |
|
virtual void | InitializeOptionFillers () |
| |
|
virtual void | UninitializeOptionFillers () |
| |
|
virtual void | UninitializeConditions () |
| |
|
virtual void | InitializeVisibility () |
| |
|
virtual void | InitializeDefaults () |
| |
|
virtual void | InitializeISettingsHandlers () |
| |
|
virtual void | UninitializeISettingsHandlers () |
| |
|
virtual void | InitializeISubSettings () |
| |
|
virtual void | UninitializeISubSettings () |
| |
|
virtual void | InitializeISettingCallbacks () |
| |
|
virtual void | UninitializeISettingCallbacks () |
| |
|
bool | InitializeDefinitionsFromXml (const CXBMCTinyXML &xml) |
| |
| bool | LoadValuesFromXml (const CXBMCTinyXML &xml, bool &updated) |
| | Loads setting values from the given document in XML format. More...
|
| |
| bool | SaveValuesToXml (CXBMCTinyXML &xml) const |
| | Saves the setting values in XML format to the given document. More...
|
| |
| bool | LoadValuesFromXml (const TiXmlElement *root, bool &updated) |
| | Loads setting values from the given XML element. More...
|
| |
| bool | LoadHiddenValuesFromXml (const TiXmlElement *root) |
| | Loads hidden setting values from the given XML element. More...
|
| |