QKnxDeviceControl Class

The QKnxDeviceControl class is a datapoint type for device control. 更多...

头: #include <QKnxDeviceControl>
qmake: QT += knx
继承: QKnx8BitSet

公共类型

enum 属性 { UserStopped, OwnIA, VerifyMode, SafeState }
flags 属性

公共函数

QKnxDeviceControl (QKnxDeviceControl::Attributes 属性 )
QKnxDeviceControl ()
bool isSet (QKnxDeviceControl::Attribute 属性 ) const
bool removeAttribute (QKnxDeviceControl::Attribute 属性 )
bool setAttribute (QKnxDeviceControl::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 .

成员类型文档编制

enum QKnxDeviceControl:: 属性
flags QKnxDeviceControl:: 属性

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.

成员函数文档编制

QKnxDeviceControl:: QKnxDeviceControl ( QKnxDeviceControl::Attributes 属性 )

Creates a fixed size datapoint type with the attributes 属性 .

QKnxDeviceControl:: QKnxDeviceControl ()

Creates a fixed size datapoint type with an empty list of attributes.

bool QKnxDeviceControl:: isSet ( QKnxDeviceControl::Attribute 属性 ) const

Returns whether the attribute 属性 is set in the datapoint type.

bool QKnxDeviceControl:: removeAttribute ( QKnxDeviceControl::Attribute 属性 )

移除属性 属性 from the value of the datapoint type.

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

bool QKnxDeviceControl:: setAttribute ( QKnxDeviceControl::Attribute 属性 )

设置属性 属性 within the value of the datapoint type.

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

bool QKnxDeviceControl:: setValue ( QKnxDeviceControl::Attributes 属性 )

Sets the value of the datapoint type to the list of attributes specified by 属性 .

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

另请参阅 value ().

QKnxDeviceControl::Attributes QKnxDeviceControl:: value () const

Returns the value stored in the datapoint type as a list of attributes.

另请参阅 setValue ().