kodi
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
CSkinSettings Class Reference
Inheritance diagram for CSkinSettings:
Inheritance graph
[legend]
Collaboration diagram for CSkinSettings:
Collaboration graph
[legend]

Public Member Functions

bool Load (const TiXmlNode *settings) override
 Load settings from the given XML node. More...
 
bool Save (TiXmlNode *settings) const override
 Save settings to the given XML node. More...
 
void Clear () override
 Clear any loaded setting values.
 
void MigrateSettings (const std::shared_ptr< ADDON::CSkinInfo > &skin)
 
int TranslateString (const std::string &setting)
 
const std::string & GetString (int setting) const
 
void SetString (int setting, const std::string &label)
 
int TranslateBool (const std::string &setting)
 
bool GetBool (int setting) const
 
void SetBool (int setting, bool set)
 
int GetInt (int setting) const
 Get the skin setting value as an integer value. More...
 
std::set< ADDON::CSkinSettingPtr > GetSettings () const
 
ADDON::CSkinSettingPtr GetSetting (const std::string &settingId)
 
std::shared_ptr< const ADDON::CSkinSettingGetSetting (const std::string &settingId) const
 
void Reset (const std::string &setting)
 
void Reset ()
 

Static Public Member Functions

static CSkinSettingsGetInstance ()
 

Protected Member Functions

 CSkinSettings (const CSkinSettings &)=delete
 
CSkinSettingsoperator= (CSkinSettings const &)=delete
 

Member Function Documentation

◆ GetInt()

int CSkinSettings::GetInt ( int  setting) const

Get the skin setting value as an integer value.

Parameters
setting- the setting id
Returns
the setting value as an integer, -1 if no conversion is possible

◆ Load()

bool CSkinSettings::Load ( const TiXmlNode *  settings)
overridevirtual

Load settings from the given XML node.

Parameters
settingsXML node containing setting values
Returns
True if loading the settings was successful, false otherwise.

Reimplemented from ISubSettings.

◆ Save()

bool CSkinSettings::Save ( TiXmlNode *  settings) const
overridevirtual

Save settings to the given XML node.

Parameters
settingsXML node in which the settings will be saved
Returns
True if saving the settings was successful, false otherwise.

Reimplemented from ISubSettings.


The documentation for this class was generated from the following files: