Builder Class

class QKnxNetIpSessionStatusProxy ::Builder

The QKnxNetIpSessionStatusProxy::Builder class provides the means to create a KNXnet/IP secure session status frame. 更多...

公共函數

Builder (const Builder & other )
Builder ()
Builder & operator= (const Builder & other )
~Builder ()
QKnxNetIpFrame create () const
Builder & setStatus (QKnxNetIp::SecureSessionStatus status )

詳細描述

This class is part of the Qt KNX module and currently available as a Technology Preview, and therefore the API and functionality provided by the class may be subject to change at any time without prior notice.

This frame may be sent by the KNXnet/IP secure server to the KNXnet/IP secure client or by the KNXnet/IP secure client to the KNXnet/IP secure server at any stage of the secure session handshake to indicate an error condition or to convey status information.

The common way to create a session status frame is:

auto netIpFrame = QKnxNetIpSessionStatusProxy::builder()
    .setStatus(QKnxNetIp::SecureSessionStatus::Close)
    .create();
					

成員函數文檔編製

Builder:: Builder (const Builder & other )

構造副本為 other .

Builder:: Builder ()

Creates a new empty session status frame builder object.

Builder &Builder:: operator= (const Builder & other )

賦值指定 other 到此對象。

Builder:: ~Builder ()

銷毀對象並釋放任何分配資源。

QKnxNetIpFrame Builder:: create () const

Creates and returns a KNXnet/IP session status frame.

注意: The returned frame may be invalid depending on the values used during setup.

另請參閱 isValid ().

Builder &Builder:: setStatus ( QKnxNetIp::SecureSessionStatus status )

Sets the status of the KNXnet/IP session status frame to status and returns a reference to the builder.