blob: df656ba2e0f19885c9a290550961ca6a0896109e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#ifndef __MODESINGLE_H__
#define __MODESINGLE_H__
#include "Mode.h"
#include "LayoutHelp.h"
#include "LayoutFile.h"
#include "LayoutConfirm.h"
#include "LayoutSurveyProgress.h"
#include "LayoutSurveySuccess.h"
#include "LayoutSurveyFailure.h"
class ModeSingle : public Mode {
public:
ModeSingle(DOGS102* lcd, ButtonHandler* buttons, mDot* dot, LoRaHandler* lora);
~ModeSingle();
bool start();
private:
void displayHelp();
void displaySuccess();
std::string formatNewRatePower();
void incrementRatePower();
typedef enum {
check_file = 0,
confirm,
show_help,
in_progress,
success,
data,
failure
} state;
LayoutHelp _help;
LayoutFile _file;
LayoutConfirm _confirm;
LayoutSurveyProgress _progress;
LayoutSurveySuccess _success;
LayoutSurveyFailure _failure;
DataItem _data;
};
#endif
|