summaryrefslogtreecommitdiff
path: root/saltoqd/notificationmonitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'saltoqd/notificationmonitor.h')
-rw-r--r--saltoqd/notificationmonitor.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/saltoqd/notificationmonitor.h b/saltoqd/notificationmonitor.h
index f617817..8a71b0b 100644
--- a/saltoqd/notificationmonitor.h
+++ b/saltoqd/notificationmonitor.h
@@ -4,6 +4,7 @@
#include <QtCore/QObject>
#include <QtCore/QMap>
#include <QtCore/QDateTime>
+#include <QtGui/QIcon>
class MonitoredNotification : public QObject
{
@@ -13,6 +14,7 @@ class MonitoredNotification : public QObject
Q_PROPERTY(QString summary READ summary NOTIFY summaryChanged)
Q_PROPERTY(QString body READ body NOTIFY bodyChanged)
Q_PROPERTY(QDateTime timestamp READ timestamp NOTIFY timestampChanged)
+ Q_PROPERTY(QString icon READ icon NOTIFY iconChanged)
explicit MonitoredNotification(QObject *parent = 0);
@@ -22,11 +24,13 @@ public:
inline QString summary() const { return _summary; }
inline QString body() const { return _body; }
inline QDateTime timestamp() const { return _timestamp; }
+ inline QString icon() const { return _icon; }
signals:
void summaryChanged();
void bodyChanged();
void timestampChanged();
+ void iconChanged();
void closed(int reason);
@@ -38,6 +42,7 @@ private:
QString _summary;
QString _body;
QDateTime _timestamp;
+ QString _icon;
};
class NotificationMonitor : public QObject