QKnxOnOffAction Class
The QKnxOnOffAction class is a fixed size datapoint type for storing the on/off action. More...
Header: | #include <QKnxOnOffAction> |
qmake: | QT += knx |
Inherits: | QKnx2BitSet |
Public Types
enum class | Action { Off, On, OffOn, OnOff } |
Public Functions
QKnxOnOffAction(QKnxOnOffAction::Action action) | |
QKnxOnOffAction() | |
QKnxOnOffAction::Action | action() const |
bool | setAction(QKnxOnOffAction::Action action) |
Detailed Description
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.
See also QKnxDatapointType, QKnxAlarmReaction, QKnxUpDownAction, and Qt KNX Datapoint Type Classes.
Member Type Documentation
enum class QKnxOnOffAction::Action
This enum holds the action stored in the datapoint type.
Constant | Value |
---|---|
QKnxOnOffAction::Action::Off | 0x00 |
QKnxOnOffAction::Action::On | 0x01 |
QKnxOnOffAction::Action::OffOn | 0x02 |
QKnxOnOffAction::Action::OnOff | 0x03 |
Member Function Documentation
QKnxOnOffAction::QKnxOnOffAction(QKnxOnOffAction::Action action)
Creates a fixed size datapoint type with the action set to action.
QKnxOnOffAction::QKnxOnOffAction()
Creates a fixed size datapoint type with the action set to Off
.
QKnxOnOffAction::Action QKnxOnOffAction::action() const
Returns the action stored in the datapoint type.
See also setAction().
bool QKnxOnOffAction::setAction(QKnxOnOffAction::Action action)
Sets the action stored in the datapoint type to action.
Returns true
if the value was set; otherwise returns false
.
See also action().
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.