Changeset View
Changeset View
Standalone View
Standalone View
plugins/notifications/notificationsdbusinterface.h
Show All 39 Lines | |||||
40 | 40 | | |||
41 | public: | 41 | public: | ||
42 | explicit NotificationsDbusInterface(KdeConnectPlugin* plugin); | 42 | explicit NotificationsDbusInterface(KdeConnectPlugin* plugin); | ||
43 | ~NotificationsDbusInterface() override; | 43 | ~NotificationsDbusInterface() override; | ||
44 | 44 | | |||
45 | void processPackage(const NetworkPackage& np); | 45 | void processPackage(const NetworkPackage& np); | ||
46 | void clearNotifications(); | 46 | void clearNotifications(); | ||
47 | void dismissRequested(const QString& notification); | 47 | void dismissRequested(const QString& notification); | ||
48 | void replyRequested(Notification* noti); | ||||
48 | void addNotification(Notification* noti); | 49 | void addNotification(Notification* noti); | ||
49 | 50 | | |||
50 | public Q_SLOTS: | 51 | public Q_SLOTS: | ||
51 | Q_SCRIPTABLE QStringList activeNotifications(); | 52 | Q_SCRIPTABLE QStringList activeNotifications(); | ||
53 | Q_SCRIPTABLE void sendReply(const QString& replyId, const QString& message); | ||||
52 | 54 | | |||
53 | Q_SIGNALS: | 55 | Q_SIGNALS: | ||
54 | Q_SCRIPTABLE void notificationPosted(const QString& publicId); | 56 | Q_SCRIPTABLE void notificationPosted(const QString& publicId); | ||
55 | Q_SCRIPTABLE void notificationRemoved(const QString& publicId); | 57 | Q_SCRIPTABLE void notificationRemoved(const QString& publicId); | ||
56 | Q_SCRIPTABLE void allNotificationsRemoved(); | 58 | Q_SCRIPTABLE void allNotificationsRemoved(); | ||
57 | 59 | | |||
58 | private /*methods*/: | 60 | private /*methods*/: | ||
59 | void removeNotification(const QString& internalId); | 61 | void removeNotification(const QString& internalId); | ||
Show All 11 Lines |