Describes a certain ParamType. More...
Header: | #include <ParamType> |
ParamType() | |
ParamType(const ParamTypeId & id, const QString & name, const QVariant::Type type, const QVariant & defaultValue = QVariant()) | |
QList<QVariant> | allowedValues() const |
QVariant | defaultValue() const |
QString | displayName() const |
ParamTypeId | id() const |
int | index() const |
Types::InputType | inputType() const |
bool | isValid() const |
QPair<QVariant, QVariant> | limits() const |
QVariant | maxValue() const |
QVariant | minValue() const |
QString | name() const |
bool | readOnly() const |
void | setAllowedValues(const QList<QVariant> & allowedValues) |
void | setDefaultValue(const QVariant & defaultValue) |
void | setDisplayName(const QString & displayName) |
void | setIndex(const int & index) |
void | setInputType(const Types::InputType & inputType) |
void | setLimits(const QVariant & min, const QVariant & max) |
void | setMaxValue(const QVariant & maxValue) |
void | setMinValue(const QVariant & minValue) |
void | setName(const QString & name) |
void | setReadOnly(const bool & readOnly) |
void | setType(QVariant::Type type) |
void | setUnit(const Types::Unit & unit) |
QVariant::Type | type() const |
Types::Unit | unit() const |
QStringList | mandatoryTypeProperties() |
QStringList | typeProperties() |
Describes a certain ParamType.
See also Device, Param, and ParamDescriptor.
Constructs a new ParamType which is initially not valid.
See also isValid().
Constructs a ParamType object with the given id, name, type and defaultValue.
Returns the list of the allowed values of this ParamType.
See also setAllowedValues().
Returns the default value of this ParamType.
See also setDefaultValue().
Returns the displayName of this ParamType, to be shown to the user, translated.
See also setDisplayName().
Returns the ParamTypeId of this ParamType.
Returns the index of this ParamType. The index of an ParamType indicates the order in the corresponding Type.
See also setIndex().
Returns the input type of this ParamType.
See also setInputType().
Returns true if this ParamType is valid. A ParamType is valid, if the id, the name and the data type is set.
Returns the limits of this ParamType. limits(minValue, maxValue).
See also setLimits().
[static]
QStringList ParamType::mandatoryTypeProperties()Returns a list of mandatory JSON properties a ParamType JSON definition must have.
Returns the maximum value of this ParamType.
See also setMaxValue().
Returns the minimum value of this ParamType.
See also setMinValue().
Returns the name of this ParamType.
See also setName().
Returns false if this ParamType is writable by the user. By default a ParamType is always writable.
See also setReadOnly().
Sets the list of the allowed values of this ParamType to the given List of allowedValues.
See also allowedValues().
Sets the default value of this ParamType to the given defaultValue.
See also defaultValue().
Sets the displayName of this ParamType, to be shown to the user, translated.
See also displayName().
Set the index of this ParamType.
See also index().
Sets the input value of this ParamType to the given inputType.
See also inputType().
Sets the limits of this ParamType. limits(min, max).
See also limits().
Sets the maximum value of this ParamType to the given maxValue.
See also maxValue().
Sets the minimum value of this ParamType to the given minValue.
See also minValue().
Sets the name of this ParamType to the given name.
See also name().
Sets this ParamType readOnly. By default a ParamType is always writable.
See also readOnly().
Sets the type of this ParamType to the given type.
See also type().
Sets the unit of this ParamType to the given unit.
See also unit().
Returns the type of this ParamType.
See also setType().
[static]
QStringList ParamType::typeProperties()Returns a list of all valid JSON properties a ParamType JSON definition can have.
Returns the unit of this ParamType.
See also setUnit().