Blame view

epsilon-master/apps/suspend_timer.cpp 272 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
  #include "suspend_timer.h"
  #include "apps_container.h"
  
  SuspendTimer::SuspendTimer(AppsContainer * container) :
    Timer(k_idleBeforeSuspendDuration/Timer::TickDuration),
    m_container(container)
  {
  }
  
  bool SuspendTimer::fire() {
    m_container->suspend();
    return false;
  }