| 1 | // Copyright (C) 2018 basysKom GmbH, opensource@basyskom.com | 
|---|---|
| 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 QOPCUAWRITERESULT_H | 
| 5 | #define QOPCUAWRITERESULT_H | 
| 6 | |
| 7 | #include <QtOpcUa/qopcuatype.h> | 
| 8 | |
| 9 | #include <QtCore/qshareddata.h> | 
| 10 | |
| 11 | QT_BEGIN_NAMESPACE | 
| 12 | |
| 13 | class QOpcUaWriteResultData; | 
| 14 | class Q_OPCUA_EXPORT QOpcUaWriteResult | 
| 15 | { | 
| 16 | public: | 
| 17 | QOpcUaWriteResult(); | 
| 18 | QOpcUaWriteResult(const QOpcUaWriteResult &other); | 
| 19 | QOpcUaWriteResult &operator=(const QOpcUaWriteResult &rhs); | 
| 20 | ~QOpcUaWriteResult(); | 
| 21 | |
| 22 | QString nodeId() const; | 
| 23 | void setNodeId(const QString &nodeId); | 
| 24 | |
| 25 | QOpcUa::NodeAttribute attribute() const; | 
| 26 | void setAttribute(QOpcUa::NodeAttribute attribute); | 
| 27 | |
| 28 | QString indexRange() const; | 
| 29 | void setIndexRange(const QString &indexRange); | 
| 30 | |
| 31 | QOpcUa::UaStatusCode statusCode() const; | 
| 32 | void setStatusCode(QOpcUa::UaStatusCode statusCode); | 
| 33 | |
| 34 | private: | 
| 35 | QSharedDataPointer<QOpcUaWriteResultData> data; | 
| 36 | }; | 
| 37 | |
| 38 | QT_END_NAMESPACE | 
| 39 | |
| 40 | Q_DECLARE_METATYPE(QOpcUaWriteResult) | 
| 41 | |
| 42 | #endif // QOPCUAWRITERESULT_H | 
| 43 | 
