| 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 QOPCUAREADRESULT_H |
| 5 | #define QOPCUAREADRESULT_H |
| 6 | |
| 7 | #include <QtOpcUa/qopcuatype.h> |
| 8 | |
| 9 | #include <QtCore/qdatetime.h> |
| 10 | |
| 11 | QT_BEGIN_NAMESPACE |
| 12 | |
| 13 | class QOpcUaReadResultData; |
| 14 | class Q_OPCUA_EXPORT QOpcUaReadResult |
| 15 | { |
| 16 | public: |
| 17 | QOpcUaReadResult(); |
| 18 | QOpcUaReadResult(const QOpcUaReadResult &other); |
| 19 | QOpcUaReadResult &operator=(const QOpcUaReadResult &rhs); |
| 20 | ~QOpcUaReadResult(); |
| 21 | |
| 22 | QDateTime serverTimestamp() const; |
| 23 | void setServerTimestamp(const QDateTime &serverTimestamp); |
| 24 | |
| 25 | QDateTime sourceTimestamp() const; |
| 26 | void setSourceTimestamp(const QDateTime &sourceTimestamp); |
| 27 | |
| 28 | QOpcUa::UaStatusCode statusCode() const; |
| 29 | void setStatusCode(QOpcUa::UaStatusCode statusCode); |
| 30 | |
| 31 | QString nodeId() const; |
| 32 | void setNodeId(const QString &nodeId); |
| 33 | |
| 34 | QOpcUa::NodeAttribute attribute() const; |
| 35 | void setAttribute(QOpcUa::NodeAttribute attribute); |
| 36 | |
| 37 | QString indexRange() const; |
| 38 | void setIndexRange(const QString &indexRange); |
| 39 | |
| 40 | QVariant value() const; |
| 41 | void setValue(const QVariant &value); |
| 42 | |
| 43 | private: |
| 44 | QSharedDataPointer<QOpcUaReadResultData> data; |
| 45 | }; |
| 46 | |
| 47 | QT_END_NAMESPACE |
| 48 | |
| 49 | Q_DECLARE_METATYPE(QOpcUaReadResult) |
| 50 | |
| 51 | #endif // QOPCUAREADRESULT_H |
| 52 |
