|
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
Integer setting implementation. More...
#include <Setting.h>
Public Member Functions | |
| CSettingInt (const std::string &id, CSettingsManager *settingsManager=nullptr) | |
| CSettingInt (const std::string &id, const CSettingInt &setting) | |
| CSettingInt (const std::string &id, int label, int value, CSettingsManager *settingsManager=nullptr) | |
| CSettingInt (const std::string &id, int label, int value, int minimum, int step, int maximum, CSettingsManager *settingsManager=nullptr) | |
| CSettingInt (const std::string &id, int label, int value, const TranslatableIntegerSettingOptions &options, CSettingsManager *settingsManager=nullptr) | |
| ~CSettingInt () override=default | |
| std::shared_ptr< CSetting > | Clone (const std::string &id) const override |
| bool | Deserialize (const TiXmlNode *node, bool update=false) override |
| Deserializes the given XML node into the properties of the setting object. More... | |
| bool | FromString (const std::string &value) override |
| std::string | ToString () const override |
| bool | Equals (const std::string &value) const override |
| bool | CheckValidity (const std::string &value) const override |
| virtual bool | CheckValidity (int value) const |
| void | Reset () override |
| int | GetValue () const |
| bool | SetValue (int value) |
| int | GetDefault () const |
| void | SetDefault (int value) |
| int | GetMinimum () const |
| void | SetMinimum (int minimum) |
| int | GetStep () const |
| void | SetStep (int step) |
| int | GetMaximum () const |
| void | SetMaximum (int maximum) |
| SettingOptionsType | GetOptionsType () const |
| const TranslatableIntegerSettingOptions & | GetTranslatableOptions () const |
| void | SetTranslatableOptions (const TranslatableIntegerSettingOptions &options) |
| const IntegerSettingOptions & | GetOptions () const |
| void | SetOptions (const IntegerSettingOptions &options) |
| const std::string & | GetOptionsFillerName () const |
| void | SetOptionsFillerName (const std::string &optionsFillerName, void *data=nullptr) |
| void | SetOptionsFiller (IntegerSettingOptionsFiller optionsFiller, void *data=nullptr) |
| IntegerSettingOptions | UpdateDynamicOptions () |
Public Member Functions inherited from CTraitedSetting< int, SettingType::Integer > | |
| SettingType | GetType () const override |
Public Member Functions inherited from CSetting | |
| CSetting (const std::string &id, CSettingsManager *settingsManager=nullptr) | |
| CSetting (const std::string &id, const CSetting &setting) | |
| ~CSetting () override=default | |
| bool | IsEnabled () const |
| void | SetEnabled (bool enabled) |
| bool | IsDefault () const |
| const std::string & | GetParent () const |
| void | SetParent (const std::string &parentSetting) |
| SettingLevel | GetLevel () const |
| void | SetLevel (SettingLevel level) |
| std::shared_ptr< const ISettingControl > | GetControl () const |
| std::shared_ptr< ISettingControl > | GetControl () |
| void | SetControl (std::shared_ptr< ISettingControl > control) |
| const SettingDependencies & | GetDependencies () const |
| void | SetDependencies (const SettingDependencies &dependencies) |
| const std::set< CSettingUpdate > & | GetUpdates () const |
| void | SetCallback (ISettingCallback *callback) |
| bool | IsVisible () const override |
| Whether the setting object is visible or hidden. More... | |
| void | OnSettingAction (std::shared_ptr< const CSetting > setting) override |
| The given setting has been activated. More... | |
Public Member Functions inherited from ISetting | |
| ISetting (const std::string &id, CSettingsManager *settingsManager=nullptr) | |
| Creates a new setting object with the given identifier. More... | |
| virtual | ~ISetting ()=default |
| const std::string & | GetId () const |
| Gets the identifier of the setting object. More... | |
| virtual void | SetVisible (bool visible) |
| Sets the visibility state of the setting object. More... | |
| int | GetLabel () const |
| Gets the localizeable label ID of the setting group. More... | |
| void | SetLabel (int label) |
| Sets the localizeable label ID of the setting group. More... | |
| int | GetHelp () const |
| Gets the localizeable help ID of the setting group. More... | |
| void | SetHelp (int help) |
| Sets the localizeable help ID of the setting group. More... | |
| virtual bool | MeetsRequirements () const |
| Whether the setting object meets all necessary requirements. More... | |
| virtual void | CheckRequirements () |
| Checks if the setting object meets all necessary requirements. More... | |
| virtual void | SetRequirementsMet (bool requirementsMet) |
| Sets whether the setting object meets all necessary requirements. More... | |
Additional Inherited Members | |
Public Types inherited from CTraitedSetting< int, SettingType::Integer > | |
| typedef int | Value |
Static Public Member Functions inherited from CTraitedSetting< int, SettingType::Integer > | |
| static SettingType | Type () |
Static Public Member Functions inherited from ISetting | |
| static bool | DeserializeIdentification (const TiXmlNode *node, std::string &identification) |
| Deserializes the given XML node to retrieve a setting object's identifier. More... | |
Protected Member Functions inherited from CTraitedSetting< int, SettingType::Integer > | |
| CTraitedSetting (const std::string &id, CSettingsManager *settingsManager=nullptr) | |
| CTraitedSetting (const std::string &id, const CTraitedSetting &setting) | |
| ~CTraitedSetting () override=default | |
Protected Member Functions inherited from CSetting | |
| bool | OnSettingChanging (std::shared_ptr< const CSetting > setting) override |
| The value of the given setting is being changed. More... | |
| void | OnSettingChanged (std::shared_ptr< const CSetting > setting) override |
| The value of the given setting has changed. More... | |
| bool | OnSettingUpdate (std::shared_ptr< CSetting > setting, const char *oldSettingId, const TiXmlNode *oldSettingNode) override |
| The given setting needs to be updated. More... | |
| void | OnSettingPropertyChanged (std::shared_ptr< const CSetting > setting, const char *propertyName) override |
| The given property of the given setting has changed. More... | |
| void | Copy (const CSetting &setting) |
| template<class TSetting > | |
| std::shared_ptr< TSetting > | shared_from_base () |
Protected Member Functions inherited from ISettingCallback | |
| virtual | ~ISettingCallback ()=default |
Protected Attributes inherited from CSetting | |
| ISettingCallback * | m_callback = nullptr |
| bool | m_enabled = true |
| std::string | m_parentSetting |
| SettingLevel | m_level = SettingLevel::Standard |
| std::shared_ptr< ISettingControl > | m_control |
| SettingDependencies | m_dependencies |
| std::set< CSettingUpdate > | m_updates |
| bool | m_changed = false |
| CSharedSection | m_critical |
Protected Attributes inherited from ISetting | |
| std::string | m_id |
| CSettingsManager * | m_settingsManager |
Integer setting implementation.
| CSettingInt::CSettingInt | ( | const std::string & | id, |
| CSettingsManager * | settingsManager = nullptr |
||
| ) |
| CSettingInt::CSettingInt | ( | const std::string & | id, |
| const CSettingInt & | setting | ||
| ) |
| CSettingInt::CSettingInt | ( | const std::string & | id, |
| int | label, | ||
| int | value, | ||
| CSettingsManager * | settingsManager = nullptr |
||
| ) |
| CSettingInt::CSettingInt | ( | const std::string & | id, |
| int | label, | ||
| int | value, | ||
| int | minimum, | ||
| int | step, | ||
| int | maximum, | ||
| CSettingsManager * | settingsManager = nullptr |
||
| ) |
| CSettingInt::CSettingInt | ( | const std::string & | id, |
| int | label, | ||
| int | value, | ||
| const TranslatableIntegerSettingOptions & | options, | ||
| CSettingsManager * | settingsManager = nullptr |
||
| ) |
|
overridedefault |
|
overridevirtual |
Implements CSetting.
|
virtual |
|
overridevirtual |
Implements CSetting.
|
overridevirtual |
Deserializes the given XML node into the properties of the setting object.
If the update parameter is true, the checks for mandatory properties are skipped and values are only updated.
| node | XML node containing the properties of the setting object |
| update | Whether to perform checks for mandatory properties or not |
Reimplemented from CSetting.
|
overridevirtual |
Implements CSetting.
|
overridevirtual |
Implements CSetting.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| SettingOptionsType CSettingInt::GetOptionsType | ( | ) | const |
|
inline |
|
inline |
|
inline |
| void CSettingInt::SetDefault | ( | int | value | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool CSettingInt::SetValue | ( | int | value | ) |
|
overridevirtual |
Implements CSetting.
| IntegerSettingOptions CSettingInt::UpdateDynamicOptions | ( | ) |