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

Maximiliano Curia maxy at moszumanska.debian.org
Fri Oct 14 14:27:36 UTC 2016


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

The following commit has been merged in the master branch:
commit e58145b20ef39ded1ebd14f992cdca37e654fefe
Author: Aleix Pol <aleixpol at kde.org>
Date:   Sat Jun 14 13:04:21 2014 +0200

    Don't compile all kde connect in the kded
    
    It's just launching a process.
---
 kded/CMakeLists.txt |  4 ++--
 kded/kded.cpp       | 22 ++++++++++++----------
 2 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/kded/CMakeLists.txt b/kded/CMakeLists.txt
index e2dcb21..12f2403 100644
--- a/kded/CMakeLists.txt
+++ b/kded/CMakeLists.txt
@@ -39,7 +39,7 @@ target_link_libraries(kdeconnectd
     ${QCA2_LIBRARIES}
 )
 
-kde4_add_plugin(kded_kdeconnect kded.cpp ${kded_kdeconnect_SRCS})
+kde4_add_plugin(kded_kdeconnect kded.cpp)
 
 target_link_libraries(kded_kdeconnect
     ${KDE4_KDECORE_LIBS}
@@ -95,4 +95,4 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
 	)
 	install(TARGETS kdeconnect_standalone ${INSTALL_TARGETS_DEFAULT_ARGS})
  
- endif()
\ No newline at end of file
+ endif()
diff --git a/kded/kded.cpp b/kded/kded.cpp
index 03b4da2..d79fbe2 100644
--- a/kded/kded.cpp
+++ b/kded/kded.cpp
@@ -27,6 +27,8 @@
 
 #include "kdebugnamespace.h"
 
+int theArea = KDebug::registerArea("kdeconnect-kded");
+
 K_PLUGIN_FACTORY(KdeConnectFactory, registerPlugin<Kded>();)
 K_EXPORT_PLUGIN(KdeConnectFactory("kdeconnect", "kdeconnect-kded"))
 
@@ -35,13 +37,13 @@ Kded::Kded(QObject *parent, const QList<QVariant>&)
     , m_daemon(0)
 {
     QMetaObject::invokeMethod(this, "start", Qt::QueuedConnection);
-    kDebug(kdeconnect_kded()) << "kded_kdeconnect started"; 
+    kDebug(theArea) << "kded_kdeconnect started";
 }
 
 Kded::~Kded()
 {
     stop();
-    kDebug(kdeconnect_kded()) << "kded_kdeconnect stopped";
+    kDebug(theArea) << "kded_kdeconnect stopped";
 }
 
 void Kded::start()
@@ -51,7 +53,7 @@ void Kded::start()
     }
     
     const QString daemon = KStandardDirs::locate("exe", "kdeconnectd");
-    kDebug(kdeconnect_kded()) << "Starting daemon " << daemon;    
+    kDebug(theArea) << "Starting daemon " << daemon;
     m_daemon = new KProcess(this);
     connect(m_daemon, SIGNAL(started()), SLOT(daemonStarted()));
     connect(m_daemon, SIGNAL(error(QProcess::ProcessError)), this, SLOT(onError(QProcess::ProcessError)));
@@ -83,24 +85,24 @@ void Kded::restart()
 
 void Kded::onError(QProcess::ProcessError errorCode)
 {
-    kError(kdeconnect_kded()) << "Process error code=" << errorCode;
+    kError(theArea) << "Process error code=" << errorCode;
 }
 
 void Kded::daemonStarted()
 {
-    kDebug(kdeconnect_kded()) << "Daemon successfuly started";
+    kDebug(theArea) << "Daemon successfuly started";
     Q_EMIT started();
 }
 
 void Kded::onFinished(int exitCode, QProcess::ExitStatus status)
 {
     if (status == QProcess::CrashExit) {
-        kError(kdeconnect_kded()) << "Process crashed with code=" << exitCode;
-        kError(kdeconnect_kded()) << m_daemon->readAllStandardError();
-        kWarning(kdeconnect_kded()) << "Restarting in 5 sec...";
+        kError(theArea) << "Process crashed with code=" << exitCode;
+        kError(theArea) << m_daemon->readAllStandardError();
+        kWarning(theArea) << "Restarting in 5 sec...";
         QTimer::singleShot(5000, this, SLOT(start()));        
     } else {
-        kWarning(kdeconnect_kded()) << "Process finished with code=" << exitCode;
+        kWarning(theArea) << "Process finished with code=" << exitCode;
     }
 
     Q_EMIT stopped();
@@ -114,5 +116,5 @@ void Kded::checkIfDaemonTerminated()
     }
 
     m_daemon->kill();
-    kWarning(kdeconnect_kded()) << "Daemon  killed";
+    kWarning(theArea) << "Daemon  killed";
 }

-- 
kdeconnect packaging



More information about the pkg-kde-commits mailing list