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 Action { Off, On, OffOn, OnOff }

Public Functions

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

Additional Inherited Members

Detailed Description

The QKnxOnOffAction class is a fixed size datapoint type for storing the on/off 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.

See also QKnxDatapointType, QKnxAlarmReaction, QKnxUpDownAction, and Qt KNX Datapoint Type Classes.

Member Type Documentation

enum QKnxOnOffAction::Action

This enum holds the action stored in the datapoint type.

ConstantValue
QKnxOnOffAction::Off0x00
QKnxOnOffAction::On0x01
QKnxOnOffAction::OffOn0x02
QKnxOnOffAction::OnOff0x03

Member Function Documentation

QKnxOnOffAction::QKnxOnOffAction()

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

QKnxOnOffAction::QKnxOnOffAction(QKnxOnOffAction::Action action)

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

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

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