Numworks Epsilon
1.4.1
Graphing Calculator Operating System
message_controller.cpp
Go to the documentation of this file.
1
#include "
message_controller.h
"
2
#include "../apps_container.h"
3
4
MessageController::MessageController
(I18n::Message * messages,
KDColor
* colors,
uint8_t
numberOfMessages) :
5
ViewController
(nullptr),
6
m_messageViewWithSkip(messages, colors, numberOfMessages)
7
{
8
}
9
10
bool
MessageController::handleEvent
(
Ion::Events::Event
event) {
11
if
(event !=
Ion::Events::Back
&& event !=
Ion::Events::OnOff
&& event !=
Ion::Events::Home
) {
12
app
()->
dismissModalViewController
();
13
return
true
;
14
}
15
return
false
;
16
}
message_controller.h
Ion::Events::Home
constexpr Event Home
Definition:
events.h:68
uint8_t
unsigned char uint8_t
Definition:
stdint.h:4
Ion::Events::Back
constexpr Event Back
Definition:
events.h:66
Ion::Events::Event
Definition:
events.h:9
Ion::Events::OnOff
constexpr Event OnOff
Definition:
events.h:69
KDColor
Definition:
color.h:6
MessageController::handleEvent
bool handleEvent(Ion::Events::Event event) override
Definition:
message_controller.cpp:10
Responder::app
App * app()
Definition:
responder.cpp:77
App::dismissModalViewController
void dismissModalViewController()
Definition:
app.cpp:93
ViewController
Definition:
view_controller.h:30
MessageController::MessageController
MessageController(I18n::Message *messages, KDColor *colors, uint8_t numberOfMessages)
Definition:
message_controller.cpp:4
epsilon
apps
shared
message_controller.cpp
Generated by
1.8.14