Use simpler K_PLUGIN_CLASS macro for KCMs
This commit is contained in:
parent
ede9e37b40
commit
f483c1449c
7 changed files with 7 additions and 7 deletions
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include <KPluginFactory>
|
||||
|
||||
K_PLUGIN_FACTORY(ClipboardConfigFactory, registerPlugin<ClipboardConfig>();)
|
||||
K_PLUGIN_CLASS(ClipboardConfig)
|
||||
|
||||
ClipboardConfig::ClipboardConfig(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
|
||||
: KdeConnectPluginKcm(parent, data, args)
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <QAudioOutput>
|
||||
#endif
|
||||
|
||||
K_PLUGIN_FACTORY(FindThisDeviceConfigFactory, registerPlugin<FindThisDeviceConfig>();)
|
||||
K_PLUGIN_CLASS(FindThisDeviceConfig)
|
||||
|
||||
FindThisDeviceConfig::FindThisDeviceConfig(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
|
||||
: KdeConnectPluginKcm(parent, data, args)
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include <KPluginFactory>
|
||||
|
||||
K_PLUGIN_FACTORY(PauseMusicConfigFactory, registerPlugin<PauseMusicConfig>();)
|
||||
K_PLUGIN_CLASS(PauseMusicConfig)
|
||||
|
||||
PauseMusicConfig::PauseMusicConfig(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
|
||||
: KdeConnectPluginKcm(parent, data, args)
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include <dbushelper.h>
|
||||
|
||||
K_PLUGIN_FACTORY(ShareConfigFactory, registerPlugin<RunCommandConfig>();)
|
||||
K_PLUGIN_CLASS(RunCommandConfig)
|
||||
|
||||
RunCommandConfig::RunCommandConfig(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
|
||||
: KdeConnectPluginKcm(parent, data, args)
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <KCModule>
|
||||
#include <KPluginFactory>
|
||||
|
||||
K_PLUGIN_FACTORY(SendNotificationsConfigFactory, registerPlugin<SendNotificationsConfig>();)
|
||||
K_PLUGIN_CLASS(SendNotificationsConfig)
|
||||
|
||||
SendNotificationsConfig::SendNotificationsConfig(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
|
||||
: KdeConnectPluginKcm(parent, data, args)
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <KPluginFactory>
|
||||
#include <KUrlRequester>
|
||||
|
||||
K_PLUGIN_FACTORY(ShareConfigFactory, registerPlugin<ShareConfig>();)
|
||||
K_PLUGIN_CLASS(ShareConfig)
|
||||
|
||||
ShareConfig::ShareConfig(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
|
||||
: KdeConnectPluginKcm(parent, data, args)
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <QJsonDocument>
|
||||
#include <QJsonObject>
|
||||
|
||||
K_PLUGIN_FACTORY_WITH_JSON(KdeConnectPluginFactory, "kdeconnect_systemvolume.json", registerPlugin<SystemvolumePlugin>();)
|
||||
K_PLUGIN_CLASS_WITH_JSON(SystemvolumePlugin, "kdeconnect_systemvolume.json")
|
||||
|
||||
class MacOSCoreAudioDevice
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue