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 QOPCUAQUALIFIEDNAMEDATA_H |
5 | #define QOPCUAQUALIFIEDNAMEDATA_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 QOpcUaQualifiedNameData; |
15 | class Q_OPCUA_EXPORT QOpcUaQualifiedName |
16 | { |
17 | public: |
18 | QOpcUaQualifiedName(); |
19 | QOpcUaQualifiedName(const QOpcUaQualifiedName &); |
20 | QOpcUaQualifiedName(quint16 namespaceIndex, const QString &name); |
21 | QOpcUaQualifiedName &operator=(const QOpcUaQualifiedName &); |
22 | bool operator==(const QOpcUaQualifiedName &rhs) const; |
23 | operator QVariant() const; |
24 | ~QOpcUaQualifiedName(); |
25 | |
26 | QString name() const; |
27 | void setName(const QString &name); |
28 | |
29 | quint16 namespaceIndex() const; |
30 | void setNamespaceIndex(quint16 namespaceIndex); |
31 | |
32 | private: |
33 | QSharedDataPointer<QOpcUaQualifiedNameData> data; |
34 | |
35 | #ifndef QT_NO_DEBUG_STREAM |
36 | friend Q_OPCUA_EXPORT QDebug operator<<(QDebug debug, const QOpcUaQualifiedName &qn); |
37 | #endif |
38 | }; |
39 | |
40 | QT_END_NAMESPACE |
41 | |
42 | Q_DECLARE_METATYPE(QOpcUaQualifiedName) |
43 | |
44 | #endif // QOPCUAQUALIFIEDNAMEDATA_H |
45 |