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