-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbc_scanner_app_i.h
44 lines (37 loc) · 1.04 KB
/
bc_scanner_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
#pragma once
#include "bc_scanner_app.h"
#include "scenes/bc_scanner_scene.h"
#include <gui/gui.h>
#include <gui/icon_i.h>
#include <bc_scanner_icons.h>
#include <gui/view_dispatcher.h>
#include <gui/scene_manager.h>
#include <gui/modules/submenu.h>
#include <dialogs/dialogs.h>
#include <notification/notification_messages.h>
#include <gui/modules/variable_item_list.h>
#include <gui/modules/widget.h>
#include "views/bc_scanner_view.h"
#define RECORD_STORAGE "storage"
#define BC_SCANNER_APP_PATH_FOLDER ANY_PATH("bcscanner")
#define BC_SCANNER_APP_EXTENSION ".bc"
typedef enum {
BarCodeAppErrorNoFiles,
BarCodeAppErrorCloseRpc,
} BarCodeAppError;
struct BarCodeApp {
Gui* gui;
ViewDispatcher* view_dispatcher;
SceneManager* scene_manager;
NotificationApp* notifications;
DialogsApp* dialogs;
Widget* widget;
BarCodeAppError error;
FuriString* file_path;
BarCodeView* bc_scanner_view;
BarCodeScript* bc_scanner_script;
};
typedef enum {
BarCodeAppViewError,
BarCodeAppViewWork,
} BarCodeAppView;