Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 48c72c34 authored by Albert Astals Cid's avatar Albert Astals Cid

Use the nicer K_PLUGIN_CLASS_WITH_JSON

Reviewers: apol

Reviewed By: apol

Subscribers: apol, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D18027
parent a3bbdef0
......@@ -21,10 +21,7 @@
#include <KPluginFactory>
K_PLUGIN_FACTORY_WITH_JSON(FreeSpaceNotifierModuleFactory,
"freespacenotifier.json",
registerPlugin<FreeSpaceNotifierModule>();
)
K_PLUGIN_CLASS_WITH_JSON(FreeSpaceNotifierModule, "freespacenotifier.json")
FreeSpaceNotifierModule::FreeSpaceNotifierModule(QObject* parent, const QList<QVariant>&)
: KDEDModule(parent)
......
......@@ -28,7 +28,7 @@
#include <KPluginFactory>
#include <KSharedConfig>
K_PLUGIN_FACTORY_WITH_JSON(TranslationsFactory, "kcm_translations.json", registerPlugin<Translations>();)
K_PLUGIN_CLASS_WITH_JSON(Translations, "kcm_translations.json")
Translations::Translations(QObject *parent, const QVariantList &args)
: KQuickAddons::ConfigModule(parent, args)
......
......@@ -29,9 +29,7 @@
#include <QFile>
#include <QDir>
K_PLUGIN_FACTORY_WITH_JSON(DesktopNotifierFactory,
"desktopnotifier.json",
registerPlugin<DesktopNotifier>();)
K_PLUGIN_CLASS_WITH_JSON(DesktopNotifier, "desktopnotifier.json")
DesktopNotifier::DesktopNotifier(QObject *parent, const QList<QVariant> &)
: KDEDModule(parent)
......
......@@ -35,10 +35,7 @@
#include <KPluginFactory>
#include <KPluginLoader>
K_PLUGIN_FACTORY_WITH_JSON(KTimeZonedFactory,
"ktimezoned.json",
registerPlugin<KTimeZoned>();
)
K_PLUGIN_CLASS_WITH_JSON(KTimeZoned, "ktimezoned.json")
const char LOCAL_ZONE[] = "LocalZone"; // name of local time zone
const char ZONEINFO_DIR[] = "ZoneinfoDir"; // path to zoneinfo/ directory
......
......@@ -44,10 +44,7 @@
#include <Windows.h>
#endif
K_PLUGIN_FACTORY_WITH_JSON(KTimeZonedFactory,
"ktimezoned.json",
registerPlugin<KTimeZoned>();
)
K_PLUGIN_CLASS_WITH_JSON(KTimeZoned, "ktimezoned.json")
// Config file entry names
const char LOCAL_ZONE[] = "LocalZone"; // name of local time zone
......
......@@ -22,9 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "../compositorcoloradaptor.h"
#include "../geolocator.h"
K_PLUGIN_FACTORY_WITH_JSON(LocationUpdaterFactory,
"colorcorrectlocationupdater.json",
registerPlugin<LocationUpdater>();)
K_PLUGIN_CLASS_WITH_JSON(LocationUpdater, "colorcorrectlocationupdater.json")
LocationUpdater::LocationUpdater(QObject *parent, const QList<QVariant> &)
: KDEDModule(parent)
......
......@@ -24,9 +24,7 @@
#include <solid/devicenotifier.h>
#include <solid/opticaldrive.h>
K_PLUGIN_FACTORY_WITH_JSON(SolidAutoEjectFactory,
"solidautoeject.json",
registerPlugin<SolidAutoEject>();)
K_PLUGIN_CLASS_WITH_JSON(SolidAutoEject, "solidautoeject.json")
SolidAutoEject::SolidAutoEject(QObject* parent, const QList<QVariant>&)
: KDEDModule(parent)
......
......@@ -41,10 +41,7 @@
#include "deviceserviceaction.h"
#include "devicenothingaction.h"
K_PLUGIN_FACTORY_WITH_JSON(SolidUiServerFactory,
"soliduiserver.json",
registerPlugin<SolidUiServer>();
)
K_PLUGIN_CLASS_WITH_JSON(SolidUiServer, "soliduiserver.json")
SolidUiServer::SolidUiServer(QObject* parent, const QList<QVariant>&)
: KDEDModule(parent)
......
......@@ -28,9 +28,7 @@
#include "statusnotifierwatcheradaptor.h"
#include "statusnotifieritem_interface.h"
K_PLUGIN_FACTORY_WITH_JSON(StatusNotifierWatcherFactory,
"statusnotifierwatcher.json",
registerPlugin<StatusNotifierWatcher>();)
K_PLUGIN_CLASS_WITH_JSON(StatusNotifierWatcher, "statusnotifierwatcher.json")
StatusNotifierWatcher::StatusNotifierWatcher(QObject *parent, const QList<QVariant>&)
: KDEDModule(parent)
......
......@@ -33,9 +33,7 @@
#include <QDBusConnection>
#include <QDBusConnectionInterface>
K_PLUGIN_FACTORY_WITH_JSON(KSysGuardFactory,
"ksysguard.json",
registerPlugin<KDEDKSysGuard>();)
K_PLUGIN_CLASS_WITH_JSON(KDEDKSysGuard, "ksysguard.json")
KDEDKSysGuard::KDEDKSysGuard(QObject* parent, const QVariantList&)
: KDEDModule(parent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment