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

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

Member Function Documentation

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.

Action QKnxOnOffAction::action() const

Returns the action stored in the datapoint type.

See also setAction().

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