Blame view

emulateur/epsilon-nofrendo/apps/hardware_test/app.h 1.12 KB
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
  #ifndef HARDWARE_TEST_APP_H
  #define HARDWARE_TEST_APP_H
  
  #include <escher.h>
  #include "keyboard_test_controller.h"
  #include "screen_test_controller.h"
  #include "led_test_controller.h"
  #include "battery_test_controller.h"
  #include "serial_number_controller.h"
  
  class AppsContainer;
  
  namespace HardwareTest {
  
  class App : public ::App {
  public:
    class Snapshot : public ::App::Snapshot {
    public:
      App * unpack(Container * container) override;
      Descriptor * descriptor() override;
    };
  private:
    class WizardViewController : public BankViewController {
    public:
      WizardViewController(Responder * parentResponder);
      int numberOfChildren() override;
      ViewController * childAtIndex(int i) override;
      bool handleEvent(Ion::Events::Event event) override;
    private:
      KeyboardTestController m_keyboardController;
      ScreenTestController m_screenTestController;
      LEDTestController m_ledTestController;
      BatteryTestController m_batteryTestController;
      SerialNumberController m_serialNumberController;
    };
  
    App(Container * container, Snapshot * snapshot);
    WizardViewController m_wizardViewController;
  };
  
  }
  
  #endif