1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
24
25
36
37
41
/* ... */
#include <gui/common/DemoPresenter.hpp>
DemoPresenter::DemoPresenter(DemoViewInterface& view) :
viewInterface(view)
{
}{ ... }
void DemoPresenter::backOptionSelected()
{
if (model->getPreviousSelectedMainMenuType() == Model::CAROUSEL_MENU)
{
static_cast<FrontendApplication*>(Application::getInstance())->gotoMainMenuCarouselScreen();
}if (model->getPreviousSelectedMainMenuType() == Model::CAROUSEL_MENU) { ... }
else if (model->getPreviousSelectedMainMenuType() == Model::ANIMATING_BUTTONS_MENU)
{
static_cast<FrontendApplication*>(Application::getInstance())->gotoMainMenuAnimatingButtonsScreen();
}else if (model->getPreviousSelectedMainMenuType() == Model::ANIMATING_BUTTONS_MENU) { ... }
}{ ... }
void DemoPresenter::mcuLoadUpdated(uint8_t mcuLoad)
{
viewInterface.updateProcessorLoad(mcuLoad);
}{ ... }