QKnxUpDownAction Class
The QKnxOnOffAction class is a fixed size datapoint type for storing the up/down action. More...
| Header: | #include <QKnxUpDownAction> |
| qmake: | QT += knx |
| Inherits: | QKnx2BitSet |
Public Types
| enum class | Action { Up, Down, UpDown, DownUp } |
Public Functions
| QKnxUpDownAction(Action action) | |
| QKnxUpDownAction() | |
| Action | action() const |
| bool | setAction(Action action) |
Detailed Description
The range for the action value is from Minimum Up, 0 to Maximum Down/Up, 3.
This is a fixed size datapoint type with the length of 2 bits.
See also QKnxDatapointType, QKnxAlarmReaction, QKnxOnOffAction, and Qt KNX Datapoint Type Classes.
Member Type Documentation
enum class QKnxUpDownAction::Action
This enum holds the action stored in the datapoint type.
| Constant | Value |
|---|---|
QKnxUpDownAction::Action::Up | 0x00 |
QKnxUpDownAction::Action::Down | 0x01 |
QKnxUpDownAction::Action::UpDown | 0x02 |
QKnxUpDownAction::Action::DownUp | 0x03 |
Member Function Documentation
QKnxUpDownAction::QKnxUpDownAction(Action action)
Creates a fixed size datapoint type with the action set to action.
QKnxUpDownAction::QKnxUpDownAction()
Creates a fixed size datapoint type with the action set to Up.
Action QKnxUpDownAction::action() const
Returns the action stored in the datapoint type.
See also setAction().
bool QKnxUpDownAction::setAction(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().