[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:27:48 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=12411da
The following commit has been merged in the master branch:
commit 12411da360eb21a12c6e7461b32caa063b862eac
Author: Albert Vaca <albertvaka at gmail.com>
Date: Tue Jul 1 01:25:30 2014 +0200
Added some debug info to devices and notifications models
---
interfaces/devicesmodel.cpp | 12 ++++++++----
interfaces/notificationsmodel.cpp | 9 ++++++---
2 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/interfaces/devicesmodel.cpp b/interfaces/devicesmodel.cpp
index ce9af3d..bef9db4 100644
--- a/interfaces/devicesmodel.cpp
+++ b/interfaces/devicesmodel.cpp
@@ -26,9 +26,10 @@
#include <KConfigGroup>
#include <KIcon>
-#include "kdebugnamespace.h"
+#include <core/kdebugnamespace.h>
+
+#include "dbusinterfaces.h"
// #include "modeltest.h"
-#include "interfaces/dbusinterfaces.h"
DevicesModel::DevicesModel(QObject *parent)
: QAbstractListModel(parent)
@@ -105,16 +106,19 @@ void DevicesModel::refreshDeviceList()
}
if (!m_dbusInterface->isValid()) {
+ kDebug(debugArea()) << "dbus interface not valid";
return;
}
-
bool onlyPaired = (m_displayFilter & StatusPaired);
bool onlyReachable = (m_displayFilter & StatusReachable);
QDBusPendingReply<QStringList> pendingDeviceIds = m_dbusInterface->devices(onlyReachable, onlyPaired);
pendingDeviceIds.waitForFinished();
- if (pendingDeviceIds.isError()) return;
+ if (pendingDeviceIds.isError()) {
+ kDebug(debugArea()) << pendingDeviceIds.error();
+ return;
+ }
const QStringList& deviceIds = pendingDeviceIds.value();
Q_FOREACH(const QString& id, deviceIds) {
diff --git a/interfaces/notificationsmodel.cpp b/interfaces/notificationsmodel.cpp
index ea84fd6..7ff1638 100644
--- a/interfaces/notificationsmodel.cpp
+++ b/interfaces/notificationsmodel.cpp
@@ -26,8 +26,10 @@
#include <KConfigGroup>
#include <KIcon>
-#include "modeltest.h"
-#include "kdebugnamespace.h"
+#include <core/kdebugnamespace.h>
+
+//#include "modeltest.h"
+
NotificationsModel::NotificationsModel(QObject* parent)
: QAbstractListModel(parent)
@@ -110,12 +112,14 @@ void NotificationsModel::refreshNotificationList()
}
if (!m_dbusInterface->isValid()) {
+ kDebug(debugArea()) << "dbus interface not valid";
return;
}
QDBusPendingReply<QStringList> pendingNotificationIds = m_dbusInterface->activeNotifications();
pendingNotificationIds.waitForFinished();
if (pendingNotificationIds.isError()) {
+ kDebug(debugArea()) << pendingNotificationIds.error();
return;
}
const QStringList& notificationIds = pendingNotificationIds.value();
@@ -205,7 +209,6 @@ bool NotificationsModel::isAnyDimissable() const
return false;
}
-
void NotificationsModel::dismissAll()
{
Q_FOREACH (NotificationDbusInterface* notification, m_notificationList) {
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list