summaryrefslogtreecommitdiff
path: root/daemon/notificationmanager.h
diff options
context:
space:
mode:
authorTomasz Sterna <tomek@xiaoka.com>2014-09-26 12:54:09 +0200
committerTomasz Sterna <tomek@xiaoka.com>2014-09-26 16:04:18 +0200
commitd7abfcff90be52b90ed93f3ba9ad74435cd7864d (patch)
treea15594e65d77e1b7c951e4ad412fcb719abf0361 /daemon/notificationmanager.h
parentd13be72acb8a2c04f3bec7f562d5fe922d8389c8 (diff)
Avoid sending a reply for eavesdropped method calls
Fixes duplicate notifications bug. This comes from Salmeta, 4a79b503f10763, by Javier S. Pedro
Diffstat (limited to 'daemon/notificationmanager.h')
-rw-r--r--daemon/notificationmanager.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/daemon/notificationmanager.h b/daemon/notificationmanager.h
index ab9895a..0432f00 100644
--- a/daemon/notificationmanager.h
+++ b/daemon/notificationmanager.h
@@ -2,6 +2,7 @@
#define NOTIFICATIONMANAGER_H
#include <QObject>
+#include <QtDBus/QDBusContext>
#include <Log4Qt/Logger>
#include "settings.h"
@@ -10,7 +11,7 @@
typedef QHash<QString, QString> QStringHash;
-class NotificationManager : public QObject
+class NotificationManager : public QObject, protected QDBusContext
{
Q_OBJECT
LOG4QT_DECLARE_QCLASS_LOGGER
@@ -31,7 +32,7 @@ Q_SIGNALS:
void emailNotify(const QString &sender, const QString &data,const QString &subject);
public Q_SLOTS:
- void Notify(const QString &app_name, uint replaces_id, const QString &app_icon, const QString &summary, const QString &body, const QStringList &actions, const QVariantHash &hints, int expire_timeout);
+ uint Notify(const QString &app_name, uint replaces_id, const QString &app_icon, const QString &summary, const QString &body, const QStringList &actions, const QVariantHash &hints, int expire_timeout);
protected Q_SLOTS:
void initialize(bool notifyError = false);