Blame view

build2/epsilon-master/apps/hardware_test/serial_number_controller.cpp 463 Bytes
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
  #include "serial_number_controller.h"
  #include <ion.h>
  
  namespace HardwareTest {
  
  SerialNumberController::SerialNumberController(Responder * parentResponder) :
    ViewController(parentResponder),
    m_barCodeView()
  {
  }
  
  void SerialNumberController::viewWillAppear() {
    m_barCodeView.setData(Ion::serialNumber());
  }
  
  bool SerialNumberController::handleEvent(Ion::Events::Event event) {
    if (event == Ion::Events::OnOff) {
      return false;
    }
    return true;
  }
  
  }