1 | // Copyright (C) 2015 basysKom GmbH, opensource@basyskom.com |
---|---|
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 QOPCUAEXPANDEDNODEID_H |
5 | #define QOPCUAEXPANDEDNODEID_H |
6 | |
7 | #include <QtOpcUa/qopcuaglobal.h> |
8 | |
9 | #include <QtCore/qshareddata.h> |
10 | #include <QtCore/qvariant.h> |
11 | |
12 | QT_BEGIN_NAMESPACE |
13 | |
14 | class QOpcUaExpandedNodeIdData; |
15 | class Q_OPCUA_EXPORT QOpcUaExpandedNodeId |
16 | { |
17 | public: |
18 | QOpcUaExpandedNodeId(); |
19 | QOpcUaExpandedNodeId(const QOpcUaExpandedNodeId &); |
20 | QOpcUaExpandedNodeId(const QString &nodeId); |
21 | QOpcUaExpandedNodeId(const QString &namespaceUri, const QString &nodeId, quint32 serverIndex = 0); |
22 | QOpcUaExpandedNodeId &operator=(const QOpcUaExpandedNodeId &); |
23 | bool operator==(const QOpcUaExpandedNodeId &) const; |
24 | operator QVariant() const; |
25 | ~QOpcUaExpandedNodeId(); |
26 | |
27 | quint32 serverIndex() const; |
28 | void setServerIndex(quint32 serverIndex); |
29 | |
30 | QString namespaceUri() const; |
31 | void setNamespaceUri(const QString &namespaceUri); |
32 | |
33 | QString nodeId() const; |
34 | void setNodeId(const QString &nodeId); |
35 | |
36 | private: |
37 | QSharedDataPointer<QOpcUaExpandedNodeIdData> data; |
38 | }; |
39 | |
40 | QT_END_NAMESPACE |
41 | |
42 | Q_DECLARE_METATYPE(QOpcUaExpandedNodeId) |
43 | |
44 | #endif // QOPCUAEXPANDEDNODEID_H |
45 |