6#include <PhosphorServiceNotifications/phosphorservicenotifications_export.h>
35class PHOSPHORSERVICENOTIFICATIONS_EXPORT Notification :
public QObject
38 Q_PROPERTY(uint
id READ
id CONSTANT)
66 [[nodiscard]] uint
id()
const
82 [[nodiscard]] QString
body()
const
100 return m_desktopEntry;
108 return !m_image.isNull();
120 return m_suppressSound;
131 return m_expireTimeout;
138 [[nodiscard]] QVariantMap
hints()
const
150 Q_DISABLE_COPY_MOVE(Notification)
153 explicit Notification(uint
id, QObject* parent =
nullptr);
160 QStringList m_actions;
163 QString m_desktopEntry;
165 bool m_resident = false;
166 bool m_transient = false;
167 bool m_suppressSound = false;
169 int m_expireTimeout = -1;
170 QDateTime m_timestamp;
The session-bus server for org.freedesktop.Notifications (Desktop Notifications Spec 1....
Definition NotificationServer.h:42
QString desktopEntry() const
Definition Notification.h:98
QString body() const
Definition Notification.h:82
Urgency
Spec urgency levels (the urgency hint, a byte).
Definition Notification.h:59
@ Low
Definition Notification.h:60
@ Normal
Definition Notification.h:61
@ Critical
Definition Notification.h:62
void changed()
Emitted once per replaces_id update: the server re-applies the full field set in place (a replacing N...
QString appIcon() const
Definition Notification.h:74
QString appName() const
Definition Notification.h:70
uint id() const
Definition Notification.h:66
bool transient() const
Definition Notification.h:114
int value() const
The value hint (a progress percentage by convention), or -1 when absent.
Definition Notification.h:124
QImage image() const
Definition Notification.h:102
bool suppressSound() const
Definition Notification.h:118
QString summary() const
Definition Notification.h:78
QString category() const
Definition Notification.h:94
QDateTime timestamp() const
When the notification was first received (does not move on replace).
Definition Notification.h:134
bool resident() const
Definition Notification.h:110
QVariantMap hints() const
Definition Notification.h:138
int expireTimeout() const
The raw expire_timeout from Notify (-1 server-default, 0 never, >0 ms).
Definition Notification.h:129
QStringList actions() const
Definition Notification.h:86
Urgency urgency() const
Definition Notification.h:90
bool hasImage() const
Definition Notification.h:106
friend class NotificationServer
Definition Notification.h:151
Definition Notification.h:15