QKnxSceneInfo Class

The QKnxSceneInfo class is a datapoint type for scene information. 更多...

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

公共类型

enum Info { Active, Inactive }

公共函数

QKnxSceneInfo (quint8 sceneNumber , QKnxSceneInfo::Info info )
QKnxSceneInfo ()
QKnxSceneInfo::Info info () const
quint8 sceneNumber () const
bool setInfo (QKnxSceneInfo::Info info )
bool setSceneNumber (quint8 number )
bool setValue (quint8 sceneNumber , QKnxSceneInfo::Info info )

重实现公共函数

virtual bool isValid () const override

详细描述

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

The scene information holds the activity state of the corresponding scene number. The range for scene numbers is from 0 to 63 .

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

成员类型文档编制

enum QKnxSceneInfo:: Info

This enum holds holds whether the scene is active.

常量 描述
QKnxSceneInfo::Active 0x00 The scene is active.
QKnxSceneInfo::Inactive 0x01 The scene is inactive.

成员函数文档编制

QKnxSceneInfo:: QKnxSceneInfo ( quint8 sceneNumber , QKnxSceneInfo::Info info )

Creates a fixed size datapoint type with the scene number set to sceneNumber and the scene information set to info .

另请参阅 Info .

QKnxSceneInfo:: QKnxSceneInfo ()

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

另请参阅 Info .

QKnxSceneInfo::Info QKnxSceneInfo:: info () const

Returns the scene information stored in the datapoint type.

另请参阅 setInfo ().

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

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

quint8 QKnxSceneInfo:: sceneNumber () const

Returns the scene number stored in the datapoint type.

另请参阅 setSceneNumber ().

bool QKnxSceneInfo:: setInfo ( QKnxSceneInfo::Info info )

Sets the scene information stored in the datapoint type to info .

返回 true if the value was set successfully.

另请参阅 info ().

bool QKnxSceneInfo:: 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 ().

bool QKnxSceneInfo:: setValue ( quint8 sceneNumber , QKnxSceneInfo::Info info )

Sets the scene number stored in the datapoint type to sceneNumber and the scene information to info .

返回 true if the value was set; otherwise returns false .