QKnxLightApplicationMode Class

The QKnxLightApplicationMode class is a datapoint type for storing the light application mode. More...

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

Public Types

enum class Mode { Normal, PresenceSimulation, NightRound, Invalid }

Public Functions

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

Detailed Description

The range for the Mode value is from Normal, 0 to Night round, 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 class QKnxLightApplicationMode::Mode

This enum holds the light application mode stored in the datapoint type.

ConstantValueDescription
QKnxLightApplicationMode::Mode::Normal0x00Normal
QKnxLightApplicationMode::Mode::PresenceSimulation0x01Presence simulation
QKnxLightApplicationMode::Mode::NightRound0x02Night round
QKnxLightApplicationMode::Mode::Invalid0xffThe value is invalid.

Member Function Documentation

QKnxLightApplicationMode::QKnxLightApplicationMode(QKnxLightApplicationMode::Mode mode)

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

QKnxLightApplicationMode::QKnxLightApplicationMode()

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

QKnxLightApplicationMode::Mode QKnxLightApplicationMode::mode() const

Returns the mode stored in the datapoint type.

See also setMode().

bool QKnxLightApplicationMode::setMode(QKnxLightApplicationMode::Mode mode)

Sets the mode stored in the datapoint type to mode.

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

See also mode().

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