The QKnxNetIpSrpProxy::SupportedFamily class provides the means to create a Select By Service SRP for an extended search request. 更多...
该类在 Qt 5.12 引入。
SupportedFamily (const SupportedFamily & other ) | |
SupportedFamily () | |
SupportedFamily & | operator= (const SupportedFamily & other ) |
~SupportedFamily () | |
QKnxNetIpSrp | create () const |
SupportedFamily & | setMandatory (bool value ) |
SupportedFamily & | setServiceInfo (const QKnxServiceInfo & info ) |
The client includes this SRP to indicate that it is interested only in responses from KNXnet/IP servers supporting the given KNXnet/IP service family in at least the given version.
If the KNXnet/IP server does not support the given service family or supports the given service family only in a lower version, then it does not respond to this search request.
注意:
By default the mandatory flag is set to
true
.
The common way to create this SRP is:
auto srpDibs = QKnxNetIpSrpProxy::supportedFamilyBuilder() .setServiceInfo({ QKnxNetIp::ServiceFamily::Core, 2 }) .create();
另请参阅 QKnxNetIpSearchRequestProxy .
构造副本为 other .
Constructs a builder for a Select By Service SRP of an extended search request.
赋值 other to this Select By Service builder and returns a reference.
Destroys the Select By Service SRP builder.
Creates the Select By Service SRP.
Sets the mandatory bit flag of the Type Code field to value .
Sets the supported service families and versions of the KNXnet/IP SRP structure to info and returns a reference to the SRP builder.