QKnxAlarmClassType Class

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 .

成员类型文档编制

enum class QKnxAlarmClassType:: Type

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.

成员函数文档编制

QKnxAlarmClassType:: QKnxAlarmClassType ( QKnxAlarmClassType::Type type )

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

QKnxAlarmClassType:: QKnxAlarmClassType ()

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

bool QKnxAlarmClassType:: setType ( QKnxAlarmClassType::Type type )

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

返回 true if the byte was set; otherwise returns false .

另请参阅 type ().

QKnxAlarmClassType::Type QKnxAlarmClassType:: type () const

Returns the alarm class type stored in the datapoint type.

另请参阅 setType ().