QOpcUaDiagnosticInfo Class

The QOpcUaDiagnosticInfo class models the OPC UA built-in type DiagnosticInfo. More...

Header: #include <QOpcUaDiagnosticInfo>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua
Since: Qt 6.7

Public Functions

QOpcUaDiagnosticInfo()
QOpcUaDiagnosticInfo(const QOpcUaDiagnosticInfo &other)
QOpcUaDiagnosticInfo(QOpcUaDiagnosticInfo &&other)
~QOpcUaDiagnosticInfo()
QString additionalInfo() const
bool hasAdditionalInfo() const
bool hasInnerDiagnosticInfo() const
bool hasInnerStatusCode() const
bool hasLocale() const
bool hasLocalizedText() const
bool hasNamespaceUri() const
bool hasSymbolicId() const
QOpcUaDiagnosticInfo innerDiagnosticInfo() const
QOpcUaDiagnosticInfo &innerDiagnosticInfoRef()
QOpcUa::UaStatusCode innerStatusCode() const
qint32 locale() const
qint32 localizedText() const
qint32 namespaceUri() const
void setAdditionalInfo(const QString &newAdditionalInfo)
void setHasAdditionalInfo(bool newHasAdditionalInfo)
void setHasInnerDiagnosticInfo(bool newHasInnerDiagnosticInfo)
void setHasInnerStatusCode(bool newHasInnerStatusCode)
void setHasLocale(bool newHasLocale)
void setHasLocalizedText(bool newHasLocalizedText)
void setHasNamespaceUri(bool newHasNamespaceUri)
void setHasSymbolicId(bool newHasSymbolicId)
void setInnerDiagnosticInfo(const QOpcUaDiagnosticInfo &newInnerDiagnosticInfo)
void setInnerStatusCode(QOpcUa::UaStatusCode newInnerStatusCode)
void setLocale(qint32 newLocale)
void setLocalizedText(qint32 newLocalizedText)
void setNamespaceUri(qint32 newNamespaceUri)
void setSymbolicId(qint32 newSymbolicId)
void swap(QOpcUaDiagnosticInfo &other)
qint32 symbolicId() const
QVariant operator QVariant() const
QOpcUaDiagnosticInfo &operator=(QOpcUaDiagnosticInfo &&other)
QOpcUaDiagnosticInfo &operator=(const QOpcUaDiagnosticInfo &rhs)
bool operator!=(const QOpcUaDiagnosticInfo &lhs, const QOpcUaDiagnosticInfo &rhs)
bool operator==(const QOpcUaDiagnosticInfo &lhs, const QOpcUaDiagnosticInfo &rhs)

Detailed Description

The DiagnosticInfo type is used to convey diagnostics for some operations on the server. The qint32 type members refer to an index in the stringTable field of the OPC UA response header which is currently not supported by Qt OPC UA.

Member Function Documentation

QOpcUaDiagnosticInfo::QOpcUaDiagnosticInfo()

Constructs a diagnostic info.

QOpcUaDiagnosticInfo::QOpcUaDiagnosticInfo(const QOpcUaDiagnosticInfo &other)

Constructs a diagnostic info from other.

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

Move-constructs a new diagnostic info from other.

Note: The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.

[noexcept] QOpcUaDiagnosticInfo::~QOpcUaDiagnosticInfo()

Destroys this diagnostic info object.

QString QOpcUaDiagnosticInfo::additionalInfo() const

Returns the additional information of this diagnostic info.

See also setAdditionalInfo().

bool QOpcUaDiagnosticInfo::hasAdditionalInfo() const

Returns true if this diagnostic info has additional information.

See also setHasAdditionalInfo().

bool QOpcUaDiagnosticInfo::hasInnerDiagnosticInfo() const

Returns true if this diagnostic info has an inner diagnostic info.

See also setHasInnerDiagnosticInfo().

bool QOpcUaDiagnosticInfo::hasInnerStatusCode() const

Returns true if this diagnostic info has an inner status code.

See also setHasInnerStatusCode().

bool QOpcUaDiagnosticInfo::hasLocale() const

Returns true if this diagnostic info has a locale.

See also setHasLocale().

bool QOpcUaDiagnosticInfo::hasLocalizedText() const

Returns true if this diagnostic info has a localized text.

See also setHasLocalizedText().

bool QOpcUaDiagnosticInfo::hasNamespaceUri() const

Returns true if this diagnostic info has a namespace URI.

See also setHasNamespaceUri().

bool QOpcUaDiagnosticInfo::hasSymbolicId() const

Returns true if this diagnostic info has a symbolic id.

See also setHasSymbolicId().

QOpcUaDiagnosticInfo QOpcUaDiagnosticInfo::innerDiagnosticInfo() const

Returns the inner diagnostic info of this diagnostic info.

See also setInnerDiagnosticInfo().

QOpcUaDiagnosticInfo &QOpcUaDiagnosticInfo::innerDiagnosticInfoRef()

Returns a reference to the inner diagnostic info of this diagnostic info.

QOpcUa::UaStatusCode QOpcUaDiagnosticInfo::innerStatusCode() const

Returns the inner status code of this diagnostic info.

See also setInnerStatusCode().

qint32 QOpcUaDiagnosticInfo::locale() const

Returns the locale of this diagnostic info.

See also setLocale().

qint32 QOpcUaDiagnosticInfo::localizedText() const

Returns the localized text of this diagnostic info.

See also setLocalizedText().

qint32 QOpcUaDiagnosticInfo::namespaceUri() const

Returns the namespace URI of this diagnostic info.

See also setNamespaceUri().

void QOpcUaDiagnosticInfo::setAdditionalInfo(const QString &newAdditionalInfo)

Sets the additional information of this diagnostic info to newAdditionalInfo.

See also additionalInfo().

void QOpcUaDiagnosticInfo::setHasAdditionalInfo(bool newHasAdditionalInfo)

Sets the information whether this diagnostic info has additional information to newHasAdditionalInfo.

See also hasAdditionalInfo().

void QOpcUaDiagnosticInfo::setHasInnerDiagnosticInfo(bool newHasInnerDiagnosticInfo)

Sets the information whether this diagnostic info has an inner diagnostic info to newHasInnerDiagnosticInfo.

See also hasInnerDiagnosticInfo().

void QOpcUaDiagnosticInfo::setHasInnerStatusCode(bool newHasInnerStatusCode)

Sets the information whether this diagnostic info has an inner status code to newHasInnerStatusCode.

See also hasInnerStatusCode().

void QOpcUaDiagnosticInfo::setHasLocale(bool newHasLocale)

Sets the information whether this diagnostic info has a locale to newHasLocale.

See also hasLocale().

void QOpcUaDiagnosticInfo::setHasLocalizedText(bool newHasLocalizedText)

Sets the information whether this diagnostic info has a localized text to newHasLocalizedText.

See also hasLocalizedText().

void QOpcUaDiagnosticInfo::setHasNamespaceUri(bool newHasNamespaceUri)

Sets the information whether this diagnostic info has a namespace URI to newHasNamespaceUri.

See also hasNamespaceUri().

void QOpcUaDiagnosticInfo::setHasSymbolicId(bool newHasSymbolicId)

Sets the information whether this diagnostic info has a symbolic id to newHasSymbolicId.

See also hasSymbolicId().

void QOpcUaDiagnosticInfo::setInnerDiagnosticInfo(const QOpcUaDiagnosticInfo &newInnerDiagnosticInfo)

Sets the inner diagnostic info of this diagnostic info to newInnerDiagnosticInfo.

See also innerDiagnosticInfo().

void QOpcUaDiagnosticInfo::setInnerStatusCode(QOpcUa::UaStatusCode newInnerStatusCode)

Sets the inner status code of this diagnostic info to newInnerStatusCode.

See also innerStatusCode().

void QOpcUaDiagnosticInfo::setLocale(qint32 newLocale)

Sets the locale of this diagnostic info to newLocale.

See also locale().

void QOpcUaDiagnosticInfo::setLocalizedText(qint32 newLocalizedText)

Sets the localized text of this diagnostic info to newLocalizedText.

See also localizedText().

void QOpcUaDiagnosticInfo::setNamespaceUri(qint32 newNamespaceUri)

Sets the namespace URI of this diagnostic info to newNamespaceUri.

See also namespaceUri().

void QOpcUaDiagnosticInfo::setSymbolicId(qint32 newSymbolicId)

Sets the symbolic id of this diagnostic info to newSymbolicId.

See also symbolicId().

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

Swaps diagnostic info object other with this diagnostic info object. This operation is very fast and never fails.

qint32 QOpcUaDiagnosticInfo::symbolicId() const

Returns the symbolic id of this diagnostic info.

See also setSymbolicId().

QVariant QOpcUaDiagnosticInfo::operator QVariant() const

Returns a QVariant containing this diagnostic info.

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

Move-assigns other to this QOpcUaDiagnosticInfo instance.

Note: The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.

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

Sets the value of rhs in this diagnostic info.

Related Non-Members

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

Returns true if lhs is not equal to rhs.

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

Returns true if lhs is equal to rhs.

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