QOpcUaConnectionSettings Class
Die allgemeinen Parameter für eine Verbindung zu einem Server. Mehr...
| Header: | #include <QOpcUaConnectionSettings> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
| Seit: | 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) |
Verwandte Nicht-Mitglieder
| bool | operator!=(const QOpcUaConnectionSettings &lhs, const QOpcUaConnectionSettings &rhs) |
| bool | operator==(const QOpcUaConnectionSettings &lhs, const QOpcUaConnectionSettings &rhs) |
Ausführliche Beschreibung
Diese Klasse speichert allgemeine Verbindungsparameter wie das Session-Timeout, die Lebensdauer des sicheren Kanals und die localeIds.
Die Informationen aus dieser Klasse werden derzeit nur vom Backend „open62541“ verwendet.
Dokumentation der Mitgliedsfunktionen
QOpcUaConnectionSettings::QOpcUaConnectionSettings()
Erstellt ein Objekt mit Verbindungseinstellungen.
QOpcUaConnectionSettings::QOpcUaConnectionSettings(const QOpcUaConnectionSettings &other)
Erstellt ein Objekt für die Verbindungseinstellungen mit den Werten von ` other`.
[constexpr noexcept default] QOpcUaConnectionSettings::QOpcUaConnectionSettings(QOpcUaConnectionSettings &&other)
Erstellt mithilfe von „Move“ ein neues Objekt für Verbindungseinstellungen aus „ other “.
Hinweis: Das Objekt „ other “, aus dem die Werte übernommen wurden, befindet sich in einem teilweise initialisierten Zustand, in dem die einzigen zulässigen Operationen die Zerstörung und die Zuweisung eines neuen Werts sind.
[noexcept] QOpcUaConnectionSettings::~QOpcUaConnectionSettings()
Löscht dieses Objekt mit den Verbindungseinstellungen.
std::chrono::milliseconds QOpcUaConnectionSettings::connectTimeout() const
Gibt das Zeitlimit für die Verbindungsherstellung zurück.
Dieser Wert bestimmt, wie lange die Verbindung auf eine Antwort wartet.
Siehe auch ` setConnectTimeout()`.
std::chrono::milliseconds QOpcUaConnectionSettings::requestTimeout() const
Gibt das Zeitlimit für die Anfrage zurück.
Dieser Wert bestimmt, wie lange ein synchroner Dienstaufruf auf eine Antwort wartet.
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 Locale-IDs der Sitzung zurück.
Siehe auch „ setSessionLocaleIds()“.
std::chrono::milliseconds QOpcUaConnectionSettings::sessionTimeout() const
Gibt das angeforderte Sitzungszeitlimit zurück.
Siehe auch „ setSessionTimeout()“.
void QOpcUaConnectionSettings::setConnectTimeout(std::chrono::milliseconds timeout)
Legt „ timeout “ als neues Verbindungszeitlimit fest.
Siehe auch connectTimeout().
void QOpcUaConnectionSettings::setRequestTimeout(std::chrono::milliseconds timeout)
Legt „ timeout “ als neues Zeitlimit für die Anfrage fest.
Siehe auch requestTimeout().
void QOpcUaConnectionSettings::setSecureChannelLifeTime(std::chrono::milliseconds lifeTime)
Legt „ lifeTime “ als neue Lebensdauer des sicheren Kanals fest.
Weitere Informationen finden Sie unter https://reference.opcfoundation.org/v105/Core/docs/Part4/5.5.2/#Table11
Siehe auch secureChannelLifeTime().
void QOpcUaConnectionSettings::setSessionLocaleIds(const QStringList &localeIds)
Legt „ localeIds “ als neue Liste der Locale-IDs fest. Diese Einstellung wird vom Backend „open62541“ derzeit nicht unterstützt.
Weitere Informationen finden Sie unter 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 neues Zeitlimit für die angeforderte Sitzung fest.
Weitere Informationen finden Sie unter https://reference.opcfoundation.org/v105/Core/docs/Part4/5.6.2/#Table15
Siehe auch sessionTimeout().
[noexcept] void QOpcUaConnectionSettings::swap(QOpcUaConnectionSettings &other)
Ersetzt das Objekt „ other “ mit diesem Verbindungs-Einstellungsobjekt. Dieser Vorgang ist sehr schnell und schlägt niemals fehl.
[noexcept] QOpcUaConnectionSettings &QOpcUaConnectionSettings::operator=(QOpcUaConnectionSettings &&other)
Weist „ other “ dieser Instanz von „ QOpcUaConnectionSettings “ zu.
Hinweis: Das Objekt „ other “, aus dem die Zuweisung erfolgt ist, wird in einen teilweise initialisierten Zustand versetzt, in dem die einzigen zulässigen Operationen die Zerstörung und die Zuweisung eines neuen Werts sind.
QOpcUaConnectionSettings &QOpcUaConnectionSettings::operator=(const QOpcUaConnectionSettings &rhs)
Legt die Werte aus „ rhs “ in diesem Verbindungseinstellungsobjekt fest.
Verwandte Nicht-Mitglieder
[noexcept] bool operator!=(const QOpcUaConnectionSettings &lhs, const QOpcUaConnectionSettings &rhs)
Gibt „ true “ zurück, wenn „ lhs “ nicht dieselben Verbindungseinstellungen enthält wie „ rhs “; andernfalls wird „ false “ zurückgegeben.
[noexcept] bool operator==(const QOpcUaConnectionSettings &lhs, const QOpcUaConnectionSettings &rhs)
Gibt „ true “ zurück, wenn „ lhs “ dieselben Verbindungseinstellungen enthält wie „ rhs “; andernfalls wird „ false “ zurückgegeben.
© 2026 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.