Changeset View
Changeset View
Standalone View
Standalone View
libnotificationmanager/notificationsmodel.h
Show All 39 Lines | 36 | public: | |||
---|---|---|---|---|---|
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 | bool setData(const QModelIndex &index, const QVariant &value, int role) override; | ||
47 | int rowCount(const QModelIndex &parent = QModelIndex()) const override; | 47 | int rowCount(const QModelIndex &parent = QModelIndex()) const override; | ||
48 | QHash<int, QByteArray> roleNames() const override; | ||||
48 | 49 | | |||
49 | void expire(uint notificationId); | 50 | void expire(uint notificationId); | ||
50 | void close(uint notificationId); | 51 | void close(uint notificationId); | ||
51 | void configure(uint notificationId); | 52 | void configure(uint notificationId); | ||
52 | void configure(const QString &desktopEntry, const QString ¬ifyRcName, const QString &eventId); | 53 | void configure(const QString &desktopEntry, const QString ¬ifyRcName, const QString &eventId); | ||
53 | void invokeDefaultAction(uint notificationId); | 54 | void invokeDefaultAction(uint notificationId); | ||
54 | void invokeAction(uint notificationId, const QString &actionName); | 55 | void invokeAction(uint notificationId, const QString &actionName); | ||
55 | void reply(uint notificationId, const QString &text); | 56 | void reply(uint notificationId, const QString &text); | ||
Show All 19 Lines |