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 Mode { Normal, PresenceSimulation, NightRound, Invalid }

Public Functions

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

Additional Inherited Members

Detailed Description

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

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

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

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

Member Function Documentation

QKnxLightApplicationMode::QKnxLightApplicationMode()

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

QKnxLightApplicationMode::QKnxLightApplicationMode(QKnxLightApplicationMode::Mode mode)

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

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().

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