To inform addon about changed settings values.
#include <kodi/AddonBase.h>
enum myEnumValue
{
valueA,
valueB,
valueC
};
std::string m_myStringValue;
int m_myIntegerValue;
bool m_myBooleanValue;
float m_myFloatingPointValue;
myEnumValue m_myEnumValue;
{
if (settingName == "my_string_value")
else if (settingName == "my_integer_value")
m_myIntegerValue = settingValue.
GetInt();
else if (settingName == "my_boolean_value")
else if (settingName == "my_float_value")
m_myFloatingPointValue = settingValue.
GetFloat();
else if (settingName == "my_enum_value")
m_myEnumValue = settingValue.
GetEnum<myEnumValue>();
}
Definition AddonBase.h:437
ADDON_STATUS
Definition addon_base.h:138
int GetInt() const
To get settings value as integer.
Definition AddonBase.h:463
bool GetBoolean() const
To get settings value as boolean.
Definition AddonBase.h:469
const std::string & GetString() const
To get settings value as string.
Definition AddonBase.h:460
float GetFloat() const
To get settings value as floating point.
Definition AddonBase.h:472
enumType GetEnum() const
To get settings value as enum.
Definition AddonBase.h:477