diff options
Diffstat (limited to 'notification.cpp')
-rw-r--r-- | notification.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
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); |