QKnxAlarmClassType Class
The QKnxAlarmClassType class is a datapoint type for storing the alarm class type. More...
Header: | #include <QKnxAlarmClassType> |
qmake: | QT += knx |
Inherits: | QKnx1Byte |
Public Types
enum class | Type { SimpleAlarm, BasicAlarm, ExtendedAlarm, Invalid } |
Public Functions
QKnxAlarmClassType(Type type) | |
QKnxAlarmClassType() | |
bool | setType(Type type) |
Type | type() const |
Detailed Description
The alarm Type can be simple, basic, or extended.
This is a fixed size datapoint type with the length of 1 byte.
See also QKnxDatapointType, QKnx1Byte, and Qt KNX Datapoint Type Classes.
Member Type Documentation
enum class QKnxAlarmClassType::Type
This enum holds the alarm class type stored in the datapoint type.
Constant | Value | Description |
---|---|---|
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. |
Member Function Documentation
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(Type type)
Sets the alarm class type stored in the datapoint type to type.
Returns true
if the byte was set; otherwise returns false
.
See also type().
Type QKnxAlarmClassType::type() const
Returns the alarm class type stored in the datapoint type.
See also setType().