Changeset View
Changeset View
Standalone View
Standalone View
dataengines/devicenotifications/devicenotificationsengine.h
Show All 17 Lines | |||||
18 | * Boston, MA 02110-1301, USA. | 18 | * Boston, MA 02110-1301, USA. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | 21 | | |||
22 | #ifndef DEVICENOTIFICATIONSENGINE_H | 22 | #ifndef DEVICENOTIFICATIONSENGINE_H | ||
23 | #define DEVICENOTIFICATIONSENGINE_H | 23 | #define DEVICENOTIFICATIONSENGINE_H | ||
24 | 24 | | |||
25 | #include <Plasma/DataEngine> | 25 | #include <Plasma/DataEngine> | ||
26 | 26 | | |||
broulik: Unused? | |||||
bruns: yes, leftover from a different approach. | |||||
27 | #include "ksolidnotify.h" | 27 | #include "ksolidnotify.h" | ||
28 | 28 | | |||
29 | /** | 29 | /** | ||
30 | * Engine which provides data sources for device notifications. | 30 | * Engine which provides data sources for device notifications. | ||
31 | * Each notification is represented by one source. | 31 | * Each notification is represented by one source. | ||
32 | */ | 32 | */ | ||
33 | class DeviceNotificationsEngine : public Plasma::DataEngine | 33 | class DeviceNotificationsEngine : public Plasma::DataEngine | ||
34 | { | 34 | { | ||
35 | Q_OBJECT | 35 | Q_OBJECT | ||
36 | public: | 36 | public: | ||
37 | DeviceNotificationsEngine( QObject* parent, const QVariantList& args ); | 37 | DeviceNotificationsEngine( QObject* parent, const QVariantList& args ); | ||
38 | ~DeviceNotificationsEngine() override; | 38 | ~DeviceNotificationsEngine() override; | ||
39 | 39 | | |||
40 | private slots: | 40 | private slots: | ||
41 | void notify(Solid::ErrorType solidError, const QString& error, const QString& errorDetails, const QString &udi); | 41 | void notify(Solid::ErrorType solidError, const QString& error, const QString& errorDetails, const QString &udi); | ||
42 | void clearNotification(const QString &udi); | ||||
bruns: whitespace. | |||||
42 | 43 | | |||
43 | private: | 44 | private: | ||
44 | uint m_id; | | |||
45 | KSolidNotify * m_solidNotify; | 45 | KSolidNotify * m_solidNotify; | ||
46 | }; | 46 | }; | ||
47 | 47 | | |||
48 | #endif | 48 | #endif |
Unused?