* 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
		
			
				
	
	
		
			48 lines
		
	
	
		
			996 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			996 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#pragma once
 | 
						|
#include <furi.h>
 | 
						|
#include <furi_hal.h>
 | 
						|
 | 
						|
#include <generic_scene.hpp>
 | 
						|
#include <scene_controller.hpp>
 | 
						|
#include <view_controller.hpp>
 | 
						|
#include <record_controller.hpp>
 | 
						|
#include <text_store.h>
 | 
						|
 | 
						|
#include <view_modules/submenu_vm.h>
 | 
						|
#include <view_modules/byte_input_vm.h>
 | 
						|
 | 
						|
#include <notification/notification_messages.h>
 | 
						|
 | 
						|
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();
 | 
						|
};
 |