2021-05-18 18:54:56 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "archive.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <furi.h>
|
|
|
|
#include <gui/gui_i.h>
|
|
|
|
#include <gui/view_dispatcher.h>
|
2021-09-10 00:57:43 +00:00
|
|
|
#include <gui/scene_manager.h>
|
2021-05-18 18:54:56 +00:00
|
|
|
#include <gui/modules/text_input.h>
|
2022-02-10 13:01:49 +00:00
|
|
|
#include <gui/modules/widget.h>
|
2021-07-18 18:09:00 +00:00
|
|
|
#include <loader/loader.h>
|
2021-05-18 18:54:56 +00:00
|
|
|
|
2021-09-21 10:56:33 +00:00
|
|
|
#include "views/archive_browser_view.h"
|
2021-09-10 00:57:43 +00:00
|
|
|
#include "scenes/archive_scene.h"
|
|
|
|
|
2021-05-18 18:54:56 +00:00
|
|
|
typedef enum {
|
2021-09-10 00:57:43 +00:00
|
|
|
ArchiveViewBrowser,
|
2021-05-18 18:54:56 +00:00
|
|
|
ArchiveViewTextInput,
|
2022-02-10 13:01:49 +00:00
|
|
|
ArchiveViewWidget,
|
2021-05-18 18:54:56 +00:00
|
|
|
ArchiveViewTotal,
|
|
|
|
} ArchiveViewEnum;
|
|
|
|
|
|
|
|
struct ArchiveApp {
|
|
|
|
Gui* gui;
|
|
|
|
ViewDispatcher* view_dispatcher;
|
2021-09-10 00:57:43 +00:00
|
|
|
SceneManager* scene_manager;
|
2021-09-21 10:56:33 +00:00
|
|
|
ArchiveBrowserView* browser;
|
2021-05-18 18:54:56 +00:00
|
|
|
TextInput* text_input;
|
2022-02-10 13:01:49 +00:00
|
|
|
Widget* widget;
|
2022-04-27 16:34:37 +00:00
|
|
|
FuriPubSubSubscription* loader_stop_subscription;
|
2022-10-05 15:15:23 +00:00
|
|
|
FuriString* fav_move_str;
|
2021-09-10 00:57:43 +00:00
|
|
|
char text_store[MAX_NAME_LEN];
|
2022-01-29 09:39:10 +00:00
|
|
|
char file_extension[MAX_EXT_LEN + 1];
|
2021-05-18 18:54:56 +00:00
|
|
|
};
|