Builder Class
class QKnxNetIpServiceFamiliesDibProxy::BuilderThe QKnxNetIpServiceFamiliesDibProxy::Builder class creates a KNXnet/IP supported service families DIB structure. More...
Public Functions
QKnxNetIpDib | create() const |
Builder & | setServiceInfos(const QVector<QKnxServiceInfo> &infos) |
Detailed Description
A KNXnet/IP supported service families DIB structure contains a set of supported services and their corresponding versions.
The common way to create such a DIB structure is:
auto dib = QKnxNetIpServiceFamiliesDibProxy::builder() .setServiceInfos({ { QKnxNetIp::ServiceFamily::Core, 0x01 }, { QKnxNetIp::ServiceFamily::DeviceManagement, 0x01 }, { QKnxNetIp::ServiceFamily::IpTunneling, 0x01 } }) .create();
Member Function Documentation
QKnxNetIpDib Builder::create() const
Creates and returns a QKnxNetIpDib.
Note: The returned structure may be invalid depending on the values used during setup.
See also isValid().
Builder &Builder::setServiceInfos(const QVector<QKnxServiceInfo> &infos)
Sets the supported service families and versions of the KNXnet/IP DIB structure to infos and returns a reference to the builder.