Numworks Epsilon  1.4.1
Graphing Calculator Operating System
battery_timer.cpp
Go to the documentation of this file.
1 #include "battery_timer.h"
2 #include "apps_container.h"
3 
5  Timer(1),
6  m_container(container)
7 {
8 }
9 
10 bool BatteryTimer::fire() {
11  bool needRedrawing = m_container->updateBatteryState();
13  m_container->shutdownDueToLowBattery();
14  }
15  return needRedrawing;
16 }
Charge level()
Definition: battery.cpp:20
Definition: timer.h:15
void shutdownDueToLowBattery()
bool updateBatteryState()
BatteryTimer(AppsContainer *container)