1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include <private/opcuastatus_p.h>
5#include <private/opcuaconnection_p.h>
6
7QT_BEGIN_NAMESPACE
8
9/*!
10 \qmltype Status
11 \inqmlmodule QtOpcUa
12 \brief Status code of an OPC UA function.
13 \since QtOpcUa 5.13
14 \deprecated [6.9]
15
16 This QML element contains information about the result status of an OPC UA action.
17 The most common use case is to check if a call was successful
18 \code
19 if (methodNode.resultCode.isGood) {
20 // do something
21 }
22 \endcode
23*/
24
25/*!
26 \qmlproperty bool Status::isGood
27
28 Returns whether the result status is a success.
29*/
30
31/*!
32 \qmlproperty bool Status::isBad
33
34 Returns whether the result status is a failure.
35*/
36
37/*!
38 \qmlproperty Status.Status Status::status
39
40 Returns the exact status code. This allows to handle the status specifically.
41
42 \code
43 if (resultStatus.status == QtOpcUa.Status.BadTimeout) {
44 // try again
45 }
46 \endcode
47*/
48
49/*!
50 \qmlproperty enumeration Status::Status
51
52 The names of this enumeration are matching the names from the standard, but
53 the values are different.
54
55 Attributes of a status
56
57 \value Status.Good The operation succeeded.
58 \value Status.Uncertain The operation was uncertain.
59 \value Status.Bad The operation failed.
60 \value Status.BadUnexpectedError An unexpected error occurred.
61 \value Status.BadInternalError An internal error occurred as a result of a programming or configuration error.
62 \value Status.BadOutOfMemory Not enough memory to complete the operation.
63 \value Status.BadResourceUnavailable An operating system resource is not available.
64 \value Status.BadCommunicationError A low level communication error occurred.
65 \value Status.BadEncodingError Encoding halted because of invalid data in the objects being serialized.
66 \value Status.BadDecodingError Decoding halted because of invalid data in the stream.
67 \value Status.BadEncodingLimitsExceeded The message encoding/decoding limits imposed by the stack have been exceeded.
68 \value Status.BadRequestTooLarge The request message size exceeds limits set by the server.
69 \value Status.BadResponseTooLarge The response message size exceeds limits set by the client.
70 \value Status.BadUnknownResponse An unrecognized response was received from the server.
71 \value Status.BadTimeout The operation timed out.
72 \value Status.BadServiceUnsupported The server does not support the requested service.
73 \value Status.BadShutdown The operation was cancelled because the application is shutting down.
74 \value Status.BadServerNotConnected The operation could not complete because the client is not connected to the server.
75 \value Status.BadServerHalted The server has stopped and cannot process any requests.
76 \value Status.BadNothingToDo No processing could be done because there was nothing to do.
77 \value Status.BadTooManyOperations The request could not be processed because it specified too many operations.
78 \value Status.BadTooManyMonitoredItems The request could not be processed because there are too many monitored items in the subscription.
79 \value Status.BadDataTypeIdUnknown The extension object cannot be (de)serialized because the data type id is not recognized.
80 \value Status.BadCertificateInvalid The certificate provided as a parameter is not valid.
81 \value Status.BadSecurityChecksFailed An error occurred verifying security.
82 \value Status.BadCertificatePolicyCheckFailed The certificate does not meet the requirements of the security policy.
83 \value Status.BadCertificateTimeInvalid The certificate has expired or is not yet valid.
84 \value Status.BadCertificateIssuerTimeInvalid An issuer certificate has expired or is not yet valid.
85 \value Status.BadCertificateHostNameInvalid The HostName used to connect to a server does not match a HostName in the certificate.
86 \value Status.BadCertificateUriInvalid The URI specified in the ApplicationDescription does not match the URI in the certificate.
87 \value Status.BadCertificateUseNotAllowed The certificate may not be used for the requested operation.
88 \value Status.BadCertificateIssuerUseNotAllowed The issuer certificate may not be used for the requested operation.
89 \value Status.BadCertificateUntrusted The certificate is not trusted.
90 \value Status.BadCertificateRevocationUnknown It was not possible to determine if the certificate has been revoked.
91 \value Status.BadCertificateIssuerRevocationUnknown It was not possible to determine if the issuer certificate has been revoked.
92 \value Status.BadCertificateRevoked The certificate has been revoked.
93 \value Status.BadCertificateIssuerRevoked The issuer certificate has been revoked.
94 \value Status.BadCertificateChainIncomplete The certificate chain is incomplete.
95 \value Status.BadUserAccessDenied User does not have permission to perform the requested operation.
96 \value Status.BadIdentityTokenInvalid The user identity token is not valid.
97 \value Status.BadIdentityTokenRejected The user identity token is valid but the server has rejected it.
98 \value Status.BadSecureChannelIdInvalid The specified secure channel is no longer valid.
99 \value Status.BadInvalidTimestamp The timestamp is outside the range allowed by the server.
100 \value Status.BadNonceInvalid The nonce does appear to be not a random value or it is not the correct length.
101 \value Status.BadSessionIdInvalid The session id is not valid.
102 \value Status.BadSessionClosed The session was closed by the client.
103 \value Status.BadSessionNotActivated The session cannot be used because ActivateSession has not been called.
104 \value Status.BadSubscriptionIdInvalid The subscription id is not valid.
105 \value Status.BadRequestHeaderInvalid The header for the request is missing or invalid.
106 \value Status.BadTimestampsToReturnInvalid The timestamps to return parameter is invalid.
107 \value Status.BadRequestCancelledByClient The request was cancelled by the client.
108 \value Status.BadTooManyArguments Too many arguments were provided.
109 \value Status.BadLicenseExpired The server requires a license to operate in general or to perform a service or operation, but existing license is expired.
110 \value Status.BadLicenseLimitsExceeded The server has limits on number of allowed operations / objects, based on installed licenses, and these limits where exceeded.
111 \value Status.BadLicenseNotAvailable The server does not have a license which is required to operate in general or to perform a service or operation.
112 \value Status.GoodSubscriptionTransferred The subscription was transferred to another session.
113 \value Status.GoodCompletesAsynchronously The processing will complete asynchronously.
114 \value Status.GoodOverload Sampling has slowed down due to resource limitations.
115 \value Status.GoodClamped The value written was accepted but was clamped.
116 \value Status.BadNoCommunication Communication with the data source is defined, but not established, and there is no last known value available.
117 \value Status.BadWaitingForInitialData Waiting for the server to obtain values from the underlying data source.
118 \value Status.BadNodeIdInvalid The syntax of the node id is not valid.
119 \value Status.BadNodeIdUnknown The node id refers to a node that does not exist in the server address space.
120 \value Status.BadAttributeIdInvalid The attribute is not supported for the specified Node.
121 \value Status.BadIndexRangeInvalid The syntax of the index range parameter is invalid.
122 \value Status.BadIndexRangeNoData No data exists within the range of indexes specified.
123 \value Status.BadDataEncodingInvalid The data encoding is invalid.
124 \value Status.BadDataEncodingUnsupported The server does not support the requested data encoding for the node.
125 \value Status.BadNotReadable The access level does not allow reading or subscribing to the Node.
126 \value Status.BadNotWritable The access level does not allow writing to the Node.
127 \value Status.BadOutOfRange The value was out of range.
128 \value Status.BadNotSupported The requested operation is not supported.
129 \value Status.BadNotFound A requested item was not found or a search operation ended without success.
130 \value Status.BadObjectDeleted The object cannot be used because it has been deleted.
131 \value Status.BadNotImplemented Requested operation is not implemented.
132 \value Status.BadMonitoringModeInvalid The monitoring mode is invalid.
133 \value Status.BadMonitoredItemIdInvalid The monitoring item id does not refer to a valid monitored item.
134 \value Status.BadMonitoredItemFilterInvalid The monitored item filter parameter is not valid.
135 \value Status.BadMonitoredItemFilterUnsupported The server does not support the requested monitored item filter.
136 \value Status.BadFilterNotAllowed A monitoring filter cannot be used in combination with the attribute specified.
137 \value Status.BadStructureMissing A mandatory structured parameter was missing or null.
138 \value Status.BadEventFilterInvalid The event filter is not valid.
139 \value Status.BadContentFilterInvalid The content filter is not valid.
140 \value Status.BadFilterOperatorInvalid An unrecognized operator was provided in a filter.
141 \value Status.BadFilterOperatorUnsupported A valid operator was provided, but the server does not provide support for this filter operator.
142 \value Status.BadFilterOperandCountMismatch The number of operands provided for the filter operator was less then expected for the operand provided.
143 \value Status.BadFilterOperandInvalid The operand used in a content filter is not valid.
144 \value Status.BadFilterElementInvalid The referenced element is not a valid element in the content filter.
145 \value Status.BadFilterLiteralInvalid The referenced literal is not a valid value.
146 \value Status.BadContinuationPointInvalid The continuation point provide is longer valid.
147 \value Status.BadNoContinuationPoints The operation could not be processed because all continuation points have been allocated.
148 \value Status.BadReferenceTypeIdInvalid The reference type id does not refer to a valid reference type node.
149 \value Status.BadBrowseDirectionInvalid The browse direction is not valid.
150 \value Status.BadNodeNotInView The node is not part of the view.
151 \value Status.BadNumericOverflow The number was not accepted because of a numeric overflow.
152 \value Status.BadServerUriInvalid The ServerUri is not a valid URI.
153 \value Status.BadServerNameMissing No ServerName was specified.
154 \value Status.BadDiscoveryUrlMissing No DiscoveryUrl was specified.
155 \value Status.BadSempahoreFileMissing The semaphore file specified by the client is not valid.
156 \value Status.BadRequestTypeInvalid The security token request type is not valid.
157 \value Status.BadSecurityModeRejected The security mode does not meet the requirements set by the server.
158 \value Status.BadSecurityPolicyRejected The security policy does not meet the requirements set by the server.
159 \value Status.BadTooManySessions The server has reached its maximum number of sessions.
160 \value Status.BadUserSignatureInvalid The user token signature is missing or invalid.
161 \value Status.BadApplicationSignatureInvalid The signature generated with the client certificate is missing or invalid.
162 \value Status.BadNoValidCertificates The client did not provide at least one software certificate that is valid and meets the profile requirements for the server.
163 \value Status.BadIdentityChangeNotSupported The server does not support changing the user identity assigned to the session.
164 \value Status.BadRequestCancelledByRequest The request was cancelled by the client with the Cancel service.
165 \value Status.BadParentNodeIdInvalid The parent node id does not to refer to a valid node.
166 \value Status.BadReferenceNotAllowed The reference could not be created because it violates constraints imposed by the data model.
167 \value Status.BadNodeIdRejected The requested node id was reject because it was either invalid or server does not allow node ids to be specified by the client.
168 \value Status.BadNodeIdExists The requested node id is already used by another node.
169 \value Status.BadNodeClassInvalid The node class is not valid.
170 \value Status.BadBrowseNameInvalid The browse name is invalid.
171 \value Status.BadBrowseNameDuplicated The browse name is not unique among nodes that share the same relationship with the parent.
172 \value Status.BadNodeAttributesInvalid The node attributes are not valid for the node class.
173 \value Status.BadTypeDefinitionInvalid The type definition node id does not reference an appropriate type node.
174 \value Status.BadSourceNodeIdInvalid The source node id does not reference a valid node.
175 \value Status.BadTargetNodeIdInvalid The target node id does not reference a valid node.
176 \value Status.BadDuplicateReferenceNotAllowed The reference type between the nodes is already defined.
177 \value Status.BadInvalidSelfReference The server does not allow this type of self reference on this node.
178 \value Status.BadReferenceLocalOnly The reference type is not valid for a reference to a remote server.
179 \value Status.BadNoDeleteRights The server will not allow the node to be deleted.
180 \value Status.UncertainReferenceNotDeleted The server was not able to delete all target references.
181 \value Status.BadServerIndexInvalid The server index is not valid.
182 \value Status.BadViewIdUnknown The view id does not refer to a valid view node.
183 \value Status.BadViewTimestampInvalid The view timestamp is not available or not supported.
184 \value Status.BadViewParameterMismatch The view parameters are not consistent with each other.
185 \value Status.BadViewVersionInvalid The view version is not available or not supported.
186 \value Status.UncertainNotAllNodesAvailable The list of references may not be complete because the underlying system is not available.
187 \value Status.GoodResultsMayBeIncomplete The server should have followed a reference to a node in a remote server but did not. The result set may be incomplete.
188 \value Status.BadNotTypeDefinition The provided Nodeid was not a type definition nodeid.
189 \value Status.UncertainReferenceOutOfServer One of the references to follow in the relative path references to a node in the address space in another server.
190 \value Status.BadTooManyMatches The requested operation has too many matches to return.
191 \value Status.BadQueryTooComplex The requested operation requires too many resources in the server.
192 \value Status.BadNoMatch The requested operation has no match to return.
193 \value Status.BadMaxAgeInvalid The max age parameter is invalid.
194 \value Status.BadSecurityModeInsufficient The operation is not permitted over the current secure channel.
195 \value Status.BadHistoryOperationInvalid The history details parameter is not valid.
196 \value Status.BadHistoryOperationUnsupported The server does not support the requested operation.
197 \value Status.BadInvalidTimestampArgument The defined timestamp to return was invalid.
198 \value Status.BadWriteNotSupported The server does not support writing the combination of value, status and timestamps provided.
199 \value Status.BadTypeMismatch The value supplied for the attribute is not of the same type as the attribute's value.
200 \value Status.BadMethodInvalid The method id does not refer to a method for the specified object.
201 \value Status.BadArgumentsMissing The client did not specify all of the input arguments for the method.
202 \value Status.BadNotExecutable The executable attribute does not allow the execution of the method.
203 \value Status.BadTooManySubscriptions The server has reached its maximum number of subscriptions.
204 \value Status.BadTooManyPublishRequests The server has reached the maximum number of queued publish requests.
205 \value Status.BadNoSubscription There is no subscription available for this session.
206 \value Status.BadSequenceNumberUnknown The sequence number is unknown to the server.
207 \value Status.GoodRetransmissionQueueNotSupported The Server does not support retransmission queue and acknowledgement of sequence numbers is not available.
208 \value Status.BadMessageNotAvailable The requested notification message is no longer available.
209 \value Status.BadInsufficientClientProfile The client of the current session does not support one or more Profiles that are necessary for the subscription.
210 \value Status.BadStateNotActive The sub-state machine is not currently active.
211 \value Status.BadAlreadyExists An equivalent rule already exists.
212 \value Status.BadTcpServerTooBusy The server cannot process the request because it is too busy.
213 \value Status.BadTcpMessageTypeInvalid The type of the message specified in the header invalid.
214 \value Status.BadTcpSecureChannelUnknown The SecureChannelId and/or TokenId are not currently in use.
215 \value Status.BadTcpMessageTooLarge The size of the message chunk specified in the header is too large.
216 \value Status.BadTcpNotEnoughResources There are not enough resources to process the request.
217 \value Status.BadTcpInternalError An internal error occurred.
218 \value Status.BadTcpEndpointUrlInvalid The server does not recognize the QueryString specified.
219 \value Status.BadRequestInterrupted The request could not be sent because of a network interruption.
220 \value Status.BadRequestTimeout Timeout occurred while processing the request.
221 \value Status.BadSecureChannelClosed The secure channel has been closed.
222 \value Status.BadSecureChannelTokenUnknown The token has expired or is not recognized.
223 \value Status.BadSequenceNumberInvalid The sequence number is not valid.
224 \value Status.BadProtocolVersionUnsupported The applications do not have compatible protocol versions.
225 \value Status.BadConfigurationError There is a problem with the configuration that affects the usefulness of the value.
226 \value Status.BadNotConnected The variable should receive its value from another variable, but has never been configured to do so.
227 \value Status.BadDeviceFailure There has been a failure in the device/data source that generates the value that has affected the value.
228 \value Status.BadSensorFailure There has been a failure in the sensor from which the value is derived by the device/data source.
229 \value Status.BadOutOfService The source of the data is not operational.
230 \value Status.BadDeadbandFilterInvalid The deadband filter is not valid.
231 \value Status.UncertainNoCommunicationLastUsableValue Communication to the data source has failed. The variable value is the last value that had a good quality.
232 \value Status.UncertainLastUsableValue Whatever was updating this value has stopped doing so.
233 \value Status.UncertainSubstituteValue The value is an operational value that was manually overwritten.
234 \value Status.UncertainInitialValue The value is an initial value for a variable that normally receives its value from another variable.
235 \value Status.UncertainSensorNotAccurate The value is at one of the sensor limits.
236 \value Status.UncertainEngineeringUnitsExceeded The value is outside of the range of values defined for this parameter.
237 \value Status.UncertainSubNormal The value is derived from multiple sources and has less than the required number of Good sources.
238 \value Status.GoodLocalOverride The value has been overridden.
239 \value Status.BadRefreshInProgress This Condition refresh failed, a Condition refresh operation is already in progress.
240 \value Status.BadConditionAlreadyDisabled This condition has already been disabled.
241 \value Status.BadConditionAlreadyEnabled This condition has already been enabled.
242 \value Status.BadConditionDisabled Property not available, this condition is disabled.
243 \value Status.BadEventIdUnknown The specified event id is not recognized.
244 \value Status.BadEventNotAcknowledgeable The event cannot be acknowledged.
245 \value Status.BadDialogNotActive The dialog condition is not active.
246 \value Status.BadDialogResponseInvalid The response is not valid for the dialog.
247 \value Status.BadConditionBranchAlreadyAcked The condition branch has already been acknowledged.
248 \value Status.BadConditionBranchAlreadyConfirmed The condition branch has already been confirmed.
249 \value Status.BadConditionAlreadyShelved The condition has already been shelved.
250 \value Status.BadConditionNotShelved The condition is not currently shelved.
251 \value Status.BadShelvingTimeOutOfRange The shelving time not within an acceptable range.
252 \value Status.BadNoData No data exists for the requested time range or event filter.
253 \value Status.BadBoundNotFound No data found to provide upper or lower bound value.
254 \value Status.BadBoundNotSupported The server cannot retrieve a bound for the variable.
255 \value Status.BadDataLost Data is missing due to collection started/stopped/lost.
256 \value Status.BadDataUnavailable Expected data is unavailable for the requested time range due to an un-mounted volume, an off-line archive or tape, or similar reason for temporary unavailability.
257 \value Status.BadEntryExists The data or event was not successfully inserted because a matching entry exists.
258 \value Status.BadNoEntryExists The data or event was not successfully updated because no matching entry exists.
259 \value Status.BadTimestampNotSupported The client requested history using a timestamp format the server does not support (i.e requested ServerTimestamp when server only supports SourceTimestamp).
260 \value Status.GoodEntryInserted The data or event was successfully inserted into the historical database.
261 \value Status.GoodEntryReplaced The data or event field was successfully replaced in the historical database.
262 \value Status.UncertainDataSubNormal The value is derived from multiple values and has less than the required number of Good values.
263 \value Status.GoodNoData No data exists for the requested time range or event filter.
264 \value Status.GoodMoreData More data is available in the time range beyond the number of values requested.
265 \value Status.BadAggregateListMismatch The requested number of Aggregates does not match the requested number of NodeIds.
266 \value Status.BadAggregateNotSupported The requested Aggregate is not support by the server.
267 \value Status.BadAggregateInvalidInputs The aggregate value could not be derived due to invalid data inputs.
268 \value Status.BadAggregateConfigurationRejected The aggregate configuration is not valid for specified node.
269 \value Status.GoodDataIgnored The request specifies fields which are not valid for the EventType or cannot be saved by the historian.
270 \value Status.BadRequestNotAllowed The request was rejected by the server because it did not meet the criteria set by the server.
271 \value Status.BadRequestNotComplete The request has not been processed by the server yet.
272 \value Status.BadTransactionPending The operation is not allowed because a transaction is in progress.
273 \value Status.BadTicketRequired The device identity needs a ticket before it can be accepted.
274 \value Status.BadTicketInvalid The device identity needs a ticket before it can be accepted.
275 \value Status.BadLocked The requested operation is not allowed, because the Node is locked by a different application.
276 \value Status.GoodEdited The value does not come from the real source and has been edited by the server.
277 \value Status.GoodPostActionFailed There was an error in execution of these post-actions.
278 \value Status.UncertainDominantValueChanged The related EngineeringUnit has been changed but the Variable Value is still provided based on the previous unit.
279 \value Status.GoodDependentValueChanged A dependent value has been changed but the change has not been applied to the device.
280 \value Status.BadDominantValueChanged The related EngineeringUnit has been changed but this change has not been applied to the device. The Variable Value is still dependent on the previous unit but its status is currently Bad.
281 \value Status.UncertainDependentValueChanged A dependent value has been changed but the change has not been applied to the device. The quality of the dominant variable is uncertain.
282 \value Status.BadDependentValueChanged A dependent value has been changed but the change has not been applied to the device. The quality of the dominant variable is Bad.
283 \value Status.GoodEdited_DependentValueChanged It is delivered with a dominant Variable value when a dependent Variable has changed but the change has not been applied.
284 \value Status.GoodEdited_DominantValueChanged It is delivered with a dependent Variable value when a dominant Variable has changed but the change has not been applied.
285 \value Status.GoodEdited_DominantValueChanged_DependentValueChanged It is delivered with a dependent Variable value when a dominant or dependent Variable has changed but change has not been applied.
286 \value Status.BadEdited_OutOfRange It is delivered with a Variable value when Variable has changed but the value is not legal.
287 \value Status.BadInitialValue_OutOfRange It is delivered with a Variable value when a source Variable has changed but the value is not legal.
288 \value Status.BadOutOfRange_DominantValueChanged It is delivered with a dependent Variable value when a dominant Variable has changed and the value is not legal.
289 \value Status.BadEdited_OutOfRange_DominantValueChanged It is delivered with a dependent Variable value when a dominant Variable has changed, the value is not legal and the change has not been applied.
290 \value Status.BadOutOfRange_DominantValueChanged_DependentValueChanged It is delivered with a dependent Variable value when a dominant or dependent Variable has changed and the value is not legal.
291 \value Status.BadEdited_OutOfRange_DominantValueChanged_DependentValueChanged It is delivered with a dependent Variable value when a dominant or dependent Variable has changed, the value is not legal and the change has not been applied.
292 \value Status.GoodCommunicationEvent The communication layer has raised an event.
293 \value Status.GoodShutdownEvent The system is shutting down.
294 \value Status.GoodCallAgain The operation is not finished and needs to be called again.
295 \value Status.GoodNonCriticalTimeout A non-critical timeout occurred.
296 \value Status.BadInvalidArgument One or more arguments are invalid.
297 \value Status.BadConnectionRejected Could not establish a network connection to remote server.
298 \value Status.BadDisconnect The server has disconnected from the client.
299 \value Status.BadConnectionClosed The network connection has been closed.
300 \value Status.BadInvalidState The operation cannot be completed because the object is closed, uninitialized or in some other invalid state.
301 \value Status.BadEndOfStream Cannot move beyond end of the stream.
302 \value Status.BadNoDataAvailable No data is currently available for reading from a non-blocking stream.
303 \value Status.BadWaitingForResponse The asynchronous operation is waiting for a response.
304 \value Status.BadOperationAbandoned The asynchronous operation was abandoned by the caller.
305 \value Status.BadExpectedStreamToBlock The stream did not return all data requested (possibly because it is a non-blocking stream).
306 \value Status.BadWouldBlock Non blocking behaviour is required and the operation would block.
307 \value Status.BadSyntaxError A value had an invalid syntax.
308 \value Status.BadMaxConnectionsReached The operation could not be finished because all available connections are in use.
309 \value Status.UncertainTransducerInManual The value may not be accurate because the transducer is in manual mode.
310 \value Status.UncertainSimulatedValue The value is simulated.
311 \value Status.UncertainSensorCalibration The value may not be accurate due to a sensor calibration fault.
312 \value Status.UncertainConfigurationError The value may not be accurate due to a configuration issue.
313 \value Status.GoodCascadeInitializationAcknowledged The value source supports cascade handshaking and the value has been Initialized based on an initialization request from a cascade secondary.
314 \value Status.GoodCascadeInitializationRequest The value source supports cascade handshaking and is requesting initialization of a cascade primary.
315 \value Status.GoodCascadeNotInvited The value source supports cascade handshaking, however, the source’s current state does not allow for cascade.
316 \value Status.GoodCascadeNotSelected The value source supports cascade handshaking, however, the source has not selected the corresponding cascade primary for use.
317 \value Status.GoodFaultStateActive There is a fault state condition active in the value source.
318 \value Status.GoodInitiateFaultState A fault state condition is being requested of the destination.
319 \value Status.GoodCascade The value is accurate, and the signal source supports cascade handshaking.
320 \value Status.BadDataSetIdInvalid The DataSet specified for the DataSetWriter creation is invalid.
321*/
322
323OpcUaStatus::OpcUaStatus() = default;
324
325OpcUaStatus::OpcUaStatus(OpcUaStatus::Status status)
326{
327 m_statusCode = static_cast<quint32>(status) << 16;
328}
329
330OpcUaStatus::~OpcUaStatus() = default;
331
332bool OpcUaStatus::isBad() const
333{
334 return m_statusCode & 0x80000000;
335}
336
337bool OpcUaStatus::isGood() const
338{
339 return !isBad();
340}
341
342OpcUaStatus::OpcUaStatus(QOpcUa::UaStatusCode uaStatusCode)
343{
344 m_statusCode = static_cast<quint32>(uaStatusCode);
345}
346
347OpcUaStatus::Status OpcUaStatus::status() const
348{
349 switch (static_cast<QOpcUa::UaStatusCode>(m_statusCode)) {
350 case QOpcUa::Good:
351 return Status::Good;
352 case QOpcUa::Uncertain:
353 return Status::Uncertain;
354 case QOpcUa::Bad:
355 return Status::Bad;
356 case QOpcUa::BadUnexpectedError:
357 return Status::BadUnexpectedError;
358 case QOpcUa::BadInternalError:
359 return Status::BadInternalError;
360 case QOpcUa::BadOutOfMemory:
361 return Status::BadOutOfMemory;
362 case QOpcUa::BadResourceUnavailable:
363 return Status::BadResourceUnavailable;
364 case QOpcUa::BadCommunicationError:
365 return Status::BadCommunicationError;
366 case QOpcUa::BadEncodingError:
367 return Status::BadEncodingError;
368 case QOpcUa::BadDecodingError:
369 return Status::BadDecodingError;
370 case QOpcUa::BadEncodingLimitsExceeded:
371 return Status::BadEncodingLimitsExceeded;
372 case QOpcUa::BadRequestTooLarge:
373 return Status::BadRequestTooLarge;
374 case QOpcUa::BadResponseTooLarge:
375 return Status::BadResponseTooLarge;
376 case QOpcUa::BadUnknownResponse:
377 return Status::BadUnknownResponse;
378 case QOpcUa::BadTimeout:
379 return Status::BadTimeout;
380 case QOpcUa::BadServiceUnsupported:
381 return Status::BadServiceUnsupported;
382 case QOpcUa::BadShutdown:
383 return Status::BadShutdown;
384 case QOpcUa::BadServerNotConnected:
385 return Status::BadServerNotConnected;
386 case QOpcUa::BadServerHalted:
387 return Status::BadServerHalted;
388 case QOpcUa::BadNothingToDo:
389 return Status::BadNothingToDo;
390 case QOpcUa::BadTooManyOperations:
391 return Status::BadTooManyOperations;
392 case QOpcUa::BadTooManyMonitoredItems:
393 return Status::BadTooManyMonitoredItems;
394 case QOpcUa::BadDataTypeIdUnknown:
395 return Status::BadDataTypeIdUnknown;
396 case QOpcUa::BadCertificateInvalid:
397 return Status::BadCertificateInvalid;
398 case QOpcUa::BadSecurityChecksFailed:
399 return Status::BadSecurityChecksFailed;
400 case QOpcUa::BadCertificatePolicyCheckFailed:
401 return Status::BadCertificatePolicyCheckFailed;
402 case QOpcUa::BadCertificateTimeInvalid:
403 return Status::BadCertificateTimeInvalid;
404 case QOpcUa::BadCertificateIssuerTimeInvalid:
405 return Status::BadCertificateIssuerTimeInvalid;
406 case QOpcUa::BadCertificateHostNameInvalid:
407 return Status::BadCertificateHostNameInvalid;
408 case QOpcUa::BadCertificateUriInvalid:
409 return Status::BadCertificateUriInvalid;
410 case QOpcUa::BadCertificateUseNotAllowed:
411 return Status::BadCertificateUseNotAllowed;
412 case QOpcUa::BadCertificateIssuerUseNotAllowed:
413 return Status::BadCertificateIssuerUseNotAllowed;
414 case QOpcUa::BadCertificateUntrusted:
415 return Status::BadCertificateUntrusted;
416 case QOpcUa::BadCertificateRevocationUnknown:
417 return Status::BadCertificateRevocationUnknown;
418 case QOpcUa::BadCertificateIssuerRevocationUnknown:
419 return Status::BadCertificateIssuerRevocationUnknown;
420 case QOpcUa::BadCertificateRevoked:
421 return Status::BadCertificateRevoked;
422 case QOpcUa::BadCertificateIssuerRevoked:
423 return Status::BadCertificateIssuerRevoked;
424 case QOpcUa::BadCertificateChainIncomplete:
425 return Status::BadCertificateChainIncomplete;
426 case QOpcUa::BadUserAccessDenied:
427 return Status::BadUserAccessDenied;
428 case QOpcUa::BadIdentityTokenInvalid:
429 return Status::BadIdentityTokenInvalid;
430 case QOpcUa::BadIdentityTokenRejected:
431 return Status::BadIdentityTokenRejected;
432 case QOpcUa::BadSecureChannelIdInvalid:
433 return Status::BadSecureChannelIdInvalid;
434 case QOpcUa::BadInvalidTimestamp:
435 return Status::BadInvalidTimestamp;
436 case QOpcUa::BadNonceInvalid:
437 return Status::BadNonceInvalid;
438 case QOpcUa::BadSessionIdInvalid:
439 return Status::BadSessionIdInvalid;
440 case QOpcUa::BadSessionClosed:
441 return Status::BadSessionClosed;
442 case QOpcUa::BadSessionNotActivated:
443 return Status::BadSessionNotActivated;
444 case QOpcUa::BadSubscriptionIdInvalid:
445 return Status::BadSubscriptionIdInvalid;
446 case QOpcUa::BadRequestHeaderInvalid:
447 return Status::BadRequestHeaderInvalid;
448 case QOpcUa::BadTimestampsToReturnInvalid:
449 return Status::BadTimestampsToReturnInvalid;
450 case QOpcUa::BadRequestCancelledByClient:
451 return Status::BadRequestCancelledByClient;
452 case QOpcUa::BadTooManyArguments:
453 return Status::BadTooManyArguments;
454 case QOpcUa::BadLicenseExpired:
455 return Status::BadLicenseExpired;
456 case QOpcUa::BadLicenseLimitsExceeded:
457 return Status::BadLicenseLimitsExceeded;
458 case QOpcUa::BadLicenseNotAvailable:
459 return Status::BadLicenseNotAvailable;
460 case QOpcUa::GoodSubscriptionTransferred:
461 return Status::GoodSubscriptionTransferred;
462 case QOpcUa::GoodCompletesAsynchronously:
463 return Status::GoodCompletesAsynchronously;
464 case QOpcUa::GoodOverload:
465 return Status::GoodOverload;
466 case QOpcUa::GoodClamped:
467 return Status::GoodClamped;
468 case QOpcUa::BadNoCommunication:
469 return Status::BadNoCommunication;
470 case QOpcUa::BadWaitingForInitialData:
471 return Status::BadWaitingForInitialData;
472 case QOpcUa::BadNodeIdInvalid:
473 return Status::BadNodeIdInvalid;
474 case QOpcUa::BadNodeIdUnknown:
475 return Status::BadNodeIdUnknown;
476 case QOpcUa::BadAttributeIdInvalid:
477 return Status::BadAttributeIdInvalid;
478 case QOpcUa::BadIndexRangeInvalid:
479 return Status::BadIndexRangeInvalid;
480 case QOpcUa::BadIndexRangeNoData:
481 return Status::BadIndexRangeNoData;
482 case QOpcUa::BadDataEncodingInvalid:
483 return Status::BadDataEncodingInvalid;
484 case QOpcUa::BadDataEncodingUnsupported:
485 return Status::BadDataEncodingUnsupported;
486 case QOpcUa::BadNotReadable:
487 return Status::BadNotReadable;
488 case QOpcUa::BadNotWritable:
489 return Status::BadNotWritable;
490 case QOpcUa::BadOutOfRange:
491 return Status::BadOutOfRange;
492 case QOpcUa::BadNotSupported:
493 return Status::BadNotSupported;
494 case QOpcUa::BadNotFound:
495 return Status::BadNotFound;
496 case QOpcUa::BadObjectDeleted:
497 return Status::BadObjectDeleted;
498 case QOpcUa::BadNotImplemented:
499 return Status::BadNotImplemented;
500 case QOpcUa::BadMonitoringModeInvalid:
501 return Status::BadMonitoringModeInvalid;
502 case QOpcUa::BadMonitoredItemIdInvalid:
503 return Status::BadMonitoredItemIdInvalid;
504 case QOpcUa::BadMonitoredItemFilterInvalid:
505 return Status::BadMonitoredItemFilterInvalid;
506 case QOpcUa::BadMonitoredItemFilterUnsupported:
507 return Status::BadMonitoredItemFilterUnsupported;
508 case QOpcUa::BadFilterNotAllowed:
509 return Status::BadFilterNotAllowed;
510 case QOpcUa::BadStructureMissing:
511 return Status::BadStructureMissing;
512 case QOpcUa::BadEventFilterInvalid:
513 return Status::BadEventFilterInvalid;
514 case QOpcUa::BadContentFilterInvalid:
515 return Status::BadContentFilterInvalid;
516 case QOpcUa::BadFilterOperatorInvalid:
517 return Status::BadFilterOperatorInvalid;
518 case QOpcUa::BadFilterOperatorUnsupported:
519 return Status::BadFilterOperatorUnsupported;
520 case QOpcUa::BadFilterOperandCountMismatch:
521 return Status::BadFilterOperandCountMismatch;
522 case QOpcUa::BadFilterOperandInvalid:
523 return Status::BadFilterOperandInvalid;
524 case QOpcUa::BadFilterElementInvalid:
525 return Status::BadFilterElementInvalid;
526 case QOpcUa::BadFilterLiteralInvalid:
527 return Status::BadFilterLiteralInvalid;
528 case QOpcUa::BadContinuationPointInvalid:
529 return Status::BadContinuationPointInvalid;
530 case QOpcUa::BadNoContinuationPoints:
531 return Status::BadNoContinuationPoints;
532 case QOpcUa::BadReferenceTypeIdInvalid:
533 return Status::BadReferenceTypeIdInvalid;
534 case QOpcUa::BadBrowseDirectionInvalid:
535 return Status::BadBrowseDirectionInvalid;
536 case QOpcUa::BadNodeNotInView:
537 return Status::BadNodeNotInView;
538 case QOpcUa::BadNumericOverflow:
539 return Status::BadNumericOverflow;
540 case QOpcUa::BadServerUriInvalid:
541 return Status::BadServerUriInvalid;
542 case QOpcUa::BadServerNameMissing:
543 return Status::BadServerNameMissing;
544 case QOpcUa::BadDiscoveryUrlMissing:
545 return Status::BadDiscoveryUrlMissing;
546 case QOpcUa::BadSempahoreFileMissing:
547 return Status::BadSempahoreFileMissing;
548 case QOpcUa::BadRequestTypeInvalid:
549 return Status::BadRequestTypeInvalid;
550 case QOpcUa::BadSecurityModeRejected:
551 return Status::BadSecurityModeRejected;
552 case QOpcUa::BadSecurityPolicyRejected:
553 return Status::BadSecurityPolicyRejected;
554 case QOpcUa::BadTooManySessions:
555 return Status::BadTooManySessions;
556 case QOpcUa::BadUserSignatureInvalid:
557 return Status::BadUserSignatureInvalid;
558 case QOpcUa::BadApplicationSignatureInvalid:
559 return Status::BadApplicationSignatureInvalid;
560 case QOpcUa::BadNoValidCertificates:
561 return Status::BadNoValidCertificates;
562 case QOpcUa::BadIdentityChangeNotSupported:
563 return Status::BadIdentityChangeNotSupported;
564 case QOpcUa::BadRequestCancelledByRequest:
565 return Status::BadRequestCancelledByRequest;
566 case QOpcUa::BadParentNodeIdInvalid:
567 return Status::BadParentNodeIdInvalid;
568 case QOpcUa::BadReferenceNotAllowed:
569 return Status::BadReferenceNotAllowed;
570 case QOpcUa::BadNodeIdRejected:
571 return Status::BadNodeIdRejected;
572 case QOpcUa::BadNodeIdExists:
573 return Status::BadNodeIdExists;
574 case QOpcUa::BadNodeClassInvalid:
575 return Status::BadNodeClassInvalid;
576 case QOpcUa::BadBrowseNameInvalid:
577 return Status::BadBrowseNameInvalid;
578 case QOpcUa::BadBrowseNameDuplicated:
579 return Status::BadBrowseNameDuplicated;
580 case QOpcUa::BadNodeAttributesInvalid:
581 return Status::BadNodeAttributesInvalid;
582 case QOpcUa::BadTypeDefinitionInvalid:
583 return Status::BadTypeDefinitionInvalid;
584 case QOpcUa::BadSourceNodeIdInvalid:
585 return Status::BadSourceNodeIdInvalid;
586 case QOpcUa::BadTargetNodeIdInvalid:
587 return Status::BadTargetNodeIdInvalid;
588 case QOpcUa::BadDuplicateReferenceNotAllowed:
589 return Status::BadDuplicateReferenceNotAllowed;
590 case QOpcUa::BadInvalidSelfReference:
591 return Status::BadInvalidSelfReference;
592 case QOpcUa::BadReferenceLocalOnly:
593 return Status::BadReferenceLocalOnly;
594 case QOpcUa::BadNoDeleteRights:
595 return Status::BadNoDeleteRights;
596 case QOpcUa::UncertainReferenceNotDeleted:
597 return Status::UncertainReferenceNotDeleted;
598 case QOpcUa::BadServerIndexInvalid:
599 return Status::BadServerIndexInvalid;
600 case QOpcUa::BadViewIdUnknown:
601 return Status::BadViewIdUnknown;
602 case QOpcUa::BadViewTimestampInvalid:
603 return Status::BadViewTimestampInvalid;
604 case QOpcUa::BadViewParameterMismatch:
605 return Status::BadViewParameterMismatch;
606 case QOpcUa::BadViewVersionInvalid:
607 return Status::BadViewVersionInvalid;
608 case QOpcUa::UncertainNotAllNodesAvailable:
609 return Status::UncertainNotAllNodesAvailable;
610 case QOpcUa::GoodResultsMayBeIncomplete:
611 return Status::GoodResultsMayBeIncomplete;
612 case QOpcUa::BadNotTypeDefinition:
613 return Status::BadNotTypeDefinition;
614 case QOpcUa::UncertainReferenceOutOfServer:
615 return Status::UncertainReferenceOutOfServer;
616 case QOpcUa::BadTooManyMatches:
617 return Status::BadTooManyMatches;
618 case QOpcUa::BadQueryTooComplex:
619 return Status::BadQueryTooComplex;
620 case QOpcUa::BadNoMatch:
621 return Status::BadNoMatch;
622 case QOpcUa::BadMaxAgeInvalid:
623 return Status::BadMaxAgeInvalid;
624 case QOpcUa::BadSecurityModeInsufficient:
625 return Status::BadSecurityModeInsufficient;
626 case QOpcUa::BadHistoryOperationInvalid:
627 return Status::BadHistoryOperationInvalid;
628 case QOpcUa::BadHistoryOperationUnsupported:
629 return Status::BadHistoryOperationUnsupported;
630 case QOpcUa::BadInvalidTimestampArgument:
631 return Status::BadInvalidTimestampArgument;
632 case QOpcUa::BadWriteNotSupported:
633 return Status::BadWriteNotSupported;
634 case QOpcUa::BadTypeMismatch:
635 return Status::BadTypeMismatch;
636 case QOpcUa::BadMethodInvalid:
637 return Status::BadMethodInvalid;
638 case QOpcUa::BadArgumentsMissing:
639 return Status::BadArgumentsMissing;
640 case QOpcUa::BadNotExecutable:
641 return Status::BadNotExecutable;
642 case QOpcUa::BadTooManySubscriptions:
643 return Status::BadTooManySubscriptions;
644 case QOpcUa::BadTooManyPublishRequests:
645 return Status::BadTooManyPublishRequests;
646 case QOpcUa::BadNoSubscription:
647 return Status::BadNoSubscription;
648 case QOpcUa::BadSequenceNumberUnknown:
649 return Status::BadSequenceNumberUnknown;
650 case QOpcUa::GoodRetransmissionQueueNotSupported:
651 return Status::GoodRetransmissionQueueNotSupported;
652 case QOpcUa::BadMessageNotAvailable:
653 return Status::BadMessageNotAvailable;
654 case QOpcUa::BadInsufficientClientProfile:
655 return Status::BadInsufficientClientProfile;
656 case QOpcUa::BadStateNotActive:
657 return Status::BadStateNotActive;
658 case QOpcUa::BadAlreadyExists:
659 return Status::BadAlreadyExists;
660 case QOpcUa::BadTcpServerTooBusy:
661 return Status::BadTcpServerTooBusy;
662 case QOpcUa::BadTcpMessageTypeInvalid:
663 return Status::BadTcpMessageTypeInvalid;
664 case QOpcUa::BadTcpSecureChannelUnknown:
665 return Status::BadTcpSecureChannelUnknown;
666 case QOpcUa::BadTcpMessageTooLarge:
667 return Status::BadTcpMessageTooLarge;
668 case QOpcUa::BadTcpNotEnoughResources:
669 return Status::BadTcpNotEnoughResources;
670 case QOpcUa::BadTcpInternalError:
671 return Status::BadTcpInternalError;
672 case QOpcUa::BadTcpEndpointUrlInvalid:
673 return Status::BadTcpEndpointUrlInvalid;
674 case QOpcUa::BadRequestInterrupted:
675 return Status::BadRequestInterrupted;
676 case QOpcUa::BadRequestTimeout:
677 return Status::BadRequestTimeout;
678 case QOpcUa::BadSecureChannelClosed:
679 return Status::BadSecureChannelClosed;
680 case QOpcUa::BadSecureChannelTokenUnknown:
681 return Status::BadSecureChannelTokenUnknown;
682 case QOpcUa::BadSequenceNumberInvalid:
683 return Status::BadSequenceNumberInvalid;
684 case QOpcUa::BadProtocolVersionUnsupported:
685 return Status::BadProtocolVersionUnsupported;
686 case QOpcUa::BadConfigurationError:
687 return Status::BadConfigurationError;
688 case QOpcUa::BadNotConnected:
689 return Status::BadNotConnected;
690 case QOpcUa::BadDeviceFailure:
691 return Status::BadDeviceFailure;
692 case QOpcUa::BadSensorFailure:
693 return Status::BadSensorFailure;
694 case QOpcUa::BadOutOfService:
695 return Status::BadOutOfService;
696 case QOpcUa::BadDeadbandFilterInvalid:
697 return Status::BadDeadbandFilterInvalid;
698 case QOpcUa::UncertainNoCommunicationLastUsableValue:
699 return Status::UncertainNoCommunicationLastUsableValue;
700 case QOpcUa::UncertainLastUsableValue:
701 return Status::UncertainLastUsableValue;
702 case QOpcUa::UncertainSubstituteValue:
703 return Status::UncertainSubstituteValue;
704 case QOpcUa::UncertainInitialValue:
705 return Status::UncertainInitialValue;
706 case QOpcUa::UncertainSensorNotAccurate:
707 return Status::UncertainSensorNotAccurate;
708 case QOpcUa::UncertainEngineeringUnitsExceeded:
709 return Status::UncertainEngineeringUnitsExceeded;
710 case QOpcUa::UncertainSubNormal:
711 return Status::UncertainSubNormal;
712 case QOpcUa::GoodLocalOverride:
713 return Status::GoodLocalOverride;
714 case QOpcUa::BadRefreshInProgress:
715 return Status::BadRefreshInProgress;
716 case QOpcUa::BadConditionAlreadyDisabled:
717 return Status::BadConditionAlreadyDisabled;
718 case QOpcUa::BadConditionAlreadyEnabled:
719 return Status::BadConditionAlreadyEnabled;
720 case QOpcUa::BadConditionDisabled:
721 return Status::BadConditionDisabled;
722 case QOpcUa::BadEventIdUnknown:
723 return Status::BadEventIdUnknown;
724 case QOpcUa::BadEventNotAcknowledgeable:
725 return Status::BadEventNotAcknowledgeable;
726 case QOpcUa::BadDialogNotActive:
727 return Status::BadDialogNotActive;
728 case QOpcUa::BadDialogResponseInvalid:
729 return Status::BadDialogResponseInvalid;
730 case QOpcUa::BadConditionBranchAlreadyAcked:
731 return Status::BadConditionBranchAlreadyAcked;
732 case QOpcUa::BadConditionBranchAlreadyConfirmed:
733 return Status::BadConditionBranchAlreadyConfirmed;
734 case QOpcUa::BadConditionAlreadyShelved:
735 return Status::BadConditionAlreadyShelved;
736 case QOpcUa::BadConditionNotShelved:
737 return Status::BadConditionNotShelved;
738 case QOpcUa::BadShelvingTimeOutOfRange:
739 return Status::BadShelvingTimeOutOfRange;
740 case QOpcUa::BadNoData:
741 return Status::BadNoData;
742 case QOpcUa::BadBoundNotFound:
743 return Status::BadBoundNotFound;
744 case QOpcUa::BadBoundNotSupported:
745 return Status::BadBoundNotSupported;
746 case QOpcUa::BadDataLost:
747 return Status::BadDataLost;
748 case QOpcUa::BadDataUnavailable:
749 return Status::BadDataUnavailable;
750 case QOpcUa::BadEntryExists:
751 return Status::BadEntryExists;
752 case QOpcUa::BadNoEntryExists:
753 return Status::BadNoEntryExists;
754 case QOpcUa::BadTimestampNotSupported:
755 return Status::BadTimestampNotSupported;
756 case QOpcUa::GoodEntryInserted:
757 return Status::GoodEntryInserted;
758 case QOpcUa::GoodEntryReplaced:
759 return Status::GoodEntryReplaced;
760 case QOpcUa::UncertainDataSubNormal:
761 return Status::UncertainDataSubNormal;
762 case QOpcUa::GoodNoData:
763 return Status::GoodNoData;
764 case QOpcUa::GoodMoreData:
765 return Status::GoodMoreData;
766 case QOpcUa::BadAggregateListMismatch:
767 return Status::BadAggregateListMismatch;
768 case QOpcUa::BadAggregateNotSupported:
769 return Status::BadAggregateNotSupported;
770 case QOpcUa::BadAggregateInvalidInputs:
771 return Status::BadAggregateInvalidInputs;
772 case QOpcUa::BadAggregateConfigurationRejected:
773 return Status::BadAggregateConfigurationRejected;
774 case QOpcUa::GoodDataIgnored:
775 return Status::GoodDataIgnored;
776 case QOpcUa::BadRequestNotAllowed:
777 return Status::BadRequestNotAllowed;
778 case QOpcUa::BadRequestNotComplete:
779 return Status::BadRequestNotComplete;
780 case QOpcUa::BadTransactionPending:
781 return Status::BadTransactionPending;
782 case QOpcUa::BadTicketRequired:
783 return Status::BadTicketRequired;
784 case QOpcUa::BadTicketInvalid:
785 return Status::BadTicketInvalid;
786 case QOpcUa::BadLocked:
787 return Status::BadLocked;
788 case QOpcUa::GoodEdited:
789 return Status::GoodEdited;
790 case QOpcUa::GoodPostActionFailed:
791 return Status::GoodPostActionFailed;
792 case QOpcUa::UncertainDominantValueChanged:
793 return Status::UncertainDominantValueChanged;
794 case QOpcUa::GoodDependentValueChanged:
795 return Status::GoodDependentValueChanged;
796 case QOpcUa::BadDominantValueChanged:
797 return Status::BadDominantValueChanged;
798 case QOpcUa::UncertainDependentValueChanged:
799 return Status::UncertainDependentValueChanged;
800 case QOpcUa::BadDependentValueChanged:
801 return Status::BadDependentValueChanged;
802 case QOpcUa::GoodEdited_DependentValueChanged:
803 return Status::GoodEdited_DependentValueChanged;
804 case QOpcUa::GoodEdited_DominantValueChanged:
805 return Status::GoodEdited_DominantValueChanged;
806 case QOpcUa::GoodEdited_DominantValueChanged_DependentValueChanged:
807 return Status::GoodEdited_DominantValueChanged_DependentValueChanged;
808 case QOpcUa::BadEdited_OutOfRange:
809 return Status::BadEdited_OutOfRange;
810 case QOpcUa::BadInitialValue_OutOfRange:
811 return Status::BadInitialValue_OutOfRange;
812 case QOpcUa::BadOutOfRange_DominantValueChanged:
813 return Status::BadOutOfRange_DominantValueChanged;
814 case QOpcUa::BadEdited_OutOfRange_DominantValueChanged:
815 return Status::BadEdited_OutOfRange_DominantValueChanged;
816 case QOpcUa::BadOutOfRange_DominantValueChanged_DependentValueChanged:
817 return Status::BadOutOfRange_DominantValueChanged_DependentValueChanged;
818 case QOpcUa::BadEdited_OutOfRange_DominantValueChanged_DependentValueChanged:
819 return Status::BadEdited_OutOfRange_DominantValueChanged_DependentValueChanged;
820 case QOpcUa::GoodCommunicationEvent:
821 return Status::GoodCommunicationEvent;
822 case QOpcUa::GoodShutdownEvent:
823 return Status::GoodShutdownEvent;
824 case QOpcUa::GoodCallAgain:
825 return Status::GoodCallAgain;
826 case QOpcUa::GoodNonCriticalTimeout:
827 return Status::GoodNonCriticalTimeout;
828 case QOpcUa::BadInvalidArgument:
829 return Status::BadInvalidArgument;
830 case QOpcUa::BadConnectionRejected:
831 return Status::BadConnectionRejected;
832 case QOpcUa::BadDisconnect:
833 return Status::BadDisconnect;
834 case QOpcUa::BadConnectionClosed:
835 return Status::BadConnectionClosed;
836 case QOpcUa::BadInvalidState:
837 return Status::BadInvalidState;
838 case QOpcUa::BadEndOfStream:
839 return Status::BadEndOfStream;
840 case QOpcUa::BadNoDataAvailable:
841 return Status::BadNoDataAvailable;
842 case QOpcUa::BadWaitingForResponse:
843 return Status::BadWaitingForResponse;
844 case QOpcUa::BadOperationAbandoned:
845 return Status::BadOperationAbandoned;
846 case QOpcUa::BadExpectedStreamToBlock:
847 return Status::BadExpectedStreamToBlock;
848 case QOpcUa::BadWouldBlock:
849 return Status::BadWouldBlock;
850 case QOpcUa::BadSyntaxError:
851 return Status::BadSyntaxError;
852 case QOpcUa::BadMaxConnectionsReached:
853 return Status::BadMaxConnectionsReached;
854 case QOpcUa::UncertainTransducerInManual:
855 return Status::UncertainTransducerInManual;
856 case QOpcUa::UncertainSimulatedValue:
857 return Status::UncertainSimulatedValue;
858 case QOpcUa::UncertainSensorCalibration:
859 return Status::UncertainSensorCalibration;
860 case QOpcUa::UncertainConfigurationError:
861 return Status::UncertainConfigurationError;
862 case QOpcUa::GoodCascadeInitializationAcknowledged:
863 return Status::GoodCascadeInitializationAcknowledged;
864 case QOpcUa::GoodCascadeInitializationRequest:
865 return Status::GoodCascadeInitializationRequest;
866 case QOpcUa::GoodCascadeNotInvited:
867 return Status::GoodCascadeNotInvited;
868 case QOpcUa::GoodCascadeNotSelected:
869 return Status::GoodCascadeNotSelected;
870 case QOpcUa::GoodFaultStateActive:
871 return Status::GoodFaultStateActive;
872 case QOpcUa::GoodInitiateFaultState:
873 return Status::GoodInitiateFaultState;
874 case QOpcUa::GoodCascade:
875 return Status::GoodCascade;
876 case QOpcUa::BadDataSetIdInvalid:
877 return Status::BadDataSetIdInvalid;
878 }
879 return Status::BadUnexpectedError;
880}
881
882QT_END_NAMESPACE
883
884

source code of qtopcua/src/declarative_opcua/opcuastatus.cpp