| 1 | // Copyright (C) 2021 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 QOPCUA_OPCUAATTRIBUTEVALUE_P_H | 
| 5 | #define QOPCUA_OPCUAATTRIBUTEVALUE_P_H | 
| 6 |  | 
| 7 | #include <QObject> | 
| 8 | #include <QVariant> | 
| 9 | #include <private/qglobal_p.h> | 
| 10 |  | 
| 11 | // | 
| 12 | //  W A R N I N G | 
| 13 | //  ------------- | 
| 14 | // | 
| 15 | // This file is not part of the Qt API.  It exists purely as an | 
| 16 | // implementation detail.  This header file may change from version to | 
| 17 | // version without notice, or even be removed. | 
| 18 | // | 
| 19 | // We mean it. | 
| 20 | // | 
| 21 |  | 
| 22 | QT_BEGIN_NAMESPACE | 
| 23 |  | 
| 24 | class OpcUaAttributeValue : public QObject | 
| 25 | { | 
| 26 |     Q_OBJECT | 
| 27 | public: | 
| 28 |     explicit OpcUaAttributeValue(QObject *parent); | 
| 29 |     bool operator ==(const OpcUaAttributeValue &rhs); | 
| 30 |     void setValue(const QVariant &value); | 
| 31 |     void invalidate(); | 
| 32 |     const QVariant &value() const; | 
| 33 |     operator QVariant() const; | 
| 34 |  | 
| 35 | signals: | 
| 36 |     void changed(QVariant value); | 
| 37 |  | 
| 38 | private: | 
| 39 |     QVariant m_value; | 
| 40 | }; | 
| 41 |  | 
| 42 | QT_END_NAMESPACE | 
| 43 |  | 
| 44 | #endif // QOPCUA_OPCUAATTRIBUTEVALUE_P_H | 
| 45 |  |