QOpcUaConnectionSettings Class

Die allgemeinen Parameter für eine Verbindung zu einem Server. Mehr...

Kopfzeile: #include <QOpcUaConnectionSettings>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua
Since: Qt 6.6

Öffentliche Funktionen

QOpcUaConnectionSettings()
QOpcUaConnectionSettings(const QOpcUaConnectionSettings &other)
QOpcUaConnectionSettings(QOpcUaConnectionSettings &&other)
~QOpcUaConnectionSettings()
std::chrono::milliseconds connectTimeout() const
std::chrono::milliseconds requestTimeout() const
std::chrono::milliseconds secureChannelLifeTime() const
QStringList sessionLocaleIds() const
std::chrono::milliseconds sessionTimeout() const
void setConnectTimeout(std::chrono::milliseconds timeout)
void setRequestTimeout(std::chrono::milliseconds timeout)
void setSecureChannelLifeTime(std::chrono::milliseconds lifeTime)
void setSessionLocaleIds(const QStringList &localeIds)
void setSessionTimeout(std::chrono::milliseconds timeout)
void swap(QOpcUaConnectionSettings &other)
QOpcUaConnectionSettings &operator=(QOpcUaConnectionSettings &&other)
QOpcUaConnectionSettings &operator=(const QOpcUaConnectionSettings &rhs)
bool operator!=(const QOpcUaConnectionSettings &lhs, const QOpcUaConnectionSettings &rhs)
bool operator==(const QOpcUaConnectionSettings &lhs, const QOpcUaConnectionSettings &rhs)

Detaillierte Beschreibung

Diese Klasse speichert allgemeine Verbindungsparameter wie den Session-Timeout, die Lebensdauer des sicheren Kanals und die LocaleIds.

Die Informationen aus dieser Klasse werden derzeit nur vom open62541-Backend verwendet.

Dokumentation der Mitgliedsfunktionen

QOpcUaConnectionSettings::QOpcUaConnectionSettings()

Konstruiert ein Objekt für die Verbindungseinstellungen.

QOpcUaConnectionSettings::QOpcUaConnectionSettings(const QOpcUaConnectionSettings &other)

Konstruiert ein Verbindungseinstellungsobjekt mit den Werten von other.

[noexcept] QOpcUaConnectionSettings::QOpcUaConnectionSettings(QOpcUaConnectionSettings &&other)

Move-konstruiert ein neues Objekt für Verbindungseinstellungen aus other.

Hinweis: Das verschobene Objekt other wird in einen teilweise gebildeten Zustand versetzt, in dem die einzigen gültigen Operationen die Zerstörung und die Zuweisung eines neuen Wertes sind.

[noexcept] QOpcUaConnectionSettings::~QOpcUaConnectionSettings()

Zerstört dieses Verbindungseinstellungsobjekt.

std::chrono::milliseconds QOpcUaConnectionSettings::connectTimeout() const

Gibt den Timeout für die Verbindung zurück.

Dieser Wert legt fest, wie lange die Verbindung auf eine Antwort warten soll.

Siehe auch setConnectTimeout().

std::chrono::milliseconds QOpcUaConnectionSettings::requestTimeout() const

Gibt das Anfrage-Timeout zurück.

Dieser Wert legt fest, wie lange ein synchroner Dienstaufruf auf eine Antwort warten wird.

Siehe auch setRequestTimeout().

std::chrono::milliseconds QOpcUaConnectionSettings::secureChannelLifeTime() const

Gibt die Lebensdauer des sicheren Kanals zurück.

Siehe auch setSecureChannelLifeTime().

QStringList QOpcUaConnectionSettings::sessionLocaleIds() const

Gibt die Gebietsschema-IDs der Sitzung zurück.

Siehe auch setSessionLocaleIds().

std::chrono::milliseconds QOpcUaConnectionSettings::sessionTimeout() const

Gibt das angeforderte Sitzungs-Timeout zurück.

Siehe auch setSessionTimeout().

void QOpcUaConnectionSettings::setConnectTimeout(std::chrono::milliseconds timeout)

Legt timeout als neuen Verbindungs-Timeout fest.

Siehe auch connectTimeout().

void QOpcUaConnectionSettings::setRequestTimeout(std::chrono::milliseconds timeout)

Legt timeout als neue Zeitüberschreitung für Anfragen fest.

Siehe auch requestTimeout().

void QOpcUaConnectionSettings::setSecureChannelLifeTime(std::chrono::milliseconds lifeTime)

Legt lifeTime als neue Lebensdauer des sicheren Kanals fest.

Für Details, siehe https://reference.opcfoundation.org/v105/Core/docs/Part4/5.5.2/#Table11

Siehe auch secureChannelLifeTime().

void QOpcUaConnectionSettings::setSessionLocaleIds(const QStringList &localeIds)

Setzt localeIds als die neue Liste der Locale-IDs. Diese Einstellung wird derzeit vom open62541 Backend nicht unterstützt.

Für Details, siehe https://reference.opcfoundation.org/v105/Core/docs/Part4/5.6.3/#Table17

Siehe auch sessionLocaleIds().

void QOpcUaConnectionSettings::setSessionTimeout(std::chrono::milliseconds timeout)

Legt timeout als neuen angeforderten Sitzungs-Timeout fest.

Für Details, siehe https://reference.opcfoundation.org/v105/Core/docs/Part4/5.6.2/#Table15

Siehe auch sessionTimeout().

[noexcept] void QOpcUaConnectionSettings::swap(QOpcUaConnectionSettings &other)

Tauscht das Objekt "Verbindungseinstellungen" other mit diesem Objekt "Verbindungseinstellungen" aus. Dieser Vorgang ist sehr schnell und schlägt nie fehl.

[noexcept] QOpcUaConnectionSettings &QOpcUaConnectionSettings::operator=(QOpcUaConnectionSettings &&other)

Verschieben - weist other dieser QOpcUaConnectionSettings Instanz zu.

Hinweis: Das verschobene Objekt other wird in einen teilweise gebildeten Zustand versetzt, in dem die einzigen gültigen Operationen Zerstörung und Zuweisung eines neuen Wertes sind.

QOpcUaConnectionSettings &QOpcUaConnectionSettings::operator=(const QOpcUaConnectionSettings &rhs)

Legt die Werte von rhs in diesem Verbindungseinstellungsobjekt fest.

Verwandte Nicht-Mitglieder

[noexcept] bool operator!=(const QOpcUaConnectionSettings &lhs, const QOpcUaConnectionSettings &rhs)

Gibt true zurück, wenn lhs nicht die gleichen Verbindungseinstellungen wie rhs enthält; andernfalls wird false zurückgegeben.

[noexcept] bool operator==(const QOpcUaConnectionSettings &lhs, const QOpcUaConnectionSettings &rhs)

Gibt true zurück, wenn lhs die gleichen Verbindungseinstellungen wie rhs enthält; andernfalls wird false zurückgegeben.

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