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 QOPCUARELATIVEPATHELEMENT_H
5#define QOPCUARELATIVEPATHELEMENT_H
6
7#include <QtOpcUa/qopcuatype.h>
8
9#include <QtCore/qshareddata.h>
10
11QT_BEGIN_NAMESPACE
12
13class QOpcUaQualifiedName;
14
15class QOpcUaRelativePathElementData;
16class Q_OPCUA_EXPORT QOpcUaRelativePathElement
17{
18public:
19 QOpcUaRelativePathElement();
20 QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, const QString &refType);
21 QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, QOpcUa::ReferenceTypeId refType);
22 QOpcUaRelativePathElement(const QOpcUaRelativePathElement &);
23 QOpcUaRelativePathElement &operator=(const QOpcUaRelativePathElement &);
24 bool operator==(const QOpcUaRelativePathElement &rhs) const;
25 ~QOpcUaRelativePathElement();
26
27 QString referenceTypeId() const;
28 void setReferenceTypeId(const QString &referenceTypeId);
29 void setReferenceTypeId(QOpcUa::ReferenceTypeId referenceTypeId);
30
31 bool isInverse() const;
32 void setIsInverse(bool isInverse);
33
34 bool includeSubtypes() const;
35 void setIncludeSubtypes(bool includeSubtypes);
36
37 QOpcUaQualifiedName targetName() const;
38 void setTargetName(const QOpcUaQualifiedName &targetName);
39
40private:
41 QSharedDataPointer<QOpcUaRelativePathElementData> data;
42};
43
44QT_END_NAMESPACE
45
46Q_DECLARE_METATYPE(QOpcUaRelativePathElement)
47
48#endif // QOPCUARELATIVEPATHELEMENT_H
49

source code of qtopcua/src/opcua/client/qopcuarelativepathelement.h