blob: a6d0a928ae64923a4045ca24a4fa4b64dde6dacc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QOPCUAERRORSTATE_H
#define QOPCUAERRORSTATE_H
#include <QtCore/qshareddata.h>
#include <QtOpcUa/qopcuatype.h>
#include <QtOpcUa/qopcuaglobal.h>
QT_BEGIN_NAMESPACE
class QOpcUaErrorStateData;
class Q_OPCUA_EXPORT QOpcUaErrorState
{
public:
enum class ConnectionStep {
Unknown = 0x00,
CertificateValidation,
OpenSecureChannel,
CreateSession,
ActivateSession
};
QOpcUaErrorState();
QOpcUaErrorState(const QOpcUaErrorState &other);
QOpcUaErrorState &operator =(const QOpcUaErrorState &rhs);
~QOpcUaErrorState();
ConnectionStep connectionStep() const;
void setConnectionStep(ConnectionStep step);
QOpcUa::UaStatusCode errorCode() const;
void setErrorCode(QOpcUa::UaStatusCode error);
bool isClientSideError() const;
void setClientSideError(bool clientSideError);
void setIgnoreError(bool ignore = true);
bool ignoreError() const;
private:
QSharedDataPointer<QOpcUaErrorStateData> data;
};
QT_END_NAMESPACE
Q_DECLARE_METATYPE(QOpcUaErrorState)
#endif // QOPCUAERRORSTATE_H
|