1 | // Copyright (C) 2018 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_OPCUANODEID_P_H |
5 | #define QOPCUA_OPCUANODEID_P_H |
6 | |
7 | #include <private/opcuanodeidtype_p.h> |
8 | |
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 OpcUaNodeId : public OpcUaNodeIdType |
25 | { |
26 | Q_OBJECT |
27 | Q_PROPERTY(QString ns READ nodeNamespace WRITE setNodeNamespace NOTIFY nodeNamespaceChanged) |
28 | Q_PROPERTY(QString identifier READ identifier WRITE setIdentifier NOTIFY identifierChanged) |
29 | |
30 | QML_NAMED_ELEMENT(NodeId) |
31 | QML_ADDED_IN_VERSION(5, 12) |
32 | |
33 | public: |
34 | OpcUaNodeId(QObject *parent = nullptr); |
35 | |
36 | signals: |
37 | void nodeNamespaceChanged(const QString &); |
38 | void identifierChanged(const QString &); |
39 | void nodeChanged(); |
40 | }; |
41 | |
42 | QT_END_NAMESPACE |
43 | |
44 | #endif // QOPCUA_OPCUANODEID_P_H |
45 |