PropertyInfoBuilder Class

class QKnxDeviceManagementFrame ::PropertyInfoBuilder

The QKnxDeviceManagementFrame::PropertyInfoBuilder class provides the means to create a valid device management property info indication frame. 更多...

公共函数

PropertyInfoBuilder ()
QKnxDeviceManagementFrame createIndication (const QKnxByteArray & data ) const
PropertyInfoBuilder & setNumberOfElements (quint8 noe )
PropertyInfoBuilder & setObjectInstance (quint8 实例 )
PropertyInfoBuilder & setObjectType (QKnxInterfaceObjectType type )
PropertyInfoBuilder & setProperty (QKnxInterfaceObjectProperty pid )
PropertyInfoBuilder & setStartIndex (quint16 startIndex )

详细描述

The property info service is used for local device management. It is an unconfirmed service, that is used by a common external message interface (cEMI) cEMI server to send notifications upon events, for example.

另请参阅 QKnxDeviceManagementFrame::MessageCode , QKnxDeviceManagementFrame ,和 Qt KNX Device Management Classes .

成员函数文档编制

PropertyInfoBuilder:: PropertyInfoBuilder ()

Creates a device management property info builder object.

QKnxDeviceManagementFrame PropertyInfoBuilder:: createIndication (const QKnxByteArray & data ) const

Creates and returns a device management property info indication frame with the data field set to data .

The common way to create such an indication is:

auto indication = QKnxDeviceManagementFrame::propertyInfoBuilder()
    .setObjectType(...)
    .setObjectInstance(...)
    .setProperty(...)
    .setNumberOfElements(...)
    .setStartIndex(...)
    .createIndication(...)
deviceManagement.sendFrame(indication);
					

注意: The returned frame may be invalid depending on the values used during setup.

另请参阅 QKnxDeviceManagementFrame and QKnxDeviceManagementFrame::isValid ().

PropertyInfoBuilder &PropertyInfoBuilder:: setNumberOfElements ( quint8 noe )

Sets the number of elements of this builder to noe and returns a reference to the builder.

PropertyInfoBuilder &PropertyInfoBuilder:: setObjectInstance ( quint8 实例 )

Sets the object instance of this builder to 实例 and returns a reference to the builder.

PropertyInfoBuilder &PropertyInfoBuilder:: setObjectType ( QKnxInterfaceObjectType type )

Sets the interface object type of this builder to type and returns a reference to the builder.

PropertyInfoBuilder &PropertyInfoBuilder:: setProperty ( QKnxInterfaceObjectProperty pid )

Sets the interface object property of this builder to pid and returns a reference to the builder.

PropertyInfoBuilder &PropertyInfoBuilder:: setStartIndex ( quint16 startIndex )

Sets the start index of this builder to startIndex and returns a reference to the builder.