[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498

Maximiliano Curia maxy at moszumanska.debian.org
Fri Oct 14 14:28:00 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=dbea317

The following commit has been merged in the master branch:
commit dbea3171bd6eb4e54f0c49df2651061f260fd83a
Author: Àlex Fiestas <afiestas at kde.org>
Date:   Mon Sep 22 02:37:10 2014 +0200

    Make kdeconnect core compile without KDELibs4Support
    
    This meant to add a lot of dependencies to each plugin since we had
    KDELibs4support as PUBLIC link meaning that anything linking against
    kdeconnectcore was linking at the same time to mostly all frameworks.
    
    Now each plugin has more or less its dependencies in the CMake some
    still depend on KDELibs4Support.
    
    For the mousepad plugin I needed to add a fixX11.h file that basically
    undefines/defines again some stuff xlib has that conflcits with normal
    C++ and Qt.
    
    Before it was not conflicting because some lib within KDELibs4Support
    was including this file, but now we have to do it ourselves.
---
 core/CMakeLists.txt                           |   8 +-
 core/daemon.cpp                               |   1 +
 core/device.cpp                               |   5 +-
 core/filetransferjob.h                        |   2 +-
 core/kdeconnectplugin.h                       |   3 -
 plugins/battery/CMakeLists.txt                |   2 +-
 plugins/battery/batteryplugin.cpp             |   1 +
 plugins/clipboard/CMakeLists.txt              |   2 +-
 plugins/clipboard/clipboardplugin.cpp         |   6 +-
 plugins/mousepad/CMakeLists.txt               |   2 +-
 plugins/mousepad/fixx11h.h                    | 301 ++++++++++++++++++++++++++
 plugins/mousepad/mousepadplugin.cpp           |   3 +-
 plugins/mousepad/mousepadplugin.h             |   1 +
 plugins/mpriscontrol/CMakeLists.txt           |   2 +-
 plugins/mpriscontrol/mpriscontrolplugin.cpp   |   2 +
 plugins/notifications/CMakeLists.txt          |   2 +-
 plugins/notifications/notificationsplugin.cpp |   2 +
 plugins/pausemusic/CMakeLists.txt             |   6 +-
 plugins/pausemusic/pausemusicplugin.cpp       |   1 +
 plugins/ping/pingplugin.cpp                   |   1 +
 plugins/sftp/CMakeLists.txt                   |   2 +-
 plugins/sftp/sftpplugin.cpp                   |   2 +-
 plugins/share/CMakeLists.txt                  |   9 +-
 plugins/share/shareplugin.cpp                 |   2 +-
 plugins/telephony/CMakeLists.txt              |   2 +-
 plugins/telephony/telephonyplugin.cpp         |   2 +
 tests/networkpackagetests.cpp                 |   3 +-
 27 files changed, 349 insertions(+), 26 deletions(-)

diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
index 090d4fb..ee08634 100644
--- a/core/CMakeLists.txt
+++ b/core/CMakeLists.txt
@@ -33,12 +33,16 @@ set(kded_kdeconnect_SRCS
 add_library(kdeconnectcore SHARED ${kded_kdeconnect_SRCS})
 target_link_libraries(kdeconnectcore
 PUBLIC
-    KF5::KDELibs4Support
+    Qt5::Network
 PRIVATE
     ${QCA2_LIBRARIES}
+    Qt5::DBus
+    Qt5::Gui
     KF5::KIOWidgets
     KF5::KCMUtils
-    Qt5::Network
+    KF5::I18n
+    KF5::ConfigCore
+    KF5::Notifications
 )
 
 set_target_properties(kdeconnectcore PROPERTIES
diff --git a/core/daemon.cpp b/core/daemon.cpp
index b0305ef..eca397b 100644
--- a/core/daemon.cpp
+++ b/core/daemon.cpp
@@ -31,6 +31,7 @@
 
 #include <KConfig>
 #include <KConfigGroup>
+#include <KSharedConfig>
 
 #include "core_debug.h"
 #include "networkpackage.h"
diff --git a/core/device.cpp b/core/device.cpp
index 039a991..1d1fdb2 100644
--- a/core/device.cpp
+++ b/core/device.cpp
@@ -30,12 +30,9 @@
 
 #include <KSharedConfig>
 #include <KConfigGroup>
-#include <KPluginSelector>
-#include <KServiceTypeTrader>
 #include <KNotification>
+#include <KLocalizedString>
 #include <QIcon>
-#include <KGlobal>
-#include <KComponentData>
 
 #include "core_debug.h"
 #include "kdeconnectplugin.h"
diff --git a/core/filetransferjob.h b/core/filetransferjob.h
index bc0e9e9..c0bff7a 100644
--- a/core/filetransferjob.h
+++ b/core/filetransferjob.h
@@ -24,12 +24,12 @@
 #include <QIODevice>
 #include <QTime>
 #include <QTemporaryFile>
+#include <QSharedPointer>
 
 #include <KJob>
 #include <QUrl>
 #include <KIO/FileJob>
 #include <KIO/Job>
-#include <KSharedPtr>
 
 class FileTransferJob
     : public KJob
diff --git a/core/kdeconnectplugin.h b/core/kdeconnectplugin.h
index d73491f..564786c 100644
--- a/core/kdeconnectplugin.h
+++ b/core/kdeconnectplugin.h
@@ -24,9 +24,6 @@
 #include <QObject>
 #include <QVariantList>
 
-#include <KPluginFactory>
-#include <KPluginLoader>
-
 #include "kdeconnectcore_export.h"
 #include "networkpackage.h"
 #include "device.h"
diff --git a/plugins/battery/CMakeLists.txt b/plugins/battery/CMakeLists.txt
index e140cd9..af1d5cf 100644
--- a/plugins/battery/CMakeLists.txt
+++ b/plugins/battery/CMakeLists.txt
@@ -5,7 +5,7 @@ set(kdeconnect_battery_SRCS
 
 add_library(kdeconnect_battery MODULE ${kdeconnect_battery_SRCS})
 
-target_link_libraries(kdeconnect_battery kdeconnectcore KF5::KDELibs4Support)
+target_link_libraries(kdeconnect_battery kdeconnectcore KF5::Service KF5::KDELibs4Support)
 
 install(TARGETS kdeconnect_battery DESTINATION ${PLUGIN_INSTALL_DIR} )
 install(FILES kdeconnect_battery.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/plugins/battery/batteryplugin.cpp b/plugins/battery/batteryplugin.cpp
index 7ac7606..c0d60f2 100644
--- a/plugins/battery/batteryplugin.cpp
+++ b/plugins/battery/batteryplugin.cpp
@@ -23,6 +23,7 @@
 #include <KNotification>
 #include <QIcon>
 #include <KLocalizedString>
+#include <KPluginFactory>
 
 #include "batterydbusinterface.h"
 
diff --git a/plugins/clipboard/CMakeLists.txt b/plugins/clipboard/CMakeLists.txt
index cf7bfa4..3f8ef3c 100644
--- a/plugins/clipboard/CMakeLists.txt
+++ b/plugins/clipboard/CMakeLists.txt
@@ -4,7 +4,7 @@ set(kdeconnect_clipboard_SRCS
 
 add_library(kdeconnect_clipboard MODULE ${kdeconnect_clipboard_SRCS})
 
-target_link_libraries(kdeconnect_clipboard kdeconnectcore Qt5::Gui)
+target_link_libraries(kdeconnect_clipboard kdeconnectcore KF5::Service Qt5::Gui)
 
 install(TARGETS kdeconnect_clipboard DESTINATION ${PLUGIN_INSTALL_DIR} )
 install(FILES kdeconnect_clipboard.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/plugins/clipboard/clipboardplugin.cpp b/plugins/clipboard/clipboardplugin.cpp
index 03da131..f9b2715 100644
--- a/plugins/clipboard/clipboardplugin.cpp
+++ b/plugins/clipboard/clipboardplugin.cpp
@@ -21,7 +21,9 @@
 #include "clipboardplugin.h"
 
 #include <QClipboard>
-#include <QApplication>
+#include <QGuiApplication>
+
+#include <KPluginFactory>
 
 K_PLUGIN_FACTORY( KdeConnectPluginFactory, registerPlugin< ClipboardPlugin >(); )
 
@@ -30,7 +32,7 @@ Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_CLIPBOARD, "kdeconnect.plugin.clipboard")
 ClipboardPlugin::ClipboardPlugin(QObject *parent, const QVariantList &args)
     : KdeConnectPlugin(parent, args)
     , ignore_next_clipboard_change(false)
-    , clipboard(QApplication::clipboard())
+    , clipboard(QGuiApplication::clipboard())
 {
     connect(clipboard, SIGNAL(changed(QClipboard::Mode)), this, SLOT(clipboardChanged(QClipboard::Mode)));
 }
diff --git a/plugins/mousepad/CMakeLists.txt b/plugins/mousepad/CMakeLists.txt
index 848b76e..1e3cf67 100644
--- a/plugins/mousepad/CMakeLists.txt
+++ b/plugins/mousepad/CMakeLists.txt
@@ -9,7 +9,7 @@ kde4_add_plugin(kdeconnect_mousepad ${kdeconnect_mousepad_SRCS})
 
 include_directories(${XTEST_INCLUDE_DIRS} ${X11_INCLUDE_DIR})
 
-target_link_libraries(kdeconnect_mousepad kdeconnectcore ${QT_QTGUI_LIBRARY} ${X11_LIBRARIES} ${XTEST_LIBRARIES})
+target_link_libraries(kdeconnect_mousepad KF5::Service kdeconnectcore ${QT_QTGUI_LIBRARY} ${X11_LIBRARIES} ${XTEST_LIBRARIES})
 
 install(TARGETS kdeconnect_mousepad DESTINATION ${PLUGIN_INSTALL_DIR} )
 install(FILES kdeconnect_mousepad.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/plugins/mousepad/fixx11h.h b/plugins/mousepad/fixx11h.h
new file mode 100644
index 0000000..8d69e15
--- /dev/null
+++ b/plugins/mousepad/fixx11h.h
@@ -0,0 +1,301 @@
+/****************************************************************************
+
+ Copyright (C) 2003 Lubos Lunak        <l.lunak at kde.org>
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+****************************************************************************/
+
+//#ifdef    don't do this, this file is supposed to be included
+//#define   multiple times
+
+#include <QtCore/QtGlobal>
+
+/* Usage:
+
+ If you get compile errors caused by X11 includes (the line
+ where first error appears contains word like None, Unsorted,
+ Below, etc.), put #include <fixx11h.h> in the .cpp file
+ (not .h file!) between the place where X11 headers are
+ included and the place where the file with compile
+ error is included (or the place where the compile error
+ in the .cpp file occurs).
+
+ This file remaps X11 #defines to const variables or
+ inline functions. The side effect may be that these
+ symbols may now refer to different variables
+ (e.g. if X11 #defined NoButton, after this file
+ is included NoButton would no longer be X11's
+ NoButton, but Qt::NoButton instead). At this time,
+ there's no conflict known that could cause problems.
+
+ The original X11 symbols are still accessible
+ (e.g. for None) as X::None, XNone, and also still
+ None, unless name lookup finds different None
+ first (in the current class, etc.)
+
+ Use 'Unsorted', 'Bool' and 'index' as templates.
+
+*/
+
+namespace X
+{
+
+// template --->
+// Affects: Should be without side effects.
+#ifdef Unsorted
+#ifndef FIXX11H_Unsorted
+#define FIXX11H_Unsorted
+const int XUnsorted = Unsorted;
+#undef Unsorted
+const int Unsorted = XUnsorted;
+#endif
+#undef Unsorted
+#endif
+// template <---
+
+// Affects: Should be without side effects.
+#ifdef None
+#ifndef FIXX11H_None
+#define FIXX11H_None
+const XID XNone = None;
+#undef None
+const XID None = XNone;
+#endif
+#undef None
+#endif
+
+// template --->
+// Affects: Should be without side effects.
+#ifdef Bool
+#ifndef FIXX11H_Bool
+#define FIXX11H_Bool
+#ifdef _XTYPEDEF_BOOL /* Xdefs.h has typedef'ed Bool already */
+#undef Bool
+#else
+typedef Bool XBool;
+#undef Bool
+typedef XBool Bool;
+#endif
+#endif
+#undef Bool
+#define _XTYPEDEF_BOOL
+#endif
+// template <---
+
+// Affects: Should be without side effects.
+#ifdef KeyPress
+#ifndef FIXX11H_KeyPress
+#define FIXX11H_KeyPress
+const int XKeyPress = KeyPress;
+#undef KeyPress
+const int KeyPress = XKeyPress;
+#endif
+#undef KeyPress
+#endif
+
+// Affects: Should be without side effects.
+#ifdef KeyRelease
+#ifndef FIXX11H_KeyRelease
+#define FIXX11H_KeyRelease
+const int XKeyRelease = KeyRelease;
+#undef KeyRelease
+const int KeyRelease = XKeyRelease;
+#endif
+#undef KeyRelease
+#endif
+
+// Affects: Should be without side effects.
+#ifdef Above
+#ifndef FIXX11H_Above
+#define FIXX11H_Above
+const int XAbove = Above;
+#undef Above
+const int Above = XAbove;
+#endif
+#undef Above
+#endif
+
+// Affects: Should be without side effects.
+#ifdef Below
+#ifndef FIXX11H_Below
+#define FIXX11H_Below
+const int XBelow = Below;
+#undef Below
+const int Below = XBelow;
+#endif
+#undef Below
+#endif
+
+// Affects: Should be without side effects.
+#ifdef FocusIn
+#ifndef FIXX11H_FocusIn
+#define FIXX11H_FocusIn
+const int XFocusIn = FocusIn;
+#undef FocusIn
+const int FocusIn = XFocusIn;
+#endif
+#undef FocusIn
+#endif
+
+// Affects: Should be without side effects.
+#ifdef FocusOut
+#ifndef FIXX11H_FocusOut
+#define FIXX11H_FocusOut
+const int XFocusOut = FocusOut;
+#undef FocusOut
+const int FocusOut = XFocusOut;
+#endif
+#undef FocusOut
+#endif
+
+// Affects: Should be without side effects.
+#ifdef Always
+#ifndef FIXX11H_Always
+#define FIXX11H_Always
+const int XAlways = Always;
+#undef Always
+const int Always = XAlways;
+#endif
+#undef Always
+#endif
+
+// Affects: Should be without side effects.
+#ifdef Expose
+#ifndef FIXX11H_Expose
+#define FIXX11H_Expose
+const int XExpose = Expose;
+#undef Expose
+const int Expose = XExpose;
+#endif
+#undef Expose
+#endif
+
+// Affects: Should be without side effects.
+#ifdef Success
+#ifndef FIXX11H_Success
+#define FIXX11H_Success
+const int XSuccess = Success;
+#undef Success
+const int Success = XSuccess;
+#endif
+#undef Success
+#endif
+
+// Affects: Should be without side effects.
+#ifdef GrayScale
+#ifndef FIXX11H_GrayScale
+#define FIXX11H_GrayScale
+const int XGrayScale = GrayScale;
+#undef GrayScale
+const int GrayScale = XGrayScale;
+#endif
+#undef GrayScale
+#endif
+
+// Affects: Should be without side effects.
+#ifdef Status
+#ifndef FIXX11H_Status
+#define FIXX11H_Status
+typedef Status XStatus;
+#undef Status
+typedef XStatus Status;
+#endif
+#undef Status
+#endif
+
+// template --->
+// Affects: Should be without side effects.
+#ifdef CursorShape
+#ifndef FIXX11H_CursorShape
+#define FIXX11H_CursorShape
+const int XCursorShape = CursorShape;
+#undef CursorShape
+const int CursorShape = XCursorShape;
+#endif
+#undef CursorShape
+#endif
+// template <---
+
+// template --->
+// Affects: Should be without side effects.
+#ifdef FontChange
+#ifndef FIXX11H_FontChange
+#define FIXX11H_FontChange
+const int XFontChange = FontChange;
+#undef FontChange
+const int FontChange = XFontChange;
+#endif
+#undef FontChange
+#endif
+// template <---
+
+// Affects: Should be without side effects.
+#ifdef NormalState
+#ifndef FIXX11H_NormalState
+#define FIXX11H_NormalState
+const int XNormalState = NormalState;
+#undef NormalState
+const int NormalState = XNormalState;
+#endif
+#undef NormalState
+#endif
+
+// template --->
+// Affects: Should be without side effects.
+#ifdef index
+#ifndef FIXX11H_index
+#define FIXX11H_index
+inline
+const char *Xindex(const char *s, int c)
+{
+    return index(s, c);
+}
+#undef index
+inline
+const char *index(const char *s, int c)
+{
+    return Xindex(s, c);
+}
+#endif
+#undef index
+#endif
+// template <---
+
+#ifdef rindex
+// Affects: Should be without side effects.
+#ifndef FIXX11H_rindex
+#define FIXX11H_rindex
+inline
+const char *Xrindex(const char *s, int c)
+{
+    return rindex(s, c);
+}
+#undef rindex
+inline
+const char *rindex(const char *s, int c)
+{
+    return Xrindex(s, c);
+}
+#endif
+#undef rindex
+#endif
+}
+
+using namespace X;
diff --git a/plugins/mousepad/mousepadplugin.cpp b/plugins/mousepad/mousepadplugin.cpp
index 09f5e4b..507522d 100644
--- a/plugins/mousepad/mousepadplugin.cpp
+++ b/plugins/mousepad/mousepadplugin.cpp
@@ -19,9 +19,10 @@
  */
 
 #include "mousepadplugin.h"
-
 #include <X11/extensions/XTest.h>
 
+#include <KPluginFactory>
+
 K_PLUGIN_FACTORY( KdeConnectPluginFactory, registerPlugin< MousepadPlugin >(); )
 
 // Source: http://bharathisubramanian.wordpress.com/2010/04/01/x11-fake-mouse-events-generation-using-xtest/
diff --git a/plugins/mousepad/mousepadplugin.h b/plugins/mousepad/mousepadplugin.h
index f579b72..b6f418e 100644
--- a/plugins/mousepad/mousepadplugin.h
+++ b/plugins/mousepad/mousepadplugin.h
@@ -24,6 +24,7 @@
 #include <QtGui/QCursor>
 #include <core/kdeconnectplugin.h>
 #include <X11/Xlib.h>
+#include "fixx11h.h"
 
 #define PACKAGE_TYPE_MOUSEPAD QLatin1String("kdeconnect.mousepad")
 
diff --git a/plugins/mpriscontrol/CMakeLists.txt b/plugins/mpriscontrol/CMakeLists.txt
index e7a7b25..f10c502 100644
--- a/plugins/mpriscontrol/CMakeLists.txt
+++ b/plugins/mpriscontrol/CMakeLists.txt
@@ -16,7 +16,7 @@ qt5_add_dbus_interface(
 
 add_library(kdeconnect_mpriscontrol MODULE ${kdeconnect_mpriscontrol_SRCS})
 
-target_link_libraries(kdeconnect_mpriscontrol kdeconnectcore)
+target_link_libraries(kdeconnect_mpriscontrol Qt5::DBus KF5::Service kdeconnectcore)
 
 install(TARGETS kdeconnect_mpriscontrol DESTINATION ${PLUGIN_INSTALL_DIR} )
 install(FILES kdeconnect_mpriscontrol.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/plugins/mpriscontrol/mpriscontrolplugin.cpp b/plugins/mpriscontrol/mpriscontrolplugin.cpp
index 7f50697..104c65a 100644
--- a/plugins/mpriscontrol/mpriscontrolplugin.cpp
+++ b/plugins/mpriscontrol/mpriscontrolplugin.cpp
@@ -28,6 +28,8 @@
 #include <QDBusReply>
 #include <QDBusMessage>
 
+#include <KPluginFactory>
+
 #include <core/device.h>
 #include "mprisdbusinterface.h"
 #include "propertiesdbusinterface.h"
diff --git a/plugins/notifications/CMakeLists.txt b/plugins/notifications/CMakeLists.txt
index 8c3431b..d27914e 100644
--- a/plugins/notifications/CMakeLists.txt
+++ b/plugins/notifications/CMakeLists.txt
@@ -6,7 +6,7 @@ set(kdeconnect_notifications_SRCS
 
 add_library(kdeconnect_notifications MODULE ${kdeconnect_notifications_SRCS})
 
-target_link_libraries(kdeconnect_notifications kdeconnectcore KF5::KDELibs4Support)
+target_link_libraries(kdeconnect_notifications kdeconnectcore KF5::Service KF5::Notifications KF5::KDELibs4Support)
 
 install(TARGETS kdeconnect_notifications DESTINATION ${PLUGIN_INSTALL_DIR} )
 install(FILES kdeconnect_notifications.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/plugins/notifications/notificationsplugin.cpp b/plugins/notifications/notificationsplugin.cpp
index ec2d10e..9af82e1 100644
--- a/plugins/notifications/notificationsplugin.cpp
+++ b/plugins/notifications/notificationsplugin.cpp
@@ -23,6 +23,8 @@
 #include "notificationsdbusinterface.h"
 #include "notification_debug.h"
 
+#include <KPluginFactory>
+
 K_PLUGIN_FACTORY( KdeConnectPluginFactory, registerPlugin< NotificationsPlugin >(); )
 
 Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_NOTIFICATION, "kdeconnect.plugin.notification")
diff --git a/plugins/pausemusic/CMakeLists.txt b/plugins/pausemusic/CMakeLists.txt
index 3fae8eb..1a84926 100644
--- a/plugins/pausemusic/CMakeLists.txt
+++ b/plugins/pausemusic/CMakeLists.txt
@@ -5,6 +5,10 @@ set(kdeconnect_pausemusic_SRCS
 add_library(kdeconnect_pausemusic MODULE ${kdeconnect_pausemusic_SRCS})
 
 target_link_libraries(kdeconnect_pausemusic
+    Qt5::Core
+    Qt5::DBus
+    KF5::ConfigCore
+    KF5::Service
     kdeconnectcore
 )
 
@@ -20,7 +24,7 @@ ki18n_wrap_ui( kdeconnect_pausemusic_config_SRCS pausemusic_config.ui )
 
 add_library(kdeconnect_pausemusic_config MODULE ${kdeconnect_pausemusic_config_SRCS} )
 target_link_libraries( kdeconnect_pausemusic_config
-    
+    Qt5::Core
     KF5::KDELibs4Support
 )
 
diff --git a/plugins/pausemusic/pausemusicplugin.cpp b/plugins/pausemusic/pausemusicplugin.cpp
index 8f16dbc..de09354 100644
--- a/plugins/pausemusic/pausemusicplugin.cpp
+++ b/plugins/pausemusic/pausemusicplugin.cpp
@@ -28,6 +28,7 @@
 
 #include <KSharedConfig>
 #include <KConfigGroup>
+#include <KPluginFactory>
 
 #include <core/networkpackage.h>
 
diff --git a/plugins/ping/pingplugin.cpp b/plugins/ping/pingplugin.cpp
index 6743faa..5421479 100644
--- a/plugins/ping/pingplugin.cpp
+++ b/plugins/ping/pingplugin.cpp
@@ -24,6 +24,7 @@
 #include <QIcon>
 #include <QDebug>
 #include <KLocalizedString>
+#include <KPluginFactory>
 
 #include <core/device.h>
 #include <QDBusConnection>
diff --git a/plugins/sftp/CMakeLists.txt b/plugins/sftp/CMakeLists.txt
index 283b9cd..232aef6 100644
--- a/plugins/sftp/CMakeLists.txt
+++ b/plugins/sftp/CMakeLists.txt
@@ -6,7 +6,7 @@ set(kdeconnect_sftp_SRCS
 
 add_library(kdeconnect_sftp MODULE ${kdeconnect_sftp_SRCS})
 
-target_link_libraries(kdeconnect_sftp kdeconnectcore)
+target_link_libraries(kdeconnect_sftp kdeconnectcore KF5::KDELibs4Support KF5::Service)
 
 install(TARGETS kdeconnect_sftp DESTINATION ${PLUGIN_INSTALL_DIR} )
 install(FILES kdeconnect_sftp.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/plugins/sftp/sftpplugin.cpp b/plugins/sftp/sftpplugin.cpp
index 39c44a4..20273c1 100644
--- a/plugins/sftp/sftpplugin.cpp
+++ b/plugins/sftp/sftpplugin.cpp
@@ -33,7 +33,7 @@
 #include <KRun>
 #include <QStandardPaths>
 #include <KFilePlacesModel>
-#include <kde_file.h>
+#include <KPluginFactory>
 
 #include "sftp_config.h"
 #include "mounter.h"
diff --git a/plugins/share/CMakeLists.txt b/plugins/share/CMakeLists.txt
index 2a46f52..54f516f 100644
--- a/plugins/share/CMakeLists.txt
+++ b/plugins/share/CMakeLists.txt
@@ -5,7 +5,14 @@ set(kdeconnect_share_SRCS
 
 add_library(kdeconnect_share MODULE ${kdeconnect_share_SRCS})
 
-target_link_libraries(kdeconnect_share kdeconnectcore ${KDE4_KFILE_LIBS} KF5::KIOWidgets)
+target_link_libraries(kdeconnect_share
+    kdeconnectcore
+    Qt5::DBus
+    KF5::Service
+    KF5::Notifications
+    KF5::I18n
+    KF5::KIOWidgets
+)
 
 install(TARGETS kdeconnect_share DESTINATION ${PLUGIN_INSTALL_DIR} )
 install(FILES kdeconnect_share.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/plugins/share/shareplugin.cpp b/plugins/share/shareplugin.cpp
index 9a9ea06..c6a55ed 100644
--- a/plugins/share/shareplugin.cpp
+++ b/plugins/share/shareplugin.cpp
@@ -21,13 +21,13 @@
 #include "shareplugin.h"
 #include "share_debug.h"
 
-#include <KGlobalSettings>
 #include <QIcon>
 #include <KLocalizedString>
 #include <QStandardPaths>
 #include <KSharedConfig>
 #include <KConfigGroup>
 #include <KJobTrackerInterface>
+#include <KPluginFactory>
 
 #include <qprocess.h>
 #include <QDir>
diff --git a/plugins/telephony/CMakeLists.txt b/plugins/telephony/CMakeLists.txt
index 59ba9a7..cd92c16 100644
--- a/plugins/telephony/CMakeLists.txt
+++ b/plugins/telephony/CMakeLists.txt
@@ -4,7 +4,7 @@ set(kdeconnect_telephony_SRCS
 
 add_library(kdeconnect_telephony MODULE ${kdeconnect_telephony_SRCS})
 
-target_link_libraries(kdeconnect_telephony kdeconnectcore KF5::KDELibs4Support)
+target_link_libraries(kdeconnect_telephony kdeconnectcore KF5::Service KF5::KDELibs4Support)
 
 install(TARGETS kdeconnect_telephony DESTINATION ${PLUGIN_INSTALL_DIR} )
 install(FILES kdeconnect_telephony.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/plugins/telephony/telephonyplugin.cpp b/plugins/telephony/telephonyplugin.cpp
index 7281942..d122740 100644
--- a/plugins/telephony/telephonyplugin.cpp
+++ b/plugins/telephony/telephonyplugin.cpp
@@ -24,6 +24,8 @@
 #include <QIcon>
 #include <QDebug>
 
+#include <KPluginFactory>
+
 K_PLUGIN_FACTORY( KdeConnectPluginFactory, registerPlugin< TelephonyPlugin >(); )
 
 Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_TELEPHONY, "kdeconnect.plugin.telephony")
diff --git a/tests/networkpackagetests.cpp b/tests/networkpackagetests.cpp
index ded1b18..0214a7c 100644
--- a/tests/networkpackagetests.cpp
+++ b/tests/networkpackagetests.cpp
@@ -22,10 +22,9 @@
 
 #include "core/networkpackage.h"
 
-#include <qtest_kde.h>
 #include <QtTest>
 
-QTEST_KDEMAIN(NetworkPackageTests, NoGUI);
+QTEST_GUILESS_MAIN(NetworkPackageTests);
 
 void NetworkPackageTests::initTestCase()
 {

-- 
kdeconnect packaging



More information about the pkg-kde-commits mailing list