QKnxBuildingMode Class

The QKnxBuildingMode class is a datapoint type for storing the building mode. More...

Header: #include <QKnxBuildingMode>
qmake: QT += knx
Inherits: QKnx1Byte

Public Types

enum Mode { BuildingInUse, BuildingNotUsed, BuildingProtection, Invalid }

Public Functions

QKnxBuildingMode()
QKnxBuildingMode(QKnxBuildingMode::Mode mode)
QKnxBuildingMode::Mode mode() const
bool setMode(QKnxBuildingMode::Mode mode)

Additional Inherited Members

Detailed Description

The QKnxBuildingMode class is a datapoint type for storing the building mode.

This datapoint type stores whether the building is in use and whether it is protected.

The range for the Mode value is from Building in use, 0 to Building protection, 2.

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 QKnxBuildingMode::Mode

This enum holds the building mode stored in the datapoint type.

ConstantValueDescription
QKnxBuildingMode::BuildingInUse0x00The building is in use.
QKnxBuildingMode::BuildingNotUsed0x01The building is not in use.
QKnxBuildingMode::BuildingProtection0x02The building is protected.
QKnxBuildingMode::Invalid0xffThe value is invalid.

Member Function Documentation

QKnxBuildingMode::QKnxBuildingMode()

Creates a fixed size datapoint type with the building mode set to BuildingInUse.

QKnxBuildingMode::QKnxBuildingMode(QKnxBuildingMode::Mode mode)

Creates a fixed size datapoint type with the building mode set to mode.

QKnxBuildingMode::Mode QKnxBuildingMode::mode() const

Returns the building mode stored in the datapoint type.

See also setMode().

bool QKnxBuildingMode::setMode(QKnxBuildingMode::Mode mode)

Sets the building mode stored in the datapoint type to mode.

Returns true if the byte was set; otherwise returns false.

See also mode().

© 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.