File indexing completed on 2024-05-12 09:48:32
0001 /* 0002 SPDX-FileCopyrightText: 2017 Friedrich W. H. Kossebau <kossebau@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KOMPAREPARTFACTORY_H 0008 #define KOMPAREPARTFACTORY_H 0009 0010 // KF 0011 #include <KPluginFactory> 0012 #include <kparts_version.h> 0013 0014 0015 class KomparePartFactory : public KPluginFactory 0016 { 0017 Q_OBJECT 0018 Q_PLUGIN_METADATA(IID "org.kde.KPluginFactory" FILE "komparepart.json") 0019 Q_INTERFACES(KPluginFactory) 0020 0021 public: 0022 KomparePartFactory(); 0023 ~KomparePartFactory() override; 0024 0025 QObject* create(const char* iface, 0026 QWidget* parentWidget, QObject* parent, 0027 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) 0028 const QVariantList& args) override; 0029 #else 0030 const QVariantList& args, const QString& keyword) override; 0031 #endif 0032 }; 0033 0034 #endif