Changeset View
Changeset View
Standalone View
Standalone View
plugins/battery/batterydbusinterface.h
Context not available. | |||||
32 | Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.device.battery") | 32 | Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.device.battery") | ||
---|---|---|---|---|---|
33 | 33 | | |||
34 | public: | 34 | public: | ||
35 | explicit BatteryDbusInterface(const Device *device); | 35 | explicit BatteryDbusInterface(const Device* device); | ||
36 | ~BatteryDbusInterface() override; | 36 | ~BatteryDbusInterface() override; | ||
37 | 37 | | |||
38 | Q_SCRIPTABLE int charge() const { return mCharge; } | 38 | Q_SCRIPTABLE int charge() const { return m_charge; } | ||
39 | Q_SCRIPTABLE bool isCharging() const { return mIsCharging; } | 39 | Q_SCRIPTABLE bool isCharging() const { return m_isCharging; } | ||
40 | 40 | | |||
41 | void updateValues(bool isCharging, int currentCharge); | 41 | void updateValues(bool isCharging, int currentCharge); | ||
42 | 42 | | |||
Context not available. | |||||
45 | Q_SCRIPTABLE void chargeChanged(int charge); | 45 | Q_SCRIPTABLE void chargeChanged(int charge); | ||
46 | 46 | | |||
47 | private: | 47 | private: | ||
48 | int mCharge; | 48 | int m_charge; | ||
49 | bool mIsCharging; | 49 | bool m_isCharging; | ||
50 | 50 | | |||
51 | // Map to save current BatteryDbusInterface for each device. | 51 | // Map to save current BatteryDbusInterface for each device. | ||
52 | static QMap<QString, BatteryDbusInterface *> s_dbusInterfaces; | 52 | static QMap<QString, BatteryDbusInterface *> s_dbusInterfaces; | ||
Context not available. |