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

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


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

The following commit has been merged in the master branch:
commit 3b5ab5e83f827a0cf2a81ad0390e3e0a6434cdb1
Author: Àlex Fiestas <afiestas at kde.org>
Date:   Mon Sep 22 00:46:41 2014 +0200

    Port Telephony plugin from kDebug to qCDebug
---
 plugins/telephony/telephonyplugin.cpp | 7 ++++---
 plugins/telephony/telephonyplugin.h   | 3 +++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/plugins/telephony/telephonyplugin.cpp b/plugins/telephony/telephonyplugin.cpp
index 8ffc4b3..a350372 100644
--- a/plugins/telephony/telephonyplugin.cpp
+++ b/plugins/telephony/telephonyplugin.cpp
@@ -22,12 +22,13 @@
 
 #include <KLocalizedString>
 #include <QIcon>
-
-#include <core/kdebugnamespace.h>
+#include <QDebug>
 
 K_PLUGIN_FACTORY( KdeConnectPluginFactory, registerPlugin< TelephonyPlugin >(); )
 K_EXPORT_PLUGIN( KdeConnectPluginFactory("kdeconnect_telephony", "kdeconnect-plugins") )
 
+Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_TELEPHONY, "kdeconnect.plugin.telephony")
+
 TelephonyPlugin::TelephonyPlugin(QObject *parent, const QVariantList &args)
     : KdeConnectPlugin(parent, args)
 {
@@ -66,7 +67,7 @@ KNotification* TelephonyPlugin::createNotification(const NetworkPackage& np)
         content = i18n("Unknown telephony event: %2", event);
     }
 
-    kDebug(debugArea()) << "Creating notification with type:" << type;
+    qCDebug(KDECONNECT_PLUGIN_TELEPHONY) << "Creating notification with type:" << type;
 
     KNotification* notification = new KNotification(type, KNotification::CloseOnTimeout, this); //, KNotification::Persistent
     notification->setPixmap(QIcon::fromTheme(icon).pixmap(48, 48));
diff --git a/plugins/telephony/telephonyplugin.h b/plugins/telephony/telephonyplugin.h
index 1b11ad2..0d0a131 100644
--- a/plugins/telephony/telephonyplugin.h
+++ b/plugins/telephony/telephonyplugin.h
@@ -21,6 +21,7 @@
 #ifndef TELEPHONYPLUGIN_H
 #define TELEPHONYPLUGIN_H
 
+#include <QLoggingCategory>
 #include <knotification.h>
 
 #include <core/kdeconnectplugin.h>
@@ -29,6 +30,8 @@
 
 #define PACKAGE_TYPE_TELEPHONY QLatin1String("kdeconnect.telephony")
 
+Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_TELEPHONY)
+
 class TelephonyPlugin
     : public KdeConnectPlugin
 {

-- 
kdeconnect packaging



More information about the pkg-kde-commits mailing list