Changeset View
Changeset View
Standalone View
Standalone View
src/solid/devices/backends/upower/upowermanager.h
Show All 22 Lines | |||||
23 | #ifndef UPOWERMANAGER_H | 23 | #ifndef UPOWERMANAGER_H | ||
24 | #define UPOWERMANAGER_H | 24 | #define UPOWERMANAGER_H | ||
25 | 25 | | |||
26 | #include "solid/devices/ifaces/devicemanager.h" | 26 | #include "solid/devices/ifaces/devicemanager.h" | ||
27 | 27 | | |||
28 | #include <QDBusInterface> | 28 | #include <QDBusInterface> | ||
29 | #include <QSet> | 29 | #include <QSet> | ||
30 | 30 | | |||
31 | #include "upower_interface.h" | ||||
32 | | ||||
31 | namespace Solid | 33 | namespace Solid | ||
32 | { | 34 | { | ||
33 | namespace Backends | 35 | namespace Backends | ||
34 | { | 36 | { | ||
35 | namespace UPower | 37 | namespace UPower | ||
36 | { | 38 | { | ||
37 | 39 | | |||
38 | class UPowerManager : public Solid::Ifaces::DeviceManager | 40 | class UPowerManager : public Solid::Ifaces::DeviceManager | ||
Show All 10 Lines | 44 | public: | |||
49 | QString udiPrefix() const override; | 51 | QString udiPrefix() const override; | ||
50 | 52 | | |||
51 | private Q_SLOTS: | 53 | private Q_SLOTS: | ||
52 | void onDeviceAdded(const QDBusObjectPath &path); | 54 | void onDeviceAdded(const QDBusObjectPath &path); | ||
53 | void onDeviceRemoved(const QDBusObjectPath &path); | 55 | void onDeviceRemoved(const QDBusObjectPath &path); | ||
54 | 56 | | |||
55 | private: | 57 | private: | ||
56 | QSet<Solid::DeviceInterface::Type> m_supportedInterfaces; | 58 | QSet<Solid::DeviceInterface::Type> m_supportedInterfaces; | ||
57 | QDBusInterface m_manager; | 59 | OrgFreedesktopUPowerInterface m_manager; | ||
58 | }; | 60 | }; | ||
59 | 61 | | |||
60 | } | 62 | } | ||
61 | } | 63 | } | ||
62 | } | 64 | } | ||
63 | #endif // UPOWERMANAGER_H | 65 | #endif // UPOWERMANAGER_H |