2021-09-28 12:40:39 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <furi.h>
|
|
|
|
#include <gui/gui.h>
|
|
|
|
#include <gui/view.h>
|
|
|
|
#include <gui/view_dispatcher.h>
|
|
|
|
#include <gui/scene_manager.h>
|
|
|
|
#include <gui/modules/submenu.h>
|
2021-10-26 21:34:31 +03:00
|
|
|
#include <gui/modules/code_input.h>
|
2021-09-28 12:40:39 +03:00
|
|
|
|
|
|
|
#include "desktop_settings.h"
|
2021-10-26 21:34:31 +03:00
|
|
|
|
2021-09-28 12:40:39 +03:00
|
|
|
#include "scenes/desktop_settings_scene.h"
|
|
|
|
|
|
|
|
typedef enum {
|
2021-10-26 21:34:31 +03:00
|
|
|
CodeEventsSetPin,
|
|
|
|
CodeEventsChangePin,
|
|
|
|
CodeEventsDisablePin,
|
|
|
|
} CodeEventsEnum;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
DesktopSettingsAppViewMenu,
|
|
|
|
DesktopSettingsAppViewPincodeInput,
|
2021-09-28 12:40:39 +03:00
|
|
|
} DesktopSettingsAppView;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
DesktopSettings settings;
|
2021-10-26 21:34:31 +03:00
|
|
|
|
2021-09-28 12:40:39 +03:00
|
|
|
Gui* gui;
|
|
|
|
SceneManager* scene_manager;
|
|
|
|
ViewDispatcher* view_dispatcher;
|
|
|
|
Submenu* submenu;
|
2021-10-26 21:34:31 +03:00
|
|
|
CodeInput* code_input;
|
|
|
|
|
|
|
|
uint8_t menu_idx;
|
2021-09-28 12:40:39 +03:00
|
|
|
|
|
|
|
} DesktopSettingsApp;
|