mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-25 03:29:58 -07:00
78 lines
2.1 KiB
C
78 lines
2.1 KiB
C
#pragma once
|
|
|
|
#include <furi.h>
|
|
#include <gui/gui.h>
|
|
#include <gui/view.h>
|
|
#include <gui/view_dispatcher.h>
|
|
#include <gui/scene_manager.h>
|
|
#include <dialogs/dialogs.h>
|
|
#include <assets_icons.h>
|
|
#include <gui/modules/variable_item_list.h>
|
|
#include <gui/modules/text_input.h>
|
|
#include <gui/modules/popup.h>
|
|
#include <lib/toolbox/value_index.h>
|
|
#include <toolbox/stream/file_stream.h>
|
|
#include <namechangersrv/namechangersrv.h>
|
|
#include "scenes/xtreme_app_scene.h"
|
|
#include "dolphin/helpers/dolphin_state.h"
|
|
#include "dolphin/dolphin.h"
|
|
#include "dolphin/dolphin_i.h"
|
|
#include <lib/flipper_format/flipper_format.h>
|
|
#include <lib/subghz/subghz_setting.h>
|
|
#include <applications/main/fap_loader/fap_loader_app.h>
|
|
#include <notification/notification_app.h>
|
|
#include <rgb_backlight/rgb_backlight.h>
|
|
#include <m-array.h>
|
|
#include "xtreme/settings.h"
|
|
#include "xtreme/assets.h"
|
|
|
|
#define XTREME_SUBGHZ_FREQ_BUFFER_SIZE 6
|
|
|
|
ARRAY_DEF(CharList, char*)
|
|
|
|
typedef struct {
|
|
Gui* gui;
|
|
DialogsApp* dialogs;
|
|
NotificationApp* notification;
|
|
SceneManager* scene_manager;
|
|
ViewDispatcher* view_dispatcher;
|
|
VariableItemList* var_item_list;
|
|
TextInput* text_input;
|
|
Popup* popup;
|
|
|
|
CharList_t asset_pack_names;
|
|
uint8_t asset_pack_index;
|
|
CharList_t mainmenu_app_names;
|
|
CharList_t mainmenu_app_paths;
|
|
uint8_t mainmenu_app_index;
|
|
bool subghz_use_defaults;
|
|
FrequencyList_t subghz_static_freqs;
|
|
uint8_t subghz_static_index;
|
|
FrequencyList_t subghz_hopper_freqs;
|
|
uint8_t subghz_hopper_index;
|
|
char subghz_freq_buffer[XTREME_SUBGHZ_FREQ_BUFFER_SIZE];
|
|
bool subghz_extend;
|
|
bool subghz_bypass;
|
|
char device_name[NAMECHANGER_TEXT_STORE_SIZE];
|
|
int32_t xp_level;
|
|
FuriString* version_tag;
|
|
|
|
bool save_mainmenu_apps;
|
|
bool save_subghz_frequencies;
|
|
bool save_subghz;
|
|
bool save_name;
|
|
bool save_level;
|
|
bool save_backlight;
|
|
bool save_settings;
|
|
bool show_slideshow;
|
|
bool require_reboot;
|
|
} XtremeApp;
|
|
|
|
typedef enum {
|
|
XtremeAppViewVarItemList,
|
|
XtremeAppViewTextInput,
|
|
XtremeAppViewPopup,
|
|
} XtremeAppView;
|
|
|
|
bool xtreme_app_apply(XtremeApp* app);
|