1// Copyright (C) 2017 The Qt Company Ltd.
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 QOPEN62541NODE_H
5#define QOPEN62541NODE_H
6
7#include "qopen62541client.h"
8#include <private/qopcuanodeimpl_p.h>
9
10#include <QPointer>
11
12QT_BEGIN_NAMESPACE
13
14class QOpen62541Node : public QOpcUaNodeImpl
15{
16public:
17 explicit QOpen62541Node(const UA_NodeId nodeId, QOpen62541Client *client, const QString nodeIdString);
18 ~QOpen62541Node() override;
19
20 bool readAttributes(QOpcUa::NodeAttributes attr, const QString &indexRange) override;
21 bool enableMonitoring(QOpcUa::NodeAttributes attr, const QOpcUaMonitoringParameters &settings) override;
22 bool disableMonitoring(QOpcUa::NodeAttributes attr) override;
23 bool modifyMonitoring(QOpcUa::NodeAttribute attr, QOpcUaMonitoringParameters::Parameter item, const QVariant &value) override;
24 bool browse(const QOpcUaBrowseRequest &request) override;
25 QString nodeId() const override;
26
27 bool writeAttribute(QOpcUa::NodeAttribute attribute, const QVariant &value, QOpcUa::Types type, const QString &indexRange) override;
28 bool writeAttributes(const QOpcUaNode::AttributeMap &toWrite, QOpcUa::Types valueAttributeType) override;
29 bool callMethod(const QString &methodNodeId, const QList<QOpcUa::TypedVariant> &args) override;
30
31 QOpcUaHistoryReadResponse *readHistoryRaw(const QDateTime &startTime, const QDateTime &endTime, quint32 numValues, bool returnBounds) override;
32
33 bool resolveBrowsePath(const QList<QOpcUaRelativePathElement> &path) override;
34
35private:
36 QPointer<QOpen62541Client> m_client;
37 QString m_nodeIdString;
38 UA_NodeId m_nodeId;
39};
40
41QT_END_NAMESPACE
42
43#endif // QOPEN62541NODE_H
44

source code of qtopcua/src/plugins/opcua/open62541/qopen62541node.h