|
| CAddonSettings (std::shared_ptr< const IAddon > addon) |
|
| ~CAddonSettings () override=default |
|
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=NULL) const override |
| Creates a new setting of the given custom setting type. More...
|
|
void | OnSettingAction (std::shared_ptr< const CSetting > setting) override |
| The given setting has been activated. More...
|
|
std::shared_ptr< const IAddon > | GetAddon () |
|
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) |
|
virtual | ~CSettingsBase () |
|
CSettingsManager * | GetSettingsManager () const |
|
virtual bool | IsInitialized () const |
| Returns whether the settings system has been initialized or not. More...
|
|
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. More...
|
|
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...
|
|
bool | FindIntInList (const std::string &id, int value) const |
| Search in a list of Ints for a given value. 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. 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...
|
|
virtual | ~ISettingCreator ()=default |
|
std::shared_ptr< ISettingControl > | CreateControl (const std::string &controlType) const override |
| Creates a new setting control of the given custom setting control type. More...
|
|
virtual | ~ISettingControlCreator ()=default |
|
virtual | ~ISettingCallback ()=default |
|
virtual bool | OnSettingChanging (std::shared_ptr< const CSetting > setting) |
| The value of the given setting is being changed. More...
|
|
virtual void | OnSettingChanged (std::shared_ptr< const CSetting > setting) |
| The value of the given setting has changed. More...
|
|
virtual bool | OnSettingUpdate (std::shared_ptr< CSetting > setting, const char *oldSettingId, const TiXmlNode *oldSettingNode) |
| The given setting needs to be updated. More...
|
|
virtual void | OnSettingPropertyChanged (std::shared_ptr< const CSetting > setting, const char *propertyName) |
| The given property of the given setting has changed. More...
|
|