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 .
构造副本为 other .
Constructs a builder for a Request DIBs SRP.
赋值 other to this Request DIBs builder and returns a reference.
Destroys the Request DIBs SRP builder.
Creates a Request Dibs SRP.
Sets the requested description types of the KNXnet/IP SRP structure to 类型 and returns a reference to the SRP builder.
Sets the mandatory flag to value .