-
Notifications
You must be signed in to change notification settings - Fork 1
/
fn_test_app_i.h
70 lines (59 loc) · 1.51 KB
/
fn_test_app_i.h
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#pragma once
#include "fn_test_app.h"
#include "scenes/fn_test_scene.h"
#include <fn_test_icons.h>
#include <furi.h>
#include <gui/gui.h>
#include <gui/view_dispatcher.h>
#include <gui/modules/submenu.h>
#include <gui/modules/dialog_ex.h>
#include <gui/modules/popup.h>
#include <notification/notification_messages.h>
#include <dialogs/dialogs.h>
#include <gui/modules/widget.h>
#include <gui/modules/text_input.h>
#include "views/fn_test_view_detect.h"
#include "views/fn_test_view_progress.h"
#include "lib/fn/fn_worker.h"
#include "lib/fn/fn_objects/fn_info/fn.h"
#include "lib/fn/errors/fn_errors.h"
#define TAG "FNTest"
typedef enum {
FNModeGetFNInfo,
FNModeGetFNLifeInfo,
FNModeGetLastDocInfo,
FNModeGetRegInfo,
FNModeGetSessionInfo,
FNModeTestSell,
FNModeCloseSession,
FNModeFlashMGM,
FNModeCloseFN,
FNModeUnknown
} FNAppMode;
struct FNApp {
Gui* gui;
ViewDispatcher* view_dispatcher;
SceneManager* scene_manager;
NotificationApp* notifications;
DialogsApp* dialogs;
DialogEx* dialog_ex;
Widget* widget;
Submenu* submenu;
Popup* popup;
FNError last_fn_error;
FNAppMode mode;
FNWorker* worker;
FNInfo* fn_info;
void* fn_tmp_data;
FNDetectView* view_detect;
FNProgressView* view_progress;
};
typedef enum {
FNTestViewSubmenu,
//FNTestViewDialogEx,
FNTestViewPopup,
FNTestViewWidget,
FNTestViewProgress,
FNTestViewDetect
} FNAppView;
//TODO bit_buffer в прошивке флиппера есть.