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(QKnxUpDownAction::Action action)
QKnxUpDownAction()
QKnxUpDownAction::Action action() const
bool setAction(QKnxUpDownAction::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.

ConstantValue
QKnxUpDownAction::Action::Up0x00
QKnxUpDownAction::Action::Down0x01
QKnxUpDownAction::Action::UpDown0x02
QKnxUpDownAction::Action::DownUp0x03

Member Function Documentation

QKnxUpDownAction::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.

QKnxUpDownAction::Action QKnxUpDownAction::action() const

Returns the action stored in the datapoint type.

See also setAction().

bool QKnxUpDownAction::setAction(QKnxUpDownAction::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().

© 2023 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.