1// Copyright (C) 2018 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 QOPCUAADDREFERENCEITEM_H
5#define QOPCUAADDREFERENCEITEM_H
6
7#include <QtOpcUa/qopcuanodecreationattributes.h>
8#include <QtOpcUa/qopcuatype.h>
9
10#include <QtCore/qshareddata.h>
11
12QT_BEGIN_NAMESPACE
13
14class QOpcUaExpandedNodeId;
15
16class QOpcUaAddReferenceItemData;
17class Q_OPCUA_EXPORT QOpcUaAddReferenceItem
18{
19public:
20 QOpcUaAddReferenceItem();
21 QOpcUaAddReferenceItem(const QOpcUaAddReferenceItem &other);
22 QOpcUaAddReferenceItem &operator=(const QOpcUaAddReferenceItem &rhs);
23 ~QOpcUaAddReferenceItem();
24
25 QString sourceNodeId() const;
26 void setSourceNodeId(const QString &sourceNodeId);
27
28 QString referenceTypeId() const;
29 void setReferenceTypeId(const QString &referenceTypeId);
30
31 bool isForwardReference() const;
32 void setIsForwardReference(bool isForwardReference);
33
34 QOpcUaExpandedNodeId targetNodeId() const;
35 void setTargetNodeId(const QOpcUaExpandedNodeId &targetNodeId);
36
37 QOpcUa::NodeClass targetNodeClass() const;
38 void setTargetNodeClass(QOpcUa::NodeClass targetNodeClass);
39
40 QString targetServerUri() const;
41 void setTargetServerUri(const QString &targetServerUri);
42
43private:
44 QSharedDataPointer<QOpcUaAddReferenceItemData> data;
45};
46
47QT_END_NAMESPACE
48
49Q_DECLARE_METATYPE(QOpcUaAddReferenceItem)
50
51#endif // QOPCUAADDREFERENCEITEM_H
52

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