1 | // Copyright (C) 2019 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 OPCUAELEMENTOPERAND_P_H |
5 | #define OPCUAELEMENTOPERAND_P_H |
6 | |
7 | #include <private/opcuaoperandbase_p.h> |
8 | #include <QOpcUaElementOperand> |
9 | #include <QtQml/qqml.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 QOpcUaClient; |
25 | |
26 | class OpcUaElementOperand : public OpcUaOperandBase, private QOpcUaElementOperand { |
27 | Q_OBJECT |
28 | Q_PROPERTY(quint32 index READ index WRITE setIndex) |
29 | QML_NAMED_ELEMENT(ElementOperand) |
30 | QML_ADDED_IN_VERSION(5, 13) |
31 | |
32 | public: |
33 | explicit OpcUaElementOperand(QObject *parent = nullptr); |
34 | ~OpcUaElementOperand(); |
35 | virtual QVariant toCppVariant(QOpcUaClient *client) const override; |
36 | |
37 | quint32 index() const; |
38 | void setIndex(quint32 index); |
39 | |
40 | signals: |
41 | void dataChanged(); |
42 | }; |
43 | |
44 | QT_END_NAMESPACE |
45 | |
46 | #endif // OPCUAELEMENTOPERAND_P_H |
47 |