2021-05-18 21:54:56 +03: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 03:57:43 +03:00
|
|
|
#include <gui/scene_manager.h>
|
2021-05-18 21:54:56 +03:00
|
|
|
#include <gui/modules/text_input.h>
|
2021-07-18 21:09:00 +03:00
|
|
|
#include <loader/loader.h>
|
2021-05-18 21:54:56 +03:00
|
|
|
|
2021-09-21 13:56:33 +03:00
|
|
|
#include "views/archive_browser_view.h"
|
2021-09-10 03:57:43 +03:00
|
|
|
#include "scenes/archive_scene.h"
|
|
|
|
|
2021-05-18 21:54:56 +03:00
|
|
|
typedef enum {
|
2021-09-10 03:57:43 +03:00
|
|
|
ArchiveViewBrowser,
|
2021-05-18 21:54:56 +03:00
|
|
|
ArchiveViewTextInput,
|
|
|
|
ArchiveViewTotal,
|
|
|
|
} ArchiveViewEnum;
|
|
|
|
|
|
|
|
struct ArchiveApp {
|
|
|
|
Gui* gui;
|
|
|
|
ViewDispatcher* view_dispatcher;
|
2021-09-10 03:57:43 +03:00
|
|
|
SceneManager* scene_manager;
|
2021-09-21 13:56:33 +03:00
|
|
|
ArchiveBrowserView* browser;
|
2021-05-18 21:54:56 +03:00
|
|
|
TextInput* text_input;
|
2021-09-10 03:57:43 +03:00
|
|
|
char text_store[MAX_NAME_LEN];
|
2021-05-18 21:54:56 +03:00
|
|
|
};
|