mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-21 02:03:18 +00:00
389ff92cc1
* Makefile, Scripts: new linter * About: remove ID from IC * Firmware: remove double define for DIVC/DIVR * Scripts: check folder names too. Docker: replace syntax check with make lint. * Reformat Sources and Migrate to new file naming convention * Docker: symlink clang-format-12 to clang-format * Add coding style guide
40 lines
824 B
C++
40 lines
824 B
C++
#pragma once
|
|
#include <furi.h>
|
|
#include <furi_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();
|
|
};
|