| 1 | // Copyright (C) 2015 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 QOPCUAXVALUE_H |
| 5 | #define QOPCUAXVALUE_H |
| 6 | |
| 7 | #include <QtOpcUa/qopcuaglobal.h> |
| 8 | |
| 9 | #include <QtCore/qshareddata.h> |
| 10 | #include <QtCore/qvariant.h> |
| 11 | |
| 12 | QT_BEGIN_NAMESPACE |
| 13 | |
| 14 | class QOpcUaXValueData; |
| 15 | class Q_OPCUA_EXPORT QOpcUaXValue |
| 16 | { |
| 17 | public: |
| 18 | QOpcUaXValue(); |
| 19 | QOpcUaXValue(const QOpcUaXValue &); |
| 20 | QOpcUaXValue(double x, float value); |
| 21 | QOpcUaXValue &operator=(const QOpcUaXValue &); |
| 22 | bool operator==(const QOpcUaXValue &rhs) const; |
| 23 | operator QVariant() const; |
| 24 | ~QOpcUaXValue(); |
| 25 | |
| 26 | double x() const; |
| 27 | void setX(double x); |
| 28 | |
| 29 | float value() const; |
| 30 | void setValue(float value); |
| 31 | |
| 32 | private: |
| 33 | QSharedDataPointer<QOpcUaXValueData> data; |
| 34 | }; |
| 35 | |
| 36 | QT_END_NAMESPACE |
| 37 | |
| 38 | Q_DECLARE_METATYPE(QOpcUaXValue) |
| 39 | |
| 40 | #endif // QOPCUAXVALUE_H |
| 41 | |