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

Maximiliano Curia maxy at moszumanska.debian.org
Fri Oct 14 14:26:48 UTC 2016


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

The following commit has been merged in the master branch:
commit f087871ee47cd583b69f082aed144dba37295ad3
Author: Albert Vaca <albertvaka at gmail.com>
Date:   Fri Aug 16 08:12:29 2013 +0200

    Added KStatusNotifierItem to NotificationsPlugin
---
 daemon/plugins/notifications/notificationsplugin.cpp | 7 +++++++
 daemon/plugins/notifications/notificationsplugin.h   | 4 +++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/daemon/plugins/notifications/notificationsplugin.cpp b/daemon/plugins/notifications/notificationsplugin.cpp
index 8eeb73c..3a6b3e2 100644
--- a/daemon/plugins/notifications/notificationsplugin.cpp
+++ b/daemon/plugins/notifications/notificationsplugin.cpp
@@ -31,7 +31,14 @@ K_EXPORT_PLUGIN( KdeConnectPluginFactory("kdeconnect_notifications", "kdeconnect
 NotificationsPlugin::NotificationsPlugin(QObject* parent, const QVariantList& args)
     : KdeConnectPlugin(parent, args)
 {
+    trayIcon = new KStatusNotifierItem(parent);
+    trayIcon->setIconByName("smartphone");
+    trayIcon->setTitle(device()->name());
+}
 
+NotificationsPlugin::~NotificationsPlugin()
+{
+    delete trayIcon;
 }
 
 bool NotificationsPlugin::receivePackage(const NetworkPackage& np)
diff --git a/daemon/plugins/notifications/notificationsplugin.h b/daemon/plugins/notifications/notificationsplugin.h
index 37b6d88..55f2528 100644
--- a/daemon/plugins/notifications/notificationsplugin.h
+++ b/daemon/plugins/notifications/notificationsplugin.h
@@ -31,10 +31,12 @@ class NotificationsPlugin
     : public KdeConnectPlugin
 {
     Q_OBJECT
+    KStatusNotifierItem* trayIcon;
 
 public:
     explicit NotificationsPlugin(QObject *parent, const QVariantList &args);
-
+    virtual ~NotificationsPlugin();
+    
 public Q_SLOTS:
     virtual bool receivePackage(const NetworkPackage& np);
 

-- 
kdeconnect packaging



More information about the pkg-kde-commits mailing list