class QOpcUaDiagnosticInfo

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

Added in version 6.7.

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

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.

__init__()

Constructs a diagnostic info.

__init__(other)
Parameters:

otherQOpcUaDiagnosticInfo

Constructs a diagnostic info from other.

additionalInfo()
Return type:

str

Returns the additional information of this diagnostic info.

hasAdditionalInfo()
Return type:

bool

Returns true if this diagnostic info has additional information.

hasInnerDiagnosticInfo()
Return type:

bool

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

hasInnerStatusCode()
Return type:

bool

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

hasLocale()
Return type:

bool

Returns true if this diagnostic info has a locale.

See also

setHasLocale()

hasLocalizedText()
Return type:

bool

Returns true if this diagnostic info has a localized text.

hasNamespaceUri()
Return type:

bool

Returns true if this diagnostic info has a namespace URI.

hasSymbolicId()
Return type:

bool

Returns true if this diagnostic info has a symbolic id.

innerDiagnosticInfo()
Return type:

QOpcUaDiagnosticInfo

Returns the inner diagnostic info of this diagnostic info.

innerDiagnosticInfoRef()
Return type:

QOpcUaDiagnosticInfo

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

innerStatusCode()
Return type:

UaStatusCode

Returns the inner status code of this diagnostic info.

locale()
Return type:

int

Returns the locale of this diagnostic info.

See also

setLocale()

localizedText()
Return type:

int

Returns the localized text of this diagnostic info.

namespaceUri()
Return type:

int

Returns the namespace URI of this diagnostic info.

__ne__(rhs)
Parameters:

rhsQOpcUaDiagnosticInfo

Return type:

bool

Returns true if lhs is not equal to rhs.

__eq__(rhs)
Parameters:

rhsQOpcUaDiagnosticInfo

Return type:

bool

Returns true if lhs is equal to rhs.

setAdditionalInfo(newAdditionalInfo)
Parameters:

newAdditionalInfo – str

Sets the additional information of this diagnostic info to newAdditionalInfo.

See also

additionalInfo()

setHasAdditionalInfo(newHasAdditionalInfo)
Parameters:

newHasAdditionalInfo – bool

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

setHasInnerDiagnosticInfo(newHasInnerDiagnosticInfo)
Parameters:

newHasInnerDiagnosticInfo – bool

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

setHasInnerStatusCode(newHasInnerStatusCode)
Parameters:

newHasInnerStatusCode – bool

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

setHasLocale(newHasLocale)
Parameters:

newHasLocale – bool

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

See also

hasLocale()

setHasLocalizedText(newHasLocalizedText)
Parameters:

newHasLocalizedText – bool

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

setHasNamespaceUri(newHasNamespaceUri)
Parameters:

newHasNamespaceUri – bool

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

setHasSymbolicId(newHasSymbolicId)
Parameters:

newHasSymbolicId – bool

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

See also

hasSymbolicId()

setInnerDiagnosticInfo(newInnerDiagnosticInfo)
Parameters:

newInnerDiagnosticInfoQOpcUaDiagnosticInfo

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

setInnerStatusCode(newInnerStatusCode)
Parameters:

newInnerStatusCodeUaStatusCode

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

setLocale(newLocale)
Parameters:

newLocale – int

Sets the locale of this diagnostic info to newLocale.

See also

locale()

setLocalizedText(newLocalizedText)
Parameters:

newLocalizedText – int

Sets the localized text of this diagnostic info to newLocalizedText.

See also

localizedText()

setNamespaceUri(newNamespaceUri)
Parameters:

newNamespaceUri – int

Sets the namespace URI of this diagnostic info to newNamespaceUri.

See also

namespaceUri()

setSymbolicId(newSymbolicId)
Parameters:

newSymbolicId – int

Sets the symbolic id of this diagnostic info to newSymbolicId.

See also

symbolicId()

swap(other)
Parameters:

otherQOpcUaDiagnosticInfo

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

symbolicId()
Return type:

int

Returns the symbolic id of this diagnostic info.

See also

setSymbolicId()