QKnxAlarmReaction Class

The QKnxAlarmReaction class is a fixed size datapoint type for storing the alarm reaction. 更多...

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

公共類型

枚舉類 鬧鍾 { NoAlarm, AlarmUp, AlarmDown }

公共函數

QKnxAlarmReaction (QKnxAlarmReaction::Alarm alarm )
QKnxAlarmReaction ()
QKnxAlarmReaction::Alarm alarm () const
bool setAlarm (QKnxAlarmReaction::Alarm alarm )

詳細描述

The range for the alarm value is from No alarm is used, 0 to Alarm position is down, 2 .

This is a fixed size datapoint type with the length of 2 bits.

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

成員類型文檔編製

enum class QKnxAlarmReaction:: 鬧鍾

This enum holds the alarm reaction stored in the datapoint type.

常量 描述
QKnxAlarmReaction::Alarm::NoAlarm 0x00 No alarm is used.
QKnxAlarmReaction::Alarm::AlarmUp 0x01 Alarm position is up.
QKnxAlarmReaction::Alarm::AlarmDown 0x02 Alarm position is down.

成員函數文檔編製

QKnxAlarmReaction:: QKnxAlarmReaction ( QKnxAlarmReaction::Alarm alarm )

Creates a fixed size datapoint type with the alarm reaction set to alarm .

QKnxAlarmReaction:: QKnxAlarmReaction ()

Creates a fixed size datapoint type with the alarm reaction set to NoAlarm .

QKnxAlarmReaction::Alarm QKnxAlarmReaction:: alarm () const

Returns the alarm reaction stored in the datapoint type.

另請參閱 setAlarm ().

bool QKnxAlarmReaction:: setAlarm ( QKnxAlarmReaction::Alarm alarm )

Sets the alarm reaction stored in the datapoint type to alarm .

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

另請參閱 alarm ().