Builder Class

class QKnxNetIpSecuredServiceFamiliesDibProxy::Builder

The 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.

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.