QKnxSceneNumber Class

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

头: #include <QKnxSceneNumber>
qmake: QT += knx
继承: QKnxFixedSizeDatapointType

公共函数

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

重实现公共函数

virtual bool isValid () const override

详细描述

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 .

另请参阅 QKnxDatapointType , QKnxSceneControl , QKnxSceneInfo ,和 Qt KNX Datapoint Type Classes .

成员函数文档编制

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

重实现: QKnxDatapointType::isValid () const.

quint8 QKnxSceneNumber:: sceneNumber () const

Returns the scene number stored in the datapoint type.

另请参阅 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.

另请参阅 sceneNumber ().