Files
Upsilon/apps/suspend_timer.h
Émilie Feral c644a8d4f7 [escher] Fix bug: do not redraw window at each timer fire but only for
timer requiring redraw

Change-Id: Ia39a35185a4836809970f5ba77cc76a8b2e6ee26
2017-05-23 15:25:00 +02:00

19 lines
347 B
C++

#ifndef APPS_SUSPEND_TIMER_H
#define APPS_SUSPEND_TIMER_H
#include <escher.h>
class AppsContainer;
class SuspendTimer : public Timer {
public:
SuspendTimer(AppsContainer * container);
private:
constexpr static int k_idleBeforeSuspendDuration = 5*60*1000; // In miliseconds
bool fire() override;
AppsContainer * m_container;
};
#endif