kdecore: move K_EXPORT_PLUGIN() macro to kpluginfactory header [ci reset]

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-05-31 09:02:31 +03:00
parent 1c1bab4da8
commit 4a4c85431e
12 changed files with 12 additions and 22 deletions

View file

@ -27,6 +27,7 @@
#include <QtCore/QObject>
#include <QtCore/QVariant>
#include <QtCore/QStringList>
#include <QtCore/qplugin.h>
#include <kcomponentdata.h>
#include <kglobal.h>
@ -69,6 +70,17 @@ KComponentData name::componentData() \
K_PLUGIN_FACTORY_DECLARATION_WITH_BASEFACTORY(name, baseFactory) \
K_PLUGIN_FACTORY_DEFINITION_WITH_BASEFACTORY(name, baseFactory, pluginRegistrations)
/**
* \relates KPluginLoader
* This macro exports the main object of the plugin. Most times, this will be a KPluginFactory
* or derived class, but any QObject derived class can be used.
* Take a look at the documentation of Q_EXPORT_PLUGIN2 for some details.
*
* @ingroup KDEMacros
*/
#define K_EXPORT_PLUGIN(factory) \
Q_EXPORT_PLUGIN(factory)
/**
* \relates KPluginFactory
* Defines a KPluginFactory subclass with two constructors and a static componentData function.

View file

@ -22,7 +22,6 @@
#include <kdeversion.h>
#include <QtCore/QPluginLoader>
#include <QtCore/qplugin.h>
class KComponentData;
class KPluginFactory;
@ -133,15 +132,4 @@ private:
KPluginLoaderPrivate *const d_ptr;
};
/**
* \relates KPluginLoader
* This macro exports the main object of the plugin. Most times, this will be a KPluginFactory
* or derived class, but any QObject derived class can be used.
* Take a look at the documentation of Q_EXPORT_PLUGIN2 for some details.
*
* @ingroup KDEMacros
*/
#define K_EXPORT_PLUGIN(factory) \
Q_EXPORT_PLUGIN(factory)
#endif

View file

@ -21,7 +21,6 @@
#include "kfilewidget.h"
#include "kdirselectdialog.h"
#include "kpluginfactory.h"
#include "kpluginloader.h"
K_PLUGIN_FACTORY(KFileModuleFactory, registerPlugin<KFileModule>();)
K_EXPORT_PLUGIN(KFileModuleFactory("kfilemodule", "kio4"))

View file

@ -18,7 +18,6 @@
#include "kfilemetadata_epub.h"
#include "kpluginfactory.h"
#include "kpluginloader.h"
#include "kdebug.h"
#include <epub.h>

View file

@ -18,7 +18,6 @@
#include "kfilemetadata_exiv2.h"
#include "kpluginfactory.h"
#include "kpluginloader.h"
#include "kexiv2.h"
#include <QDebug>

View file

@ -18,7 +18,6 @@
#include "kfilemetadata_ffmpeg.h"
#include "kpluginfactory.h"
#include "kpluginloader.h"
#include "kglobal.h"
#include "klocale.h"
#include "kmimetype.h"

View file

@ -18,7 +18,6 @@
#include "kfilemetadata_poppler.h"
#include "kpluginfactory.h"
#include "kpluginloader.h"
#include "kglobal.h"
#include "klocale.h"
#include "kdatetime.h"

View file

@ -18,7 +18,6 @@
#include "kfilemetadata_spectre.h"
#include "kpluginfactory.h"
#include "kpluginloader.h"
#include "kdebug.h"
#include <libspectre/spectre.h>

View file

@ -18,7 +18,6 @@
#include "kfilemetadata_taglib.h"
#include "kpluginfactory.h"
#include "kpluginloader.h"
#include "kglobal.h"
#include "klocale.h"
#include "kdebug.h"

View file

@ -18,7 +18,6 @@
#include "kaudioplayer.h"
#include "kpluginfactory.h"
#include "kpluginloader.h"
K_PLUGIN_FACTORY(KAudioPlayerModuleFactory, registerPlugin<KAudioPlayerModule>();)
K_EXPORT_PLUGIN(KAudioPlayerModuleFactory("kaudioplayer"))

View file

@ -18,7 +18,6 @@
#include "kded_kpasswdstore.h"
#include "kpluginfactory.h"
#include "kpluginloader.h"
K_PLUGIN_FACTORY(KPasswdStoreModuleFactory, registerPlugin<KPasswdStoreModule>();)
K_EXPORT_PLUGIN(KPasswdStoreModuleFactory("kpasswdstore"))

View file

@ -18,7 +18,6 @@
#include "kded_kpowermanager.h"
#include "kpluginfactory.h"
#include "kpluginloader.h"
#include "kpowermanager.h"
#include "kdebug.h"