QKnxOnOffAction Class

The QKnxOnOffAction class is a fixed size datapoint type for storing the on/off action. 更多...

頭: #include <QKnxOnOffAction>
qmake: QT += knx
繼承: QKnx2BitSet

公共類型

枚舉類 動作 { Off, On, OffOn, OnOff }

公共函數

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

另請參閱 QKnxDatapointType , QKnxAlarmReaction , QKnxUpDownAction ,和 Qt KNX Datapoint Type Classes .

成員類型文檔編製

enum class QKnxOnOffAction:: 動作

This enum holds the action stored in the datapoint type.

常量
QKnxOnOffAction::Action::Off 0x00
QKnxOnOffAction::Action::On 0x01
QKnxOnOffAction::Action::OffOn 0x02
QKnxOnOffAction::Action::OnOff 0x03

成員函數文檔編製

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

QKnxOnOffAction::Action QKnxOnOffAction:: action () const

Returns the action stored in the datapoint type.

另請參閱 setAction ().

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

Sets the action stored in the datapoint type to action .

返迴 true if the value was set; otherwise returns false .

另請參閱 action ().