The QKnxAlarmClassType class is a datapoint type for storing the alarm class type. 更多...
头: | #include <QKnxAlarmClassType> |
qmake: | QT += knx |
继承: | QKnx1Byte |
enum class | Type { SimpleAlarm, BasicAlarm, ExtendedAlarm, Invalid } |
QKnxAlarmClassType (QKnxAlarmClassType::Type type ) | |
QKnxAlarmClassType () | |
bool | setType (QKnxAlarmClassType::Type type ) |
QKnxAlarmClassType::Type | type () const |
The alarm Type can be simple, basic, or extended.
This is a fixed size datapoint type with the length of 1 byte.
另请参阅 QKnxDatapointType , QKnx1Byte ,和 Qt KNX Datapoint Type Classes .
This enum holds the alarm class type stored in the datapoint type.
常量 | 值 | 描述 |
---|---|---|
QKnxAlarmClassType::Type::SimpleAlarm
|
0x01
|
Simple alarm |
QKnxAlarmClassType::Type::BasicAlarm
|
0x02
|
Basic alarm |
QKnxAlarmClassType::Type::ExtendedAlarm
|
0x03
|
Extended alarm |
QKnxAlarmClassType::Type::Invalid
|
0xff
|
The value is invalid. |
Creates a fixed size datapoint type with the alarm class type set to type .
Creates a fixed size datapoint type with the alarm class type set to
SimpleAlarm
.
Sets the alarm class type stored in the datapoint type to type .
返回
true
if the byte was set; otherwise returns
false
.
另请参阅 type ().
Returns the alarm class type stored in the datapoint type.
另请参阅 setType ().