[apps] Dismiss the Exam mode before connecting the calculator.

Change-Id: If9754841aaa17c677a451387c8c7ec43926890da
This commit is contained in:
Léa Saviot
2018-04-10 11:30:15 +02:00
parent b7fd109f93
commit f0532b7f97
5 changed files with 47 additions and 19 deletions

View File

@@ -2,15 +2,19 @@
#define APPS_EXAM_POP_UP_CONTROLLER_H
#include <escher.h>
#include "exam_pop_up_controller_delegate.h"
class ExamPopUpController : public ViewController {
public:
ExamPopUpController();
ExamPopUpController(ExamPopUpControllerDelegate * delegate);
void setActivatingExamMode(bool activingExamMode);
bool isActivatingExamMode() const { return m_isActivatingExamMode; }
// View Controller
View * view() override;
void viewDidDisappear() override;
// Responder
void didBecomeFirstResponder() override;
bool handleEvent(Ion::Events::Event event) override;
void setActivatingExamMode(bool activingExamMode);
bool isActivatingExamMode();
private:
class ContentView : public View {
public:
@@ -36,6 +40,7 @@ private:
};
ContentView m_contentView;
bool m_isActivatingExamMode;
ExamPopUpControllerDelegate * m_delegate;
};
#endif