Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KDE Connect
Commits
5c16bfda
Commit
5c16bfda
authored
Jun 12, 2019
by
Nicolas Fella
Browse files
Use K_PLUGIN_CLASS_WITH_JSON
parent
ad2708a5
Changes
27
Hide whitespace changes
Inline
Side-by-side
plugins/battery/batteryplugin.cpp
View file @
5c16bfda
...
...
@@ -27,7 +27,7 @@
#include
"batterydbusinterface.h"
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_battery.json"
,
registerPlugin
<
BatteryPlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
BatteryPlugin
,
"kdeconnect_battery.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_BATTERY
,
"kdeconnect.plugin.battery"
)
...
...
plugins/clipboard/clipboardplugin.cpp
View file @
5c16bfda
...
...
@@ -24,7 +24,7 @@
#include
<KPluginFactory>
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_clipboard.json"
,
registerPlugin
<
ClipboardPlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
ClipboardPlugin
,
"kdeconnect_clipboard.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_CLIPBOARD
,
"kdeconnect.plugin.clipboard"
)
...
...
plugins/contacts/contactsplugin.cpp
View file @
5c16bfda
...
...
@@ -31,8 +31,7 @@
#include
<core/device.h>
K_PLUGIN_FACTORY_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_contacts.json"
,
registerPlugin
<
ContactsPlugin
>
();
)
K_PLUGIN_CLASS_WITH_JSON
(
ContactsPlugin
,
"kdeconnect_contacts.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_CONTACTS
,
"kdeconnect.plugin.contacts"
)
...
...
plugins/findmyphone/findmyphoneplugin.cpp
View file @
5c16bfda
...
...
@@ -26,7 +26,7 @@
#include
<KPluginFactory>
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_findmyphone.json"
,
registerPlugin
<
FindMyPhonePlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
FindMyPhonePlugin
,
"kdeconnect_findmyphone.json"
)
FindMyPhonePlugin
::
FindMyPhonePlugin
(
QObject
*
parent
,
const
QVariantList
&
args
)
:
KdeConnectPlugin
(
parent
,
args
)
{
...
...
plugins/findthisdevice/findthisdeviceplugin.cpp
View file @
5c16bfda
...
...
@@ -34,8 +34,7 @@
#include
<QUrl>
#include
<QMediaPlayer>
K_PLUGIN_FACTORY_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_findthisdevice.json"
,
registerPlugin
<
FindThisDevicePlugin
>
();)
K_PLUGIN_CLASS_WITH_JSON
(
FindThisDevicePlugin
,
"kdeconnect_findthisdevice.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_FINDTHISDEVICE
,
"kdeconnect.plugin.findthisdevice"
)
...
...
plugins/lockdevice/lockdeviceplugin.cpp
View file @
5c16bfda
...
...
@@ -30,7 +30,7 @@
#include
<core/device.h>
#include
<dbushelper.h>
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectLockPluginFactory
,
"kdeconnect_lockdevice.json"
,
registerPlugin
<
LockDevicePlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
LockDevicePlugin
,
"kdeconnect_lockdevice.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_LOCKREMOTE
,
"kdeconnect.plugin.lock"
)
...
...
plugins/mousepad/mousepadplugin.cpp
View file @
5c16bfda
...
...
@@ -37,7 +37,7 @@
#endif
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_mousepad.json"
,
registerPlugin
<
MousepadPlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
MousepadPlugin
,
"kdeconnect_mousepad.json"
)
MousepadPlugin
::
MousepadPlugin
(
QObject
*
parent
,
const
QVariantList
&
args
)
:
KdeConnectPlugin
(
parent
,
args
)
...
...
plugins/mpriscontrol/mpriscontrolplugin-win.cpp
View file @
5c16bfda
...
...
@@ -5,7 +5,7 @@
#include
<Windows.h>
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_mpriscontrol.json"
,
registerPlugin
<
MprisControlPlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
MprisControlPlugin
,
"kdeconnect_mpriscontrol.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_MPRIS
,
"kdeconnect.plugin.mpris"
)
...
...
plugins/mpriscontrol/mpriscontrolplugin.cpp
View file @
5c16bfda
...
...
@@ -34,7 +34,7 @@
#include
"mprisdbusinterface.h"
#include
"propertiesdbusinterface.h"
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_mpriscontrol.json"
,
registerPlugin
<
MprisControlPlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
MprisControlPlugin
,
"kdeconnect_mpriscontrol.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_MPRIS
,
"kdeconnect.plugin.mpris"
)
...
...
plugins/mprisremote/mprisremoteplugin.cpp
View file @
5c16bfda
...
...
@@ -27,7 +27,7 @@
#include
<core/device.h>
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_mprisremote.json"
,
registerPlugin
<
MprisRemotePlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
MprisRemotePlugin
,
"kdeconnect_mprisremote.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_MPRISREMOTE
,
"kdeconnect.plugin.mprisremote"
)
...
...
plugins/notifications/notificationsplugin.cpp
View file @
5c16bfda
...
...
@@ -25,7 +25,7 @@
#include
<KPluginFactory>
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_notifications.json"
,
registerPlugin
<
NotificationsPlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
NotificationsPlugin
,
"kdeconnect_notifications.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_NOTIFICATION
,
"kdeconnect.plugin.notification"
)
...
...
plugins/pausemusic/pausemusicplugin.cpp
View file @
5c16bfda
...
...
@@ -34,7 +34,7 @@
//In older Qt released, qAsConst isnt available
#include
"qtcompat_p.h"
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_pausemusic.json"
,
registerPlugin
<
PauseMusicPlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
PauseMusicPlugin
,
"kdeconnect_pausemusic.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_PAUSEMUSIC
,
"kdeconnect.plugin.pausemusic"
)
...
...
plugins/photo/photoplugin.cpp
View file @
5c16bfda
...
...
@@ -27,7 +27,7 @@
#include
<core/filetransferjob.h>
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_photo.json"
,
registerPlugin
<
PhotoPlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
PhotoPlugin
,
"kdeconnect_photo.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_PHOTO
,
"kdeconnect.plugin.photo"
)
...
...
plugins/ping/pingplugin.cpp
View file @
5c16bfda
...
...
@@ -30,7 +30,7 @@
#include
<core/device.h>
#include
<core/daemon.h>
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_ping.json"
,
registerPlugin
<
PingPlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
PingPlugin
,
"kdeconnect_ping.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_PING
,
"kdeconnect.plugin.ping"
)
...
...
plugins/remotecommands/remotecommandsplugin.cpp
View file @
5c16bfda
...
...
@@ -29,7 +29,7 @@
#define PACKET_TYPE_RUNCOMMAND_REQUEST QLatin1String("kdeconnect.runcommand.request")
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_remotecommands.json"
,
registerPlugin
<
RemoteCommandsPlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
RemoteCommandsPlugin
,
"kdeconnect_remotecommands.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_REMOTECOMMANDS
,
"kdeconnect.plugin.remotecommands"
)
...
...
plugins/remotecontrol/remotecontrolplugin.cpp
View file @
5c16bfda
...
...
@@ -30,7 +30,7 @@
#include
<core/device.h>
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_remotecontrol.json"
,
registerPlugin
<
RemoteControlPlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
RemoteControlPlugin
,
"kdeconnect_remotecontrol.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_REMOTECONTROL
,
"kdeconnect.plugin.remotecontrol"
)
...
...
plugins/remotekeyboard/remotekeyboardplugin.cpp
View file @
5c16bfda
...
...
@@ -24,7 +24,7 @@
#include
<QString>
#include
<QVariantMap>
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_remotekeyboard.json"
,
registerPlugin
<
RemoteKeyboardPlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
RemoteKeyboardPlugin
,
"kdeconnect_remotekeyboard.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_REMOTEKEYBOARD
,
"kdeconnect.plugin.remotekeyboard"
);
...
...
plugins/remotesystemvolume/remotesystemvolumeplugin.cpp
View file @
5c16bfda
...
...
@@ -32,7 +32,7 @@
#include
<core/device.h>
#include
<core/daemon.h>
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_remotesystemvolume.json"
,
registerPlugin
<
RemoteSystemVolumePlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
RemoteSystemVolumePlugin
,
"kdeconnect_remotesystemvolume.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_PING
,
"kdeconnect.plugin.remotesystemvolume"
)
...
...
plugins/runcommand/runcommandplugin.cpp
View file @
5c16bfda
...
...
@@ -46,7 +46,7 @@
#endif
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_runcommand.json"
,
registerPlugin
<
RunCommandPlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
RunCommandPlugin
,
"kdeconnect_runcommand.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_RUNCOMMAND
,
"kdeconnect.plugin.runcommand"
)
...
...
plugins/screensaver-inhibit/screensaverinhibitplugin.cpp
View file @
5c16bfda
...
...
@@ -26,7 +26,7 @@
#include
<QDBusConnection>
#include
<QDBusInterface>
K_PLUGIN_
FACTORY
_WITH_JSON
(
KdeConnectPluginFactory
,
"kdeconnect_screensaver_inhibit.json"
,
registerPlugin
<
ScreensaverInhibitPlugin
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
ScreensaverInhibitPlugin
,
"kdeconnect_screensaver_inhibit.json"
)
Q_LOGGING_CATEGORY
(
KDECONNECT_PLUGIN_SCREENSAVERINHIBIT
,
"kdeconnect.plugin.screensaverinhibit"
)
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment