The QKnxDeviceControl class is a datapoint type for device control. 更多...
| 頭: | #include <QKnxDeviceControl> |
| qmake: | QT += knx |
| 繼承: | QKnx8BitSet |
| enum | Attribute { UserStopped, OwnIA, VerifyMode, SafeState } |
| flags | 屬性 |
| QKnxDeviceControl (QKnxDeviceControl::Attributes 屬性 ) | |
| QKnxDeviceControl () | |
| bool | isSet (QKnxDeviceControl::Attribute attribute ) const |
| bool | removeAttribute (QKnxDeviceControl::Attribute attribute ) |
| bool | setAttribute (QKnxDeviceControl::Attribute attribute ) |
| bool | setValue (QKnxDeviceControl::Attributes 屬性 ) |
| QKnxDeviceControl::Attributes | value () const |
This is a fixed size datapoint type with the length of 1 byte.
The possible values are combinations of the attributes specified by QKnxGeneralStatus::Attribute .
另請參閱 QKnx8BitSet , QKnxDatapointType ,和 Qt KNX Datapoint Type Classes .
This enum type holds the control attributes.
| 常量 | 值 |
|---|---|
QKnxDeviceControl::UserStopped
|
0x01
|
QKnxDeviceControl::OwnIA
|
0x02
|
QKnxDeviceControl::VerifyMode
|
0x04
|
QKnxDeviceControl::SafeState
|
0x08
|
The Attributes type is a typedef for QFlags <Attribute>. It stores an OR combination of Attribute values.
Creates a fixed size datapoint type with the attributes 屬性 .
Creates a fixed size datapoint type with an empty list of attributes.
Returns whether the attribute attribute is set in the datapoint type.
移除屬性 attribute from the value of the datapoint type.
返迴
true
if the value was removed; otherwise returns
false
.
設置屬性 attribute within the value of the datapoint type.
返迴
true
if the value was set; otherwise returns
false
.
Sets the value of the datapoint type to the list of attributes specified by 屬性 .
返迴
true
if the value was set; otherwise returns
false
.
另請參閱 value ().
Returns the value stored in the datapoint type as a list of attributes.
另請參閱 setValue ().