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()
QKnxSceneNumber(quint8 number)
quint8 sceneNumber() const
bool setSceneNumber(quint8 number)

Reimplemented Public Functions

virtual bool isValid() const override

Additional Inherited Members

Detailed Description

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

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

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

QKnxSceneNumber::QKnxSceneNumber(quint8 number)

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

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

Reimplemented from QKnxDatapointType::isValid().

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

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