2021-06-15 11:01:56 +00:00
|
|
|
#pragma once
|
|
|
|
#include <furi.h>
|
2022-01-05 16:10:18 +00:00
|
|
|
#include <furi_hal.h>
|
2021-06-15 11:01:56 +00:00
|
|
|
|
2022-01-05 16:10:18 +00:00
|
|
|
#include <generic_scene.hpp>
|
|
|
|
#include <scene_controller.hpp>
|
|
|
|
#include <view_controller.hpp>
|
|
|
|
#include <record_controller.hpp>
|
|
|
|
#include <text_store.h>
|
2021-06-15 11:01:56 +00:00
|
|
|
|
2022-01-05 16:10:18 +00:00
|
|
|
#include <view_modules/submenu_vm.h>
|
|
|
|
#include <view_modules/byte_input_vm.h>
|
2021-06-15 11:01:56 +00:00
|
|
|
|
2022-01-05 16:10:18 +00:00
|
|
|
#include <notification/notification_messages.h>
|
2021-06-15 11:01:56 +00:00
|
|
|
|
|
|
|
class ScenedApp {
|
|
|
|
public:
|
|
|
|
enum class EventType : uint8_t {
|
|
|
|
GENERIC_EVENT_ENUM_VALUES,
|
|
|
|
MenuSelected,
|
|
|
|
ByteEditResult,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class SceneType : uint8_t {
|
|
|
|
GENERIC_SCENE_ENUM_VALUES,
|
|
|
|
ByteInputScene,
|
|
|
|
};
|
|
|
|
|
|
|
|
class Event {
|
|
|
|
public:
|
|
|
|
union {
|
|
|
|
int32_t menu_index;
|
|
|
|
} payload;
|
|
|
|
|
|
|
|
EventType type;
|
|
|
|
};
|
|
|
|
|
|
|
|
SceneController<GenericScene<ScenedApp>, ScenedApp> scene_controller;
|
|
|
|
TextStore text_store;
|
|
|
|
ViewController<ScenedApp, SubmenuVM, ByteInputVM> view_controller;
|
|
|
|
RecordController<NotificationApp> notification;
|
|
|
|
|
|
|
|
~ScenedApp();
|
|
|
|
ScenedApp();
|
|
|
|
|
|
|
|
void run();
|
2022-01-05 16:10:18 +00:00
|
|
|
};
|