| 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 | |
| 12 | QT_BEGIN_NAMESPACE | 
| 13 | |
| 14 | class QOpcUaExpandedNodeId; | 
| 15 | |
| 16 | class QOpcUaAddReferenceItemData; | 
| 17 | class Q_OPCUA_EXPORT QOpcUaAddReferenceItem | 
| 18 | { | 
| 19 | public: | 
| 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 | |
| 43 | private: | 
| 44 | QSharedDataPointer<QOpcUaAddReferenceItemData> data; | 
| 45 | }; | 
| 46 | |
| 47 | QT_END_NAMESPACE | 
| 48 | |
| 49 | Q_DECLARE_METATYPE(QOpcUaAddReferenceItem) | 
| 50 | |
| 51 | #endif // QOPCUAADDREFERENCEITEM_H | 
| 52 | 
