Changeset View
Changeset View
Standalone View
Standalone View
plugins/notifications/notificationsdbusinterface.h
Show All 37 Lines | |||||
38 | { | 38 | { | ||
39 | Q_OBJECT | 39 | Q_OBJECT | ||
40 | Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.device.notifications") | 40 | Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.device.notifications") | ||
41 | 41 | | |||
42 | public: | 42 | public: | ||
43 | explicit NotificationsDbusInterface(KdeConnectPlugin* plugin); | 43 | explicit NotificationsDbusInterface(KdeConnectPlugin* plugin); | ||
44 | ~NotificationsDbusInterface() override; | 44 | ~NotificationsDbusInterface() override; | ||
45 | 45 | | |||
46 | void processPackage(const NetworkPackage& np); | 46 | void processPacket(const NetworkPacket& np); | ||
47 | void clearNotifications(); | 47 | void clearNotifications(); | ||
48 | void dismissRequested(const QString& notification); | 48 | void dismissRequested(const QString& notification); | ||
49 | void replyRequested(Notification* noti); | 49 | void replyRequested(Notification* noti); | ||
50 | void addNotification(Notification* noti); | 50 | void addNotification(Notification* noti); | ||
51 | 51 | | |||
52 | public Q_SLOTS: | 52 | public Q_SLOTS: | ||
53 | Q_SCRIPTABLE QStringList activeNotifications(); | 53 | Q_SCRIPTABLE QStringList activeNotifications(); | ||
54 | Q_SCRIPTABLE void sendReply(const QString& replyId, const QString& message); | 54 | Q_SCRIPTABLE void sendReply(const QString& replyId, const QString& message); | ||
Show All 20 Lines |