The QKnxOnOffAction class is a fixed size datapoint type for storing the on/off action. 更多...
头: | #include <QKnxOnOffAction> |
qmake: | QT += knx |
继承: | QKnx2BitSet |
enum class | 动作 { Off, On, OffOn, OnOff } |
QKnxOnOffAction (QKnxOnOffAction::Action action ) | |
QKnxOnOffAction () | |
QKnxOnOffAction::Action | action () const |
bool | setAction (QKnxOnOffAction::Action action ) |
The range for the
action
value is from
Minimum Off, 0
to
Maximum On/Off, 3
.
This is a fixed size datapoint type with the length of 2 bits.
另请参阅 QKnxDatapointType , QKnxAlarmReaction , QKnxUpDownAction ,和 Qt KNX Datapoint Type Classes .
This enum holds the action stored in the datapoint type.
常量 | 值 |
---|---|
QKnxOnOffAction::Action::Off
|
0x00
|
QKnxOnOffAction::Action::On
|
0x01
|
QKnxOnOffAction::Action::OffOn
|
0x02
|
QKnxOnOffAction::Action::OnOff
|
0x03
|
Creates a fixed size datapoint type with the action set to action .
Creates a fixed size datapoint type with the action set to
Off
.
Returns the action stored in the datapoint type.
另请参阅 setAction ().
Sets the action stored in the datapoint type to action .
返回
true
if the value was set; otherwise returns
false
.
另请参阅 action ().