Class sh::configuration::ConfigurationManager::ConfigurationValueImplΒΆ
-
class
sh::configuration::ConfigurationManager
::
ConfigurationValueImpl
: public sh::configuration::ConfigurationValue Public Functions
-
ConfigurationValueImpl
(QString name, QVariant deflt, QString desc, QString longdesc, ConfigurationCategory cat, ConfigurationValueType *valuetype, QString changehint, ConfigurationManager *mgr)
-
void
setConfigValue
(QVariant value) override Sets a new configuration value.
-
QVariant
getConfigValueVariant
() override Returns the current value of this instance as variant.
-
bool
mayChange
() override Returns if changes are allowed.
-
int
getConfigValueInt
() Returns the current value of this instance as integer.
-
double
getConfigValueFloat
() Returns the current value of this instance as floating point number.
-
bool
getConfigValueBool
() Returns the current value of this instance as boolean.
-
QString
getConfigValueString
() Returns the current value of this instance as string.
-
void
consumeValue
(QObject *o, std::function<void()> h) Adds a consumer function, triggered directly and whenever the value changes.
- Parameters
o
: For lifetime monitoring.
-
QString
name
() Returns the internal name of this configuration.
-
QString
description
() Returns the short description of this configuration.
-
QString
longDescription
() Returns the long description of this configuration.
-
ConfigurationCategory
category
() Returns the category of this configuration (mainly for UI structuring).
-
QString
changeHint
() Returns the change hint text of this configuration.
-
QVariant
defaultValue
() Returns the default value of this configuration.
-
ConfigurationValueType *
valueType
() Returns the value type of this configuration.
Public Static Functions
-
ConfigurationValueType *
valueTypeString
() Returns the string type for configuration values.
-
ConfigurationValueType *
valueTypeInteger
() Returns the integer type for configuration values.
-
ConfigurationValueType *
valueTypeFloat
() Returns the floating point number type for configuration values.
-
ConfigurationValueType *
valueTypeBoolean
() Returns the boolean type for configuration values.
-
ConfigurationValueType *
valueTypeLocalFilePath
() Returns the filepath type for configuration values.
Private Members
-
ConfigurationManager *
mgr
-