fixes
This commit is contained in:
parent
a0ebe1b722
commit
27059afc3e
|
@ -19,6 +19,7 @@
|
|||
#include "fredesktopnotification.h"
|
||||
|
||||
#include <QImage>
|
||||
#include <QDBusMetaType>
|
||||
|
||||
int FreedesktopImageHint::imageHintID = qDBusRegisterMetaType<FreedesktopImageHint>();
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "core/notification/notification.h"
|
||||
|
||||
#include <QMetaType>
|
||||
#include <QDBusArgument>
|
||||
|
||||
class FreedesktopImageHint
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue