14 m_emptyBatteryWindow(),
16 m_variableBoxController(&m_globalContext),
17 m_examPopUpController(this),
22 m_backlightDimmingTimer(),
24 m_onBoardingSnapshot(),
25 m_hardwareTestSnapshot(),
26 m_usbConnectedSnapshot()
38 return &m_hardwareTestSnapshot;
42 return &m_onBoardingSnapshot;
46 return &m_usbConnectedSnapshot;
57 return &m_globalContext;
61 return &m_mathToolbox;
65 return &m_variableBoxController;
69 resetShiftAlphaStatus();
70 #if EPSILON_SOFTWARE_UPDATE_PROMPT 80 m_backlightDimmingTimer.
reset();
85 bool alphaLockWantsRedraw = updateAlphaLock();
87 bool didProcessEvent =
false;
100 didProcessEvent =
true;
107 didProcessEvent =
true;
119 if (!didProcessEvent) {
120 didProcessEvent = processEvent(event);
123 m_backlightDimmingTimer.
reset();
124 m_suspendTimer.
reset();
127 if (!didProcessEvent && alphaLockWantsRedraw) {
131 return didProcessEvent || alphaLockWantsRedraw;
148 resetShiftAlphaStatus();
164 #if EPSILON_ONBOARDING_APP 197 m_emptyBatteryWindow.
redraw(
true);
209 bool AppsContainer::updateAlphaLock() {
214 return &m_updateController;
227 Window * AppsContainer::window() {
231 int AppsContainer::numberOfContainerTimers() {
235 Timer * AppsContainer::containerTimerAtIndex(
int i) {
236 Timer * timers[4] = {&m_batteryTimer, &m_suspendTimer, &m_backlightDimmingTimer, &m_ledTimer};
240 void AppsContainer::resetShiftAlphaStatus() {
bool updateBatteryLevel()
void setTitle(I18n::Message title)
virtual void switchTo(App::Snapshot *snapshot)
void displayExamModePopUp(bool activate)
void displayModalViewController(ViewController *vc, float verticalAlignment, float horizontalAlignment, KDCoordinate topMargin=0, KDCoordinate leftMargin=0, KDCoordinate bottomMargin=0, KDCoordinate rightMargin=0)
virtual App::Snapshot * appSnapshotAtIndex(int index)=0
void shutdownDueToLowBattery()
void setFrame(KDRect frame)
void switchTo(App::Snapshot *snapshot) override
void setBrightness(uint8_t b)
virtual bool dispatchEvent(Ion::Events::Event event) override
bool updatePluggedState()
static void setCircuitBreaker(CircuitBreaker cb)
void clearEnumerationInterrupt()
VariableBoxController * variableBoxController()
OnBoarding::UpdateController * updatePopUpController()
void setShiftAlphaStatus(Ion::Events::ShiftAlphaStatus newStatus)
App::Snapshot * hardwareTestAppSnapshot()
void suspend(bool checkIfPowerKeyReleased=false)
App::Snapshot * onBoardingAppSnapshot()
Poincare::Context * globalContext()
bool keyDown(Key k) const
void redraw(bool force=false)
bool updateIsChargingState()
App::Snapshot * usbConnectedAppSnapshot()
bool updateBatteryState()
bool isKeyboardEvent() const
void examDeactivatingPopUpIsDismissed() override
void refreshPreferences()
void setShiftAlphaStatus(ShiftAlphaStatus s)
virtual int numberOfApps()=0
MathToolbox * mathToolbox()
static constexpr KDCoordinate ExamPopUpBottomMargin
constexpr uint8_t MaxBrightness
virtual I18n::Message upperName()
virtual Descriptor * descriptor()=0
ExamMode examMode() const
virtual bool dispatchEvent(Ion::Events::Event event) override
constexpr Event USBEnumeration
static Clipboard * sharedClipboard()
void refreshPreferences()
static constexpr KDCoordinate PopUpRightMargin
static bool poincareCircuitBreaker()
void setActivatingExamMode(bool activingExamMode)
static GlobalPreferences * sharedGlobalPreferences()
void hideTitleBarView(bool hide)
static constexpr KDCoordinate ExamPopUpTopMargin
void suspend(bool checkIfPowerKeyReleased=false)
static constexpr KDCoordinate PopUpLeftMargin