| 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 QOPEN62541PLUGIN_H | 
| 5 | #define QOPEN62541PLUGIN_H | 
| 6 | |
| 7 | #include "qopen62541.h" | 
| 8 | #include <QtOpcUa/qopcuaplugin.h> | 
| 9 | |
| 10 | QT_BEGIN_NAMESPACE | 
| 11 | |
| 12 | class QOpen62541Plugin : public QOpcUaPlugin | 
| 13 | { | 
| 14 | Q_OBJECT | 
| 15 | |
| 16 |     Q_PLUGIN_METADATA(IID "org.qt-project.qt.opcua.providerfactory/1.0"FILE "open62541-metadata.json")  | 
| 17 | Q_INTERFACES(QOpcUaPlugin) | 
| 18 | |
| 19 | public: | 
| 20 | explicit QOpen62541Plugin(QObject *parent = nullptr); | 
| 21 | ~QOpen62541Plugin() override; | 
| 22 | |
| 23 | QOpcUaClient *createClient(const QVariantMap &backendProperties) override; | 
| 24 | }; | 
| 25 | |
| 26 | QT_END_NAMESPACE | 
| 27 | |
| 28 | #endif // QOPEN62541PLUGIN_H | 
| 29 | 
