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 .
This enum holds holds whether the scene is active.
常量 | 值 | 描述 |
---|---|---|
QKnxSceneInfo::Active
|
0x00
|
The scene is active. |
QKnxSceneInfo::Inactive
|
0x01
|
The scene is inactive. |
Creates a fixed size datapoint type with the scene number set to sceneNumber and the scene information set to info .
另请参阅 Info .
Creates a fixed size datapoint type with the scene information set to
Active
.
另请参阅 Info .
Returns the scene information stored in the datapoint type.
另请参阅 setInfo ().
[override virtual]
bool
QKnxSceneInfo::
isValid
() const
重实现: QKnxDatapointType::isValid () const.
Returns the scene number stored in the datapoint type.
另请参阅 setSceneNumber ().
Sets the scene information stored in the datapoint type to info .
返回
true
if the value was set successfully.
另请参阅 info ().
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 ().
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
.