From 27059afc3e326821b1ef631307d7707bc87f0d08 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Tue, 3 Feb 2015 18:37:22 +0100 Subject: [PATCH] fixes --- .../backends/freedesktop/fredesktopnotification.cpp | 1 + src/plugins/backends/freedesktop/fredesktopnotification.h | 1 + .../freedesktop/freedesktopnotification_backend.cpp | 4 ++-- .../freedesktop/freedesktopnotification_backend.h | 8 ++++---- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/plugins/backends/freedesktop/fredesktopnotification.cpp b/src/plugins/backends/freedesktop/fredesktopnotification.cpp index b2711e1..5a5fd4e 100644 --- a/src/plugins/backends/freedesktop/fredesktopnotification.cpp +++ b/src/plugins/backends/freedesktop/fredesktopnotification.cpp @@ -19,6 +19,7 @@ #include "fredesktopnotification.h" #include +#include int FreedesktopImageHint::imageHintID = qDBusRegisterMetaType(); diff --git a/src/plugins/backends/freedesktop/fredesktopnotification.h b/src/plugins/backends/freedesktop/fredesktopnotification.h index 6e33624..e7b338f 100644 --- a/src/plugins/backends/freedesktop/fredesktopnotification.h +++ b/src/plugins/backends/freedesktop/fredesktopnotification.h @@ -22,6 +22,7 @@ #include "core/notification/notification.h" #include +#include class FreedesktopImageHint { diff --git a/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp b/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp index 42d1283..1e5473c 100644 --- a/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp +++ b/src/plugins/backends/freedesktop/freedesktopnotification_backend.cpp @@ -13,7 +13,7 @@ FreedesktopBackend::FreedesktopBackend() : { } -bool FreedesktopBackend::initialize(SnoreCore *snore) +bool FreedesktopBackend::initialize() { m_interface = new org::freedesktop::Notifications("org.freedesktop.Notifications", "/org/freedesktop/Notifications", @@ -26,7 +26,7 @@ bool FreedesktopBackend::initialize(SnoreCore *snore) connect(m_interface, SIGNAL(ActionInvoked(uint,QString)), this, SLOT(slotActionInvoked(uint,QString))); connect(m_interface, SIGNAL(NotificationClosed(uint,uint)), this , SLOT(slotNotificationClosed(uint,uint))); - return SnoreBackend::initialize(snore); + return SnoreBackend::initialize(); } bool FreedesktopBackend::deinitialize() diff --git a/src/plugins/backends/freedesktop/freedesktopnotification_backend.h b/src/plugins/backends/freedesktop/freedesktopnotification_backend.h index ad816e6..41030b4 100644 --- a/src/plugins/backends/freedesktop/freedesktopnotification_backend.h +++ b/src/plugins/backends/freedesktop/freedesktopnotification_backend.h @@ -10,12 +10,12 @@ class FreedesktopBackend: public Snore::SnoreBackend Q_PLUGIN_METADATA(IID "org.Snore.NotificationBackend/1.0" FILE "plugin.json") public: FreedesktopBackend(); - virtual bool initialize(Snore::SnoreCore *snore); - virtual bool deinitialize(); + virtual bool initialize() override; + virtual bool deinitialize() override; public slots: - void slotNotify(Snore::Notification notification); - void slotCloseNotification(Snore::Notification notification); + void slotNotify(Snore::Notification notification) override; + void slotCloseNotification(Snore::Notification notification) override; void slotActionInvoked(const uint &id, const QString &actionID); void slotNotificationClosed(const uint &id, const uint &reason);