Builder Class
class QKnxNetIpSecuredServiceFamiliesDibProxy::BuilderThe QKnxNetIpSecuredServiceFamiliesDibProxy::Builder class creates a KNXnet/IP secured service families DIB structure. More...
Public Functions
Builder(const Builder &other) | |
Builder() | |
Builder & | operator=(const Builder &other) |
~Builder() | |
QKnxNetIpDib | create() const |
Builder & | setServiceInfos(const QVector<QKnxSecuredServiceInfo> &infos) |
Detailed Description
A KNXnet/IP secured 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 = QKnxNetIpSecuredServiceFamiliesDibProxy::builder() .setServiceInfos({ { QKnxNetIp::ServiceFamily::Core, 0x01 }, { QKnxNetIp::ServiceFamily::DeviceManagement, 0x01 }, { QKnxNetIp::ServiceFamily::IpTunneling, 0x01 } }) .create();
Member Function Documentation
Builder::Builder(const Builder &other)
Constructs a copy of other.
Builder::Builder()
Constructs a KnxNet/IP secured service families dib builder.
Builder &Builder::operator=(const Builder &other)
Assigns the specified other to this object.
Builder::~Builder()
Destroys the object and frees any allocated resources.
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<QKnxSecuredServiceInfo> &infos)
Sets the supported service families and versions of the KNXnet/IP DIB structure to infos and returns a reference to the builder.