QKnxSceneNumber Class

The QKnxSceneNumber class is a datapoint type for a scene number. More...

Header: #include <QKnxSceneNumber>
qmake: QT += knx
Inherits: QKnxFixedSizeDatapointType

Public Functions

QKnxSceneNumber(quint8 number)
QKnxSceneNumber()
quint8 sceneNumber() const
bool setSceneNumber(quint8 number)

Reimplemented Public Functions

virtual bool isValid() const override

Detailed Description

This is a fixed size datapoint type with the length of 1 byte.

The minimum scene number is 0 and the maximum scene number is 63.

See also QKnxDatapointType, QKnxSceneControl, QKnxSceneInfo, and Qt KNX Datapoint Type Classes.

Member Function Documentation

QKnxSceneNumber::QKnxSceneNumber(quint8 number)

Creates a fixed size datapoint type with the scene number set to number.

QKnxSceneNumber::QKnxSceneNumber()

Creates a fixed size datapoint type with the scene number set to 0.

[override virtual] bool QKnxSceneNumber::isValid() const

Reimplements: QKnxDatapointType::isValid() const.

quint8 QKnxSceneNumber::sceneNumber() const

Returns the scene number stored in the datapoint type.

See also setSceneNumber().

bool QKnxSceneNumber::setSceneNumber(quint8 number)

Sets the scene number stored in the datapoint type to number.

If the value is outside the allowed range, returns false and does not set the value.

See also sceneNumber().

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