1// Copyright (C) 2016 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 QGENERICPLUGIN_H
5#define QGENERICPLUGIN_H
6
7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qplugin.h>
9#include <QtCore/qfactoryinterface.h>
10
11QT_BEGIN_NAMESPACE
12
13#define QGenericPluginFactoryInterface_iid "org.qt-project.Qt.QGenericPluginFactoryInterface"
14
15class Q_GUI_EXPORT QGenericPlugin : public QObject
16{
17 Q_OBJECT
18public:
19 explicit QGenericPlugin(QObject *parent = nullptr);
20 ~QGenericPlugin();
21
22 virtual QObject* create(const QString& name, const QString &spec) = 0;
23};
24
25QT_END_NAMESPACE
26
27#endif // QGENERICPLUGIN_H
28

source code of qtbase/src/gui/kernel/qgenericplugin.h