Changeset View
Changeset View
Standalone View
Standalone View
interfaces/notificationsmodel.h
Show All 38 Lines | |||||
39 | public: | 39 | public: | ||
40 | enum ModelRoles { | 40 | enum ModelRoles { | ||
41 | IconModelRole = Qt::DecorationRole, | 41 | IconModelRole = Qt::DecorationRole, | ||
42 | NameModelRole = Qt::DisplayRole, | 42 | NameModelRole = Qt::DisplayRole, | ||
43 | ContentModelRole = Qt::UserRole, | 43 | ContentModelRole = Qt::UserRole, | ||
44 | AppNameModelRole = Qt::UserRole + 1, | 44 | AppNameModelRole = Qt::UserRole + 1, | ||
45 | IdModelRole, | 45 | IdModelRole, | ||
46 | DismissableModelRole, | 46 | DismissableModelRole, | ||
47 | DbusInterfaceRole, | 47 | RepliableModelRole, | ||
48 | IconPathModelRole, | ||||
49 | DbusInterfaceRole | ||||
48 | }; | 50 | }; | ||
49 | 51 | | |||
50 | explicit NotificationsModel(QObject* parent = nullptr); | 52 | explicit NotificationsModel(QObject* parent = nullptr); | ||
51 | ~NotificationsModel() override; | 53 | ~NotificationsModel() override; | ||
52 | 54 | | |||
53 | QString deviceId() const; | 55 | QString deviceId() const; | ||
54 | void setDeviceId(const QString& deviceId); | 56 | void setDeviceId(const QString& deviceId); | ||
55 | 57 | | |||
Show All 30 Lines |