This commit is contained in:
Patrick von Reth 2015-02-03 18:37:22 +01:00
parent a0ebe1b722
commit 27059afc3e
4 changed files with 8 additions and 6 deletions

View File

@ -19,6 +19,7 @@
#include "fredesktopnotification.h"
#include <QImage>
#include <QDBusMetaType>
int FreedesktopImageHint::imageHintID = qDBusRegisterMetaType<FreedesktopImageHint>();

View File

@ -22,6 +22,7 @@
#include "core/notification/notification.h"
#include <QMetaType>
#include <QDBusArgument>
class FreedesktopImageHint
{

View File

@ -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()

View File

@ -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);