QtPdCom  1.5.2
Plugin.h
Go to the documentation of this file.
1/*****************************************************************************
2 *
3 * Copyright (C) 2024 Bjarne von Horn <vh@igh.de>
4 *
5 * This file is part of the QtPdCom library.
6 *
7 * The QtPdCom library is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * The QtPdCom library is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 * License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with the QtPdCom Library. If not, see <http://www.gnu.org/licenses/>.
19 *
20 ****************************************************************************/
21
22#pragma once
23
24#include <QtQml/qqmlextensionplugin.h>
25#include <QtPdCom1/Process.h>
26#include <QQmlEngine>
27
28extern void Q_DECL_EXPORT qml_register_types_de_igh_qtpdcom();
29Q_GHS_KEEP_REFERENCE(qml_register_types_de_igh_qtpdcom())
30
31class Q_DECL_EXPORT de_igh_qtpdcomPlugin: public QQmlEngineExtensionPlugin
32{
33 Q_OBJECT
34 Q_PLUGIN_METADATA(IID QQmlEngineExtensionInterface_iid)
35
36 public:
37 de_igh_qtpdcomPlugin(QObject *parent = nullptr);
38
39 void initializeEngine(QQmlEngine *engine, const char *uri) override;
40};
void Q_DECL_EXPORT qml_register_types_de_igh_qtpdcom()
de_igh_qtpdcomPlugin(QObject *parent=nullptr)
Definition Plugin.cpp:37
void initializeEngine(QQmlEngine *engine, const char *uri) override
Definition Plugin.cpp:29