mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-24 03:33:08 +00:00
40 lines
822 B
C
40 lines
822 B
C
|
#pragma once
|
||
|
#include <furi.h>
|
||
|
#include <api-hal.h>
|
||
|
|
||
|
#include <generic-scene.hpp>
|
||
|
#include <scene-controller.hpp>
|
||
|
#include <view-controller.hpp>
|
||
|
|
||
|
#include <view-modules/submenu-vm.h>
|
||
|
#include "view-modules/lfrfid-view-tune-vm.h"
|
||
|
|
||
|
class LfRfidDebugApp {
|
||
|
public:
|
||
|
enum class EventType : uint8_t {
|
||
|
GENERIC_EVENT_ENUM_VALUES,
|
||
|
MenuSelected,
|
||
|
};
|
||
|
|
||
|
enum class SceneType : uint8_t {
|
||
|
GENERIC_SCENE_ENUM_VALUES,
|
||
|
TuneScene,
|
||
|
};
|
||
|
|
||
|
class Event {
|
||
|
public:
|
||
|
union {
|
||
|
int32_t menu_index;
|
||
|
} payload;
|
||
|
|
||
|
EventType type;
|
||
|
};
|
||
|
|
||
|
SceneController<GenericScene<LfRfidDebugApp>, LfRfidDebugApp> scene_controller;
|
||
|
ViewController<LfRfidDebugApp, SubmenuVM, LfRfidViewTuneVM> view_controller;
|
||
|
|
||
|
~LfRfidDebugApp();
|
||
|
LfRfidDebugApp();
|
||
|
|
||
|
void run();
|
||
|
};
|