Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:07:59

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QGENERICPLUGIN_H
0005 #define QGENERICPLUGIN_H
0006 
0007 #include <QtGui/qtguiglobal.h>
0008 #include <QtCore/qplugin.h>
0009 #include <QtCore/qfactoryinterface.h>
0010 
0011 QT_BEGIN_NAMESPACE
0012 
0013 #define QGenericPluginFactoryInterface_iid "org.qt-project.Qt.QGenericPluginFactoryInterface"
0014 
0015 class Q_GUI_EXPORT QGenericPlugin : public QObject
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit QGenericPlugin(QObject *parent = nullptr);
0020     ~QGenericPlugin();
0021 
0022     virtual QObject* create(const QString& name, const QString &spec) = 0;
0023 };
0024 
0025 QT_END_NAMESPACE
0026 
0027 #endif // QGENERICPLUGIN_H