[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=cfe23bf
The following commit has been merged in the master branch:
commit cfe23bfc223d6bf8f533eac17cf8541fb5f2f35f
Author: Àlex Fiestas <afiestas at kde.org>
Date: Mon Sep 22 00:45:41 2014 +0200
Port ping away from kDebug
---
plugins/ping/pingplugin.cpp | 10 ++++++----
plugins/ping/pingplugin.h | 5 ++++-
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/plugins/ping/pingplugin.cpp b/plugins/ping/pingplugin.cpp
index ee97eec..901d49c 100644
--- a/plugins/ping/pingplugin.cpp
+++ b/plugins/ping/pingplugin.cpp
@@ -22,24 +22,26 @@
#include <KNotification>
#include <QIcon>
+#include <QDebug>
#include <KLocalizedString>
-#include <core/kdebugnamespace.h>
#include <core/device.h>
#include <QDBusConnection>
K_PLUGIN_FACTORY( KdeConnectPluginFactory, registerPlugin< PingPlugin >(); )
K_EXPORT_PLUGIN( KdeConnectPluginFactory("kdeconnect_ping", "kdeconnect-plugins") )
+Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_PING, "kdeconnect.plugin.ping");
+
PingPlugin::PingPlugin(QObject* parent, const QVariantList& args)
: KdeConnectPlugin(parent, args)
{
- //kDebug(debugArea()) << "Ping plugin constructor for device" << device()->name();
+// qCDebug(KDECONNECT_PLUGIN_PING) << "Ping plugin constructor for device" << device()->name();
}
PingPlugin::~PingPlugin()
{
- //kDebug(debugArea()) << "Ping plugin destructor for device" << device()->name();
+// qCDebug(KDECONNECT_PLUGIN_PING) << "Ping plugin destructor for device" << device()->name();
}
bool PingPlugin::receivePackage(const NetworkPackage& np)
@@ -59,7 +61,7 @@ void PingPlugin::sendPing()
{
NetworkPackage np(PACKAGE_TYPE_PING);
bool success = sendPackage(np);
- kDebug(debugArea()) << "sendPing:" << success;
+ qCDebug(KDECONNECT_PLUGIN_PING) << "sendPing:" << success;
}
void PingPlugin::connected()
diff --git a/plugins/ping/pingplugin.h b/plugins/ping/pingplugin.h
index 3156307..82fd759 100644
--- a/plugins/ping/pingplugin.h
+++ b/plugins/ping/pingplugin.h
@@ -22,9 +22,12 @@
#define PINGPLUGIN_H
#include <QObject>
+#include <QLoggingCategory>
#include <core/kdeconnectplugin.h>
+Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_PING)
+
class KDE_EXPORT PingPlugin
: public KdeConnectPlugin
{
@@ -34,7 +37,7 @@ class KDE_EXPORT PingPlugin
public:
explicit PingPlugin(QObject *parent, const QVariantList &args);
virtual ~PingPlugin();
-
+
Q_SCRIPTABLE void sendPing();
public Q_SLOTS:
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list