From e555e7549d369feaf2e6176a75a5f56fe2774995 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 12 Jun 2016 15:44:00 +0200 Subject: add category property to Notification --- notification.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'notification.cpp') diff --git a/notification.cpp b/notification.cpp index e57006a..d0addbd 100644 --- a/notification.cpp +++ b/notification.cpp @@ -45,6 +45,7 @@ struct NotificationPrivate QString body; QDateTime timestamp; QString icon; + QString category; quint8 urgency; bool transient; QString previewSummary; @@ -158,6 +159,21 @@ void Notification::setIcon(const QString &icon) } } +QString Notification::category() const +{ + Q_D(const Notification); + return d->category; +} + +void Notification::setCategory(const QString &category) +{ + Q_D(Notification); + if (category != d->category) { + d->category = category; + emit categoryChanged(); + } +} + int Notification::urgency() const { Q_D(const Notification); -- cgit v1.2.3