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 Action { Up, Down, UpDown, DownUp }

Public Functions

QKnxUpDownAction()
QKnxUpDownAction(QKnxUpDownAction::Action action)
QKnxUpDownAction::Action action() const
bool setAction(QKnxUpDownAction::Action action)

Additional Inherited Members

Detailed Description

The QKnxOnOffAction class is a fixed size datapoint type for storing the up/down action.

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

This enum holds the action stored in the datapoint type.

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

Member Function Documentation

QKnxUpDownAction::QKnxUpDownAction()

Creates a fixed size datapoint type with the action set to Up.

QKnxUpDownAction::QKnxUpDownAction(QKnxUpDownAction::Action action)

Creates a fixed size datapoint type with the action set to action.

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().

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