Changeset View
Changeset View
Standalone View
Standalone View
plugins/notifications/notificationsdbusinterface.h
Context not available. | |||||
39 | Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.device.notifications") | 39 | Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.device.notifications") | ||
---|---|---|---|---|---|
40 | 40 | | |||
41 | public: | 41 | public: | ||
42 | enum RemoveType{ | | |||
43 | KeepNotification, DestroyNotification | | |||
44 | }; | | |||
45 | | ||||
46 | explicit NotificationsDbusInterface(KdeConnectPlugin* plugin); | 42 | explicit NotificationsDbusInterface(KdeConnectPlugin* plugin); | ||
47 | ~NotificationsDbusInterface() override; | 43 | ~NotificationsDbusInterface() override; | ||
48 | 44 | | |||
Context not available. | |||||
62 | Q_SCRIPTABLE void allNotificationsRemoved(); | 58 | Q_SCRIPTABLE void allNotificationsRemoved(); | ||
63 | 59 | | |||
64 | private /*methods*/: | 60 | private /*methods*/: | ||
65 | void removeNotification(const QString& internalId, RemoveType removetype=DestroyNotification); | 61 | void removeNotification(const QString& internalId); | ||
66 | QString newId(); //Generates successive identifitiers to use as public ids | 62 | QString newId(); //Generates successive identifitiers to use as public ids | ||
67 | 63 | | |||
68 | private /*attributes*/: | 64 | private /*attributes*/: | ||
69 | const Device* mDevice; | 65 | const Device* m_device; | ||
70 | KdeConnectPlugin* mPlugin; | 66 | KdeConnectPlugin* m_plugin; | ||
71 | QHash<QString, Notification*> mNotifications; | 67 | QHash<QString, Notification*> m_notifications; | ||
72 | QHash<QString, QString> mInternalIdToPublicId; | 68 | QHash<QString, QString> m_internalIdToPublicId; | ||
73 | int mLastId; | 69 | int m_lastId; | ||
74 | }; | 70 | }; | ||
75 | 71 | | |||
76 | #endif | 72 | #endif | ||
Context not available. |