Builder Class

class QKnxNetIpExtendedDeviceDibProxy::Builder

The QKnxNetIpExtendedDeviceDibProxy::Builder class creates a KNXnet/IP extended device information DIB structure. More...

Public Functions

Builder(const Builder &other)
Builder()
Builder &operator=(const Builder &other)
~Builder()
QKnxNetIpDib create() const
Builder &setDeviceDescriptorType0(quint16 type)
Builder &setMaximumLocalApduLength(quint16 length)
Builder &setMediumStatus(QKnx::MediumStatus status)

Detailed Description

A KNXnet/IP extended device information DIB structure contains specific information about a KNXnet/IP device, such as the KNX medium status, maximum local APDU length and the device descriptor type (mask version).

The common way to create such a DIB structure is:

// fetch the medium status

auto dib = QKnxNetIpExtendedDeviceDibProxy::builder()
   .setMediumStatus(mediumStatus)
   .setMaximumLocalApduLength(0xffff);
   .setDeviceDescriptorType0(0x091a)
   .create();

Member Function Documentation

Builder::Builder(const Builder &other)

Constructs a copy of other.

Builder::Builder()

Creates a new empty extended device information DIB structure builder object.

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 generic KNXnet/IP extended device information DIB structure containing the specific device information of a KNXnet/IP device.

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

See also isValid().

Builder &Builder::setDeviceDescriptorType0(quint16 type)

Sets the descriptor type of the KNXnet/IP DIB structure to type and returns a reference to the builder.

Builder &Builder::setMaximumLocalApduLength(quint16 length)

Sets the maximum local APDU length of the KNXnet/IP DIB structure to length and returns a reference to the builder.

Builder &Builder::setMediumStatus(QKnx::MediumStatus status)

Sets the medium status to status 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.