[apps] Return boolean when charging state or charge level has changed

(to know if the redrawing is necessary)

Change-Id: Iebb1d2ba1f188815b01bcbd6e632244f6169b3f9
This commit is contained in:
Émilie Feral
2017-04-07 11:35:47 +02:00
parent 34464816e0
commit ab128b73dd
6 changed files with 20 additions and 22 deletions

View File

@@ -8,8 +8,8 @@ class AppsWindow : public Window {
public:
AppsWindow();
void setTitle(I18n::Message title);
void updateBatteryLevel();
void updateIsChargingState();
bool updateBatteryLevel();
bool updateIsChargingState();
void refreshPreferences();
private:
constexpr static KDCoordinate k_titleBarHeight = 18;