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