Changeset View
Changeset View
Standalone View
Standalone View
interfaces/notificationsmodel.h
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | 39 | public: | |||
---|---|---|---|---|---|
66 | QHash<int, QByteArray> roleNames() const override; | 66 | QHash<int, QByteArray> roleNames() const override; | ||
67 | 67 | | |||
68 | public Q_SLOTS: | 68 | public Q_SLOTS: | ||
69 | void dismissAll(); | 69 | void dismissAll(); | ||
70 | 70 | | |||
71 | private Q_SLOTS: | 71 | private Q_SLOTS: | ||
72 | void notificationAdded(const QString& id); | 72 | void notificationAdded(const QString& id); | ||
73 | void notificationRemoved(const QString& id); | 73 | void notificationRemoved(const QString& id); | ||
74 | void notificationUpdated(const QString& id); | 74 | void notificationUpdated(); | ||
75 | void refreshNotificationList(); | 75 | void refreshNotificationList(); | ||
76 | void receivedNotifications(QDBusPendingCallWatcher* watcher); | 76 | void receivedNotifications(QDBusPendingCallWatcher* watcher); | ||
77 | void clearNotifications(); | 77 | void clearNotifications(); | ||
78 | 78 | | |||
79 | Q_SIGNALS: | 79 | Q_SIGNALS: | ||
80 | void deviceIdChanged(const QString& value); | 80 | void deviceIdChanged(const QString& value); | ||
81 | void anyDismissableChanged(); | 81 | void anyDismissableChanged(); | ||
82 | void rowsChanged(); | 82 | void rowsChanged(); | ||
83 | 83 | | |||
84 | private: | 84 | private: | ||
85 | DeviceNotificationsDbusInterface* m_dbusInterface; | 85 | DeviceNotificationsDbusInterface* m_dbusInterface; | ||
86 | QList<NotificationDbusInterface*> m_notificationList; | 86 | QList<NotificationDbusInterface*> m_notificationList; | ||
87 | QString m_deviceId; | 87 | QString m_deviceId; | ||
88 | }; | 88 | }; | ||
89 | 89 | | |||
90 | #endif // DEVICESMODEL_H | 90 | #endif // DEVICESMODEL_H |