Builder Class

class QKnxNetIpServiceFamiliesDibProxy::Builder

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

© 2024 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.