-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeyhold.h
90 lines (85 loc) · 2.58 KB
/
keyhold.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#pragma once
#include <furi.h>
#include <gui/gui.h>
#include <storage/storage.h>
#include <gui/view_dispatcher.h>
#include <gui/scene_manager.h>
#include <gui/modules/widget.h>
#include <gui/modules/submenu.h>
#include <gui/modules/text_input.h>
#include <gui/modules/file_browser.h>
#include <gui/modules/popup.h>
#include <gui/modules/variable_item_list.h>
#include "scenes/main_menu_scene.h"
#include "scenes/loaded_identity_scene.h"
#include "scenes/namer_scene.h"
#include "scenes/export_screen.h"
#include "scenes/config_scene.h"
#include "scenes/encryption_message.h"
#include "scenes/encryption_config_scene.h"
#include "scenes/decryption_file_scene.h"
#include "scenes/file_saver_scene.h"
#include "scenes/arb_popup.h" // moves all these scene things to keyhold.c
#include "scenes/decryption_config_scene.h"
#include "scenes/bluetooth_setauthdevice_scene.h"
#include "scenes/bluetooth_authentication_scene.h"
#include "keyer.h"
#include "saves.h"
#include <dialogs/dialogs.h>
#include <lib/subghz/subghz_tx_rx_worker.h>
#include "exporter.h"
typedef enum {
KeyholdSceneMainMenu,
KeyholdSceneNamer,
KeyholdSceneLoadedIdentity,
KeyholdSceneExportScreen,
KeyholdSceneConfig,
KeyholdSceneEncryptionMessage,
KeyholdSceneEncryptionConfig,
KeyholdSceneDecryptionFile,
KeyholdSceneFileSaver,
KeyholdSceneArbPopup,
KeyholdSceneDecryptionConfig,
KeyholdSceneBluetoothSetAuthDevice,
KeyholdSceneBluetoothAuthentication,
KeyholdSceneCount,
} KeyholdScene;
typedef enum {
KeyholdViewSubmenu,
KeyholdViewFileBrowser,
KeyholdViewTextInput,
KeyholdViewPopup,
KeyholdViewWidget,
KeyholdViewVariableItemList,
} KeyholdView;
typedef struct SelectorNames {
uint8_t name1;
uint8_t name2;
} SelectorNames;
typedef struct App {
SceneManager* scene_manager;
ViewDispatcher* vp;
Submenu* view_submenu;
FileBrowser* view_filebrowser;
TextInput* view_textinput;
Popup* view_popup;
Widget* view_widget;
VariableItemList* view_variableitemlist;
Storage* storage;
char all_purpose_string[255];
// KeyholdScene return_scene_buffer;
Identity loaded_identity;
bool epho_anon_mode;
uint8_t* export_data;
size_t export_size;
ExporterMessageType export_type;
Saves* saves;
EncryptorConfig* encryptor_config;
SelectorNames selector_names;
FuriString* popup_text;
FuriString* file_browser_path;
DialogsApp* dialogs;
// Export export used to represent any buffer that needs to be exported as file or nfc or watever
SubGhzTxRxWorker* subghz_txrx;
uint8_t** encrypted_keys;
} App;