6#include <PhosphorServiceNotifications/phosphorservicenotifications_export.h>
11#include <QAbstractListModel>
59 [[nodiscard]]
int rowCount(const QModelIndex& parent = {})
const override;
60 [[nodiscard]] QVariant
data(
const QModelIndex& index,
int role)
const override;
61 [[nodiscard]] QHash<int, QByteArray>
roleNames()
const override;
70 void onNotificationClosed(uint
id);
77 QList<Notification*> m_rows;
NotificationModel(QObject *parent=nullptr)
Roles
Definition NotificationModel.h:31
@ TransientRole
Definition NotificationModel.h:45
@ ResidentRole
Definition NotificationModel.h:44
@ TimestampRole
Definition NotificationModel.h:49
@ IdRole
Definition NotificationModel.h:33
@ ImageRole
Definition NotificationModel.h:42
@ DesktopEntryRole
Definition NotificationModel.h:41
@ NotificationRole
Definition NotificationModel.h:32
@ BodyRole
Definition NotificationModel.h:37
@ ActionsRole
Definition NotificationModel.h:38
@ ValueRole
Definition NotificationModel.h:47
@ ExpireTimeoutRole
Definition NotificationModel.h:48
@ HasImageRole
Definition NotificationModel.h:43
@ SummaryRole
Definition NotificationModel.h:36
@ SuppressSoundRole
Definition NotificationModel.h:46
@ AppIconRole
Definition NotificationModel.h:35
@ CategoryRole
Definition NotificationModel.h:40
@ UrgencyRole
Definition NotificationModel.h:39
@ AppNameRole
Definition NotificationModel.h:34
QHash< int, QByteArray > roleNames() const override
NotificationServer * server() const
int rowCount(const QModelIndex &parent={}) const override
QVariant data(const QModelIndex &index, int role) const override
void setServer(NotificationServer *server)
The session-bus server for org.freedesktop.Notifications (Desktop Notifications Spec 1....
Definition NotificationServer.h:42
One live notification, decoded from an org.freedesktop.Notifications Notify call.
Definition Notification.h:36
Definition Notification.h:15