| 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 | #ifndef OPCUAWRITERESULT_P_H |
| 5 | #define OPCUAWRITERESULT_P_H |
| 6 | |
| 7 | #include <private/opcuastatus_p.h> |
| 8 | |
| 9 | #include <QObject> |
| 10 | #include <QDateTime> |
| 11 | #include <QtOpcUa/qopcuatype.h> |
| 12 | |
| 13 | // |
| 14 | // W A R N I N G |
| 15 | // ------------- |
| 16 | // |
| 17 | // This file is not part of the Qt API. It exists purely as an |
| 18 | // implementation detail. This header file may change from version to |
| 19 | // version without notice, or even be removed. |
| 20 | // |
| 21 | // We mean it. |
| 22 | // |
| 23 | |
| 24 | QT_BEGIN_NAMESPACE |
| 25 | |
| 26 | class QOpcUaWriteResult; |
| 27 | class QOpcUaClient; |
| 28 | class OpcUaWriteResultData; |
| 29 | class OpcUaWriteResult |
| 30 | { |
| 31 | Q_GADGET |
| 32 | Q_PROPERTY(QOpcUa::NodeAttribute attribute READ attribute) |
| 33 | Q_PROPERTY(QString indexRange READ indexRange) |
| 34 | Q_PROPERTY(QString nodeId READ nodeId) |
| 35 | Q_PROPERTY(QString namespaceName READ namespaceName) |
| 36 | Q_PROPERTY(OpcUaStatus status READ status) |
| 37 | |
| 38 | public: |
| 39 | OpcUaWriteResult(); |
| 40 | OpcUaWriteResult(const OpcUaWriteResult &other); |
| 41 | OpcUaWriteResult(const QOpcUaWriteResult &other, const QOpcUaClient *client); |
| 42 | OpcUaWriteResult &operator=(const OpcUaWriteResult &rhs); |
| 43 | ~OpcUaWriteResult(); |
| 44 | |
| 45 | const QString &indexRange() const; |
| 46 | const QString &nodeId() const; |
| 47 | QOpcUa::NodeAttribute attribute() const; |
| 48 | const QString &namespaceName() const; |
| 49 | |
| 50 | OpcUaStatus status() const; |
| 51 | |
| 52 | private: |
| 53 | QSharedDataPointer<OpcUaWriteResultData> data; |
| 54 | }; |
| 55 | |
| 56 | |
| 57 | QT_END_NAMESPACE |
| 58 | |
| 59 | Q_DECLARE_METATYPE(OpcUaWriteResult) |
| 60 | |
| 61 | #endif // OPCUAWRITERESULT_P_H |
| 62 |
