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 Type { SimpleAlarm, BasicAlarm, ExtendedAlarm, Invalid }

Public Functions

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

Additional Inherited Members

Detailed Description

The QKnxAlarmClassType class is a datapoint type for storing the alarm class type.

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 QKnxAlarmClassType::Type

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

ConstantValueDescription
QKnxAlarmClassType::SimpleAlarm0x01Simple alarm
QKnxAlarmClassType::BasicAlarm0x02Basic alarm
QKnxAlarmClassType::ExtendedAlarm0x03Extended alarm
QKnxAlarmClassType::Invalid0xffThe value is invalid.

Member Function Documentation

QKnxAlarmClassType::QKnxAlarmClassType()

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

QKnxAlarmClassType::QKnxAlarmClassType(QKnxAlarmClassType::Type type)

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

bool QKnxAlarmClassType::setType(QKnxAlarmClassType::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().

QKnxAlarmClassType::Type QKnxAlarmClassType::type() const

Returns the alarm class type stored in the datapoint type.

See also setType().

© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.