Numworks Epsilon  1.4.1
Graphing Calculator Operating System
app.cpp
Go to the documentation of this file.
1 #include "app.h"
2 #include "../apps_container.h"
3 
4 extern "C" {
5 #include <assert.h>
6 }
7 
8 namespace HardwareTest {
9 
11  return new App(container, this);
12 }
13 
15  static Descriptor descriptor;
16  return &descriptor;
17 }
18 
20  ::App(container, snapshot, &m_keyboardController),
21  m_keyboardController(&m_modalViewController),
22  m_USBTestController(nullptr)
23 {
24 }
25 
27  return &m_USBTestController;
28 }
29 
31  return firstResponder() == &m_USBTestController;
32 }
33 
35  assert(i == 0);
36  return &m_USBTestController;
37 }
38 
41  return true;
42 }
43 
44 }
Definition: timer.h:15
#define assert(e)
Definition: assert.h:9
bool processEvent(Ion::Events::Event e) override
Definition: app.cpp:39
Snapshot * snapshot()
Definition: app.cpp:41
int numberOfTimers() override
Definition: app.cpp:30
App(Container *container, Snapshot *snapshot, ViewController *rootViewController, I18n::Message warningMessage=(I18n::Message) 0)
Definition: app.cpp:30
virtual bool processEvent(Ion::Events::Event event)
Definition: app.cpp:45
ModalViewController m_modalViewController
Definition: app.h:65
App * unpack(Container *container) override
Definition: app.cpp:10
Timer * timerAtIndex(int i) override
Definition: app.cpp:34
Responder * firstResponder()
Definition: app.cpp:58
const Container * container() const
Definition: app.cpp:102
Descriptor * descriptor() override
Definition: app.cpp:14
ViewController * USBController()
Definition: app.cpp:26