[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:27:57 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=3f24ccd
The following commit has been merged in the master branch:
commit 3f24ccd39a31edde9e79f8501ef98f7701813d93
Author: Àlex Fiestas <afiestas at kde.org>
Date: Mon Sep 22 00:20:14 2014 +0200
Port the kio from kDebug to qCDebug
Use custom area for the kio "kdeconnect.kio"
---
kio/kiokdeconnect.cpp | 16 +++++++++-------
kio/kiokdeconnect.h | 3 +++
2 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/kio/kiokdeconnect.cpp b/kio/kiokdeconnect.cpp
index e2442a7..d803a53 100644
--- a/kio/kiokdeconnect.cpp
+++ b/kio/kiokdeconnect.cpp
@@ -24,7 +24,7 @@
#include <QtCore/QThread>
#include <QDBusMetaType>
-#include <KDebug>
+#include <QDebug>
#include <KComponentData>
#include <KCmdLineArgs>
#include <KProcess>
@@ -35,6 +35,8 @@
#include <core/kdebugnamespace.h>
+Q_LOGGING_CATEGORY(KDECONNECT_KIO, "kdeconnect.kio")
+
extern "C" int KDE_EXPORT kdemain(int argc, char **argv)
{
K4AboutData about("kiokdeconnect", "kdeconnect-kio", ki18n("kiokdeconnect"), "1.0");
@@ -75,7 +77,7 @@ bool handleDBusError(QDBusReply<T>& reply, KIO::SlaveBase* slave)
{
if (!reply.isValid())
{
- kDebug(debugArea()) << "Error in DBus request:" << reply.error();
+ qCDebug(KDECONNECT_KIO) << "Error in DBus request:" << reply.error();
slave->error(toKioError(reply.error().type()),reply.error().message());
return true;
}
@@ -130,7 +132,7 @@ void KioKdeconnect::listDevice()
{
infoMessage(i18n("Accessing device..."));
- kDebug(debugArea()) << "ListDevice" << m_currentDevice;
+ qCDebug(KDECONNECT_KIO) << "ListDevice" << m_currentDevice;
SftpDbusInterface interface(m_currentDevice);
@@ -185,7 +187,7 @@ void KioKdeconnect::listDevice()
void KioKdeconnect::listDir(const QUrl &url)
{
- kDebug(debugArea()) << "Listing..." << url;
+ qCDebug(KDECONNECT_KIO) << "Listing..." << url;
/// Url is not used here becuase all we could care about the url is the host, and that's already
/// handled in @p setHost
@@ -207,7 +209,7 @@ void KioKdeconnect::listDir(const QUrl &url)
void KioKdeconnect::stat(const QUrl &url)
{
- kDebug(debugArea()) << "Stat: " << url;
+ qCDebug(KDECONNECT_KIO) << "Stat: " << url;
KIO::UDSEntry entry;
entry.insert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR);
@@ -218,7 +220,7 @@ void KioKdeconnect::stat(const QUrl &url)
void KioKdeconnect::get(const QUrl &url)
{
- kDebug(debugArea()) << "Get: " << url;
+ qCDebug(KDECONNECT_KIO) << "Get: " << url;
mimeType("");
finished();
}
@@ -228,7 +230,7 @@ void KioKdeconnect::setHost(const QString &hostName, quint16 port, const QString
//This is called before everything else to set the file we want to show
- kDebug(debugArea()) << "Setting host: " << hostName;
+ qCDebug(KDECONNECT_KIO) << "Setting host: " << hostName;
// In this kio only the hostname is used
Q_UNUSED(port)
diff --git a/kio/kiokdeconnect.h b/kio/kiokdeconnect.h
index 48c7c7a..f655cb2 100644
--- a/kio/kiokdeconnect.h
+++ b/kio/kiokdeconnect.h
@@ -22,11 +22,14 @@
#define KIOKDECONNECT_H
#include <QObject>
+#include <QLoggingCategory>
#include <kio/slavebase.h>
#include "interfaces/dbusinterfaces.h"
+Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_KIO)
+
class KioKdeconnect : public QObject, public KIO::SlaveBase
{
Q_OBJECT
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list