Changeset View
Changeset View
Standalone View
Standalone View
libnotificationmanager/notificationsmodel.h
Show All 37 Lines | 36 | public: | |||
---|---|---|---|---|---|
38 | 38 | | |||
39 | using Ptr = QSharedPointer<NotificationsModel>; | 39 | using Ptr = QSharedPointer<NotificationsModel>; | ||
40 | static Ptr createNotificationsModel(); | 40 | static Ptr createNotificationsModel(); | ||
41 | 41 | | |||
42 | QDateTime lastRead() const; | 42 | QDateTime lastRead() const; | ||
43 | void setLastRead(const QDateTime &lastRead); | 43 | void setLastRead(const QDateTime &lastRead); | ||
44 | 44 | | |||
45 | QVariant data(const QModelIndex &index, int role) const override; | 45 | QVariant data(const QModelIndex &index, int role) const override; | ||
46 | bool setData(const QModelIndex &index, const QVariant &value, int role) override; | ||||
46 | int rowCount(const QModelIndex &parent = QModelIndex()) const override; | 47 | int rowCount(const QModelIndex &parent = QModelIndex()) const override; | ||
47 | 48 | | |||
48 | void expire(uint notificationId); | 49 | void expire(uint notificationId); | ||
49 | void close(uint notificationId); | 50 | void close(uint notificationId); | ||
50 | void configure(uint notificationId); | 51 | void configure(uint notificationId); | ||
51 | void configure(const QString &desktopEntry, const QString ¬ifyRcName, const QString &eventId); | 52 | void configure(const QString &desktopEntry, const QString ¬ifyRcName, const QString &eventId); | ||
52 | void invokeDefaultAction(uint notificationId); | 53 | void invokeDefaultAction(uint notificationId); | ||
53 | void invokeAction(uint notificationId, const QString &actionName); | 54 | void invokeAction(uint notificationId, const QString &actionName); | ||
Show All 19 Lines |