RequestDibs Class

class QKnxNetIpSrpProxy ::RequestDibs

The QKnxNetIpSrpProxy::RequestDibs class provides the means to create the Request DIBs SRP for the extended search request. 更多...

该类在 Qt 5.12 引入。

公共函数

RequestDibs (const RequestDibs & other )
RequestDibs ()
RequestDibs & operator= (const RequestDibs & other )
~RequestDibs ()
QKnxNetIpSrp create () const
RequestDibs & setDescriptionTypes (const QVector<QKnxNetIp::DescriptionType> & 类型 )
RequestDibs & setMandatory (bool value )

详细描述

The client includes this SRP to indicate that it is interested in the listed device information blocks (DIBs). This SRP does not influence the decision of the KNXnet/IP server whether or not to respond to the search request.

This SRP has variable length. If the client is interested in an odd number of DIBs, it adds an additional description type QKnxNetIp::DescriptionType::Unknown to make the structure length even.

注意: By default the mandatory flag is set to true .

The common way to create this SRP is:

auto srpDibs = QKnxNetIpSrpProxy::requestDibsBuilder()
    .setDescriptionTypes({
        QKnxNetIp::DescriptionType::DeviceInfo,
        QKnxNetIp::DescriptionType::SupportedServiceFamilies,
        QKnxNetIp::DescriptionType::ExtendedDeviceInfo,
        QKnxNetIp::DescriptionType::Unknown
    }).create();
					

另请参阅 QKnxNetIpSearchRequestProxy .

成员函数文档编制

RequestDibs:: RequestDibs (const RequestDibs & other )

构造副本为 other .

RequestDibs:: RequestDibs ()

Constructs a builder for a Request DIBs SRP.

RequestDibs &RequestDibs:: operator= (const RequestDibs & other )

赋值 other to this Request DIBs builder and returns a reference.

RequestDibs:: ~RequestDibs ()

Destroys the Request DIBs SRP builder.

QKnxNetIpSrp RequestDibs:: create () const

Creates a Request Dibs SRP.

RequestDibs &RequestDibs:: setDescriptionTypes (const QVector < QKnxNetIp::DescriptionType > & 类型 )

Sets the requested description types of the KNXnet/IP SRP structure to 类型 and returns a reference to the SRP builder.

RequestDibs &RequestDibs:: setMandatory ( bool value )

Sets the mandatory flag to value .