Changeset View
Changeset View
Standalone View
Standalone View
src/solid/devices/backends/upower/upowerdevice.h
Show All 23 Lines | |||||
24 | #define UPOWERDEVICE_H | 24 | #define UPOWERDEVICE_H | ||
25 | 25 | | |||
26 | #include <ifaces/device.h> | 26 | #include <ifaces/device.h> | ||
27 | #include <solid/deviceinterface.h> | 27 | #include <solid/deviceinterface.h> | ||
28 | 28 | | |||
29 | #include <QDBusInterface> | 29 | #include <QDBusInterface> | ||
30 | #include <QSet> | 30 | #include <QSet> | ||
31 | 31 | | |||
32 | #include "upower_device_interface.h" | ||||
33 | | ||||
32 | namespace Solid | 34 | namespace Solid | ||
33 | { | 35 | { | ||
34 | namespace Backends | 36 | namespace Backends | ||
35 | { | 37 | { | ||
36 | namespace UPower | 38 | namespace UPower | ||
37 | { | 39 | { | ||
38 | 40 | | |||
39 | class UPowerDevice : public Solid::Ifaces::Device | 41 | class UPowerDevice : public Solid::Ifaces::Device | ||
Show All 22 Lines | |||||
62 | 64 | | |||
63 | private Q_SLOTS: | 65 | private Q_SLOTS: | ||
64 | void onPropertiesChanged(const QString &ifaceName, const QVariantMap &changedProps, const QStringList &invalidatedProps); | 66 | void onPropertiesChanged(const QString &ifaceName, const QVariantMap &changedProps, const QStringList &invalidatedProps); | ||
65 | void slotChanged(); | 67 | void slotChanged(); | ||
66 | void login1Resuming(bool active); | 68 | void login1Resuming(bool active); | ||
67 | 69 | | |||
68 | private: | 70 | private: | ||
69 | QString batteryTechnology() const; | 71 | QString batteryTechnology() const; | ||
70 | mutable QDBusInterface m_device; | 72 | OrgFreedesktopUPowerDeviceInterface m_device; | ||
71 | QString m_udi; | 73 | QString m_udi; | ||
72 | mutable QVariantMap m_cache; | 74 | mutable QVariantMap m_cache; | ||
73 | 75 | | |||
74 | void checkCache(const QString &key) const; | 76 | void checkCache(const QString &key) const; | ||
75 | }; | 77 | }; | ||
76 | 78 | | |||
77 | } | 79 | } | ||
78 | } | 80 | } | ||
79 | } | 81 | } | ||
80 | 82 | | |||
81 | #endif // UPOWERDEVICE_H | 83 | #endif // UPOWERDEVICE_H |