Builder Class

class QKnxNetIpKnxAddressesDibProxy::Builder

The QKnxNetIpKnxAddressesDibProxy::Builder class creates a KNXnet/IP addresses DIB structure. More...

Public Functions

QKnxNetIpDib create() const
Builder &setIndividualAddresses(const QVector<QKnxAddress> &addresses)

Detailed Description

A KNXnet/IP addresses DIB structure contains the assigned individual addresses of a KNXnet/IP device.

The common way to create such a DIB structure is:

auto dib = QKnxNetIpKnxAddressesDibProxy::builder()
       { QKnxAddress::Type::Individual, 1976 },
       { QKnxAddress::Type::Individual, 1978 },
       { QKnxAddress::Type::Individual, 2002 },
       { QKnxAddress::Type::Individual, 2013 }

Member Function Documentation

QKnxNetIpDib Builder::create() const

Creates and returns a generic QKnxNetIpDib containing the individual addresses of the KNXnet/IP device.

Note: The returned structure may be invalid depending on the values used during setup.

See also isValid().

Builder &Builder::setIndividualAddresses(const QVector<QKnxAddress> &addresses)

Sets the individual addresses of the KNXnet/IP DIB structure to addresses 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.