The QKnxNetIpTunnelingInfoDibProxy::Builder class creates a KNXnet/IP tunneling info DIB structure. 更多...
该类在 Qt 5.12 引入。
Builder (const Builder & other ) | |
Builder () | |
Builder & | operator= (const Builder & other ) |
~Builder () | |
QKnxNetIpDib | create () const |
Builder & | setMaximumInterfaceApduLength (quint16 length ) |
Builder & | setOptionalSlotInfos (const QVector<QKnxNetIpTunnelingSlotInfo> & infos ) |
Builder & | setTunnelingSlotInfo (const QKnxNetIpTunnelingSlotInfo & info ) |
A KNXnet/IP tunneling info DIB structure contains the maximum application layer protocol data unit (APDU) length supported by a KNXnet/IP tunneling interface for bus access and one or more tunneling slot information objects.
The common way to create such a DIB structure is:
auto dib = QKnxNetIpTunnelingInfoDibProxy::builder() .setMaximumInterfaceApduLength(0x1000) .setTunnelingSlotInfo({ { QKnxAddress::Type::Individual, 1976 }, QKnxNetIpTunnelingSlotInfo::Available }).setOptionalSlotInfos({ { { QKnxAddress::Type::Individual, 2013 }, QKnxNetIpTunnelingSlotInfo::Usable | QKnxNetIpTunnelingSlotInfo::Authorized | QKnxNetIpTunnelingSlotInfo::Free }, { { QKnxAddress::Type::Individual, 1978 }, QKnxNetIpTunnelingSlotInfo::NotAvailable }, { QKnxNetIpTunnelingSlotInfo({ QKnxAddress::Type::Individual, 2002 }) } }).create();
构造副本为 other .
Creates a new empty tunneling info DIB structure builder object.
赋值指定 other 到此对象。
销毁对象并释放任何分配资源。
Creates and returns a tunneling info QKnxNetIpDib .
注意: The returned structure may be invalid depending on the values used during setup.
注意: Invalid tunneling slot information objects are not taken into account when creating the tunneling information QKnxNetIpDib .
另请参阅 isValid ().
Sets the maximum APDU length of the KNXnet/IP DIB structure to length and returns a reference to the builder.
Sets the optional tunneling slot information of the KNXnet/IP DIB structure to infos and returns a reference to the builder.
Sets the mandatory tunneling slot information of the KNXnet/IP DIB structure to info and returns a reference to the builder.