summaryrefslogtreecommitdiff
path: root/notification.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-07-12 02:18:25 +0200
committerJavier <dev.git@javispedro.com>2015-07-12 02:18:25 +0200
commit8ceebd625229e18de791ea2cc0445cd6691db069 (patch)
tree6b86545b81f61e41b97def0f77df7572bf371547 /notification.h
parent28a02ed82d1ede2c242c105a86f80c90515bde3b (diff)
downloadlibwatchfish-8ceebd625229e18de791ea2cc0445cd6691db069.tar.gz
libwatchfish-8ceebd625229e18de791ea2cc0445cd6691db069.zip
load category, add additional nemo fields
Diffstat (limited to 'notification.h')
-rw-r--r--notification.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/notification.h b/notification.h
index e5bac6b..dc58c78 100644
--- a/notification.h
+++ b/notification.h
@@ -21,6 +21,7 @@
#include <QtCore/QObject>
#include <QtCore/QDateTime>
+#include <QtCore/QStringList>
namespace watchfish
{
@@ -41,6 +42,15 @@ class Notification : public QObject
Q_PROPERTY(QDateTime timestamp READ timestamp WRITE setTimestamp NOTIFY timestampChanged)
/** Icon file path */
Q_PROPERTY(QString icon READ icon WRITE setIcon NOTIFY iconChanged)
+ Q_PROPERTY(int urgency READ urgency WRITE setUrgency NOTIFY urgencyChanged)
+ Q_PROPERTY(bool transient READ transient WRITE setTransient NOTIFY transientChanged)
+
+ /* Nemo stuff */
+ Q_PROPERTY(QString previewSummary READ previewSummary WRITE setPreviewSummary NOTIFY previewSummaryChanged)
+ Q_PROPERTY(QString previewBody READ previewBody WRITE setPreviewBody NOTIFY previewBodyChanged)
+
+ Q_PROPERTY(QStringList actions READ actions NOTIFY actionsChanged)
+
Q_ENUMS(CloseReason)
public:
@@ -71,12 +81,38 @@ public:
QString icon() const;
void setIcon(const QString &icon);
+ int urgency() const;
+ void setUrgency(int urgency);
+
+ bool transient() const;
+ void setTransient(bool transient);
+
+ QString previewSummary() const;
+ void setPreviewSummary(const QString &summary);
+
+ QString previewBody() const;
+ void setPreviewBody(const QString &body);
+
+ QStringList actions() const;
+ void addDBusAction(const QString &action, const QString &service, const QString &path, const QString &iface, const QString &method, const QStringList &args = QStringList());
+
+public slots:
+ void invokeAction(const QString &action);
+ void close();
+
signals:
void senderChanged();
void summaryChanged();
void bodyChanged();
void timestampChanged();
void iconChanged();
+ void urgencyChanged();
+ void transientChanged();
+
+ void previewSummaryChanged();
+ void previewBodyChanged();
+
+ void actionsChanged();
void closed(CloseReason reason);