Blame view

build6/epsilon-master/apps/suspend_timer.h 347 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  #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