Holds the parameters of a State of a Device. More...
Header: | #include <State> |
State(const StateTypeId & stateTypeId, const DeviceId & deviceId) | |
DeviceId | deviceId() const |
StateId | id() const |
void | setValue(const QVariant & value) |
StateTypeId | stateTypeId() const |
QVariant | value() const |
Holds the parameters of a State of a Device.
States hold the state values for devices. A State is associated to a Device by the State::deviceId() and represents the value of a state described in a StateType
See also StateType and StateDescriptor.
Constructs a State reflecting the StateType given by stateTypeId and associated with the Device given by deviceId
Returns the id of the StateType describing this State.
Returns the id of this State.
Set the state's value to value.
See also value().
Returns the id of the StateType describing this State.
Returns the state's value.
See also setValue().