2021-09-01 23:22:40 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <furi.h>
|
2022-01-21 17:32:03 +00:00
|
|
|
#include <bt/bt_service/bt.h>
|
2021-09-01 23:22:40 +00:00
|
|
|
#include <gui/gui.h>
|
|
|
|
#include <gui/view.h>
|
|
|
|
#include <gui/view_dispatcher.h>
|
|
|
|
#include <gui/scene_manager.h>
|
|
|
|
|
2022-01-05 16:10:18 +00:00
|
|
|
#include <gui/modules/variable_item_list.h>
|
2022-01-21 17:32:03 +00:00
|
|
|
#include <gui/modules/dialog_ex.h>
|
|
|
|
#include <gui/modules/popup.h>
|
2021-09-01 23:22:40 +00:00
|
|
|
|
|
|
|
#include "../bt_settings.h"
|
|
|
|
#include "scenes/bt_settings_scene.h"
|
|
|
|
|
2022-02-01 07:43:38 +00:00
|
|
|
enum BtSettingsCustomEvent {
|
|
|
|
// Keep first 10 events reserved for button types and indexes
|
|
|
|
BtSettingsCustomEventReserved = 10,
|
|
|
|
|
|
|
|
BtSettingsCustomEventForgetDevices,
|
|
|
|
BtSettingsCustomEventExitView,
|
|
|
|
};
|
|
|
|
|
2021-09-01 23:22:40 +00:00
|
|
|
typedef struct {
|
|
|
|
BtSettings settings;
|
2022-01-21 17:32:03 +00:00
|
|
|
Bt* bt;
|
2021-09-01 23:22:40 +00:00
|
|
|
Gui* gui;
|
|
|
|
SceneManager* scene_manager;
|
|
|
|
ViewDispatcher* view_dispatcher;
|
2022-01-21 17:32:03 +00:00
|
|
|
|
2021-09-15 16:58:32 +00:00
|
|
|
VariableItemList* var_item_list;
|
2022-01-21 17:32:03 +00:00
|
|
|
DialogEx* dialog;
|
|
|
|
Popup* popup;
|
2021-09-01 23:22:40 +00:00
|
|
|
} BtSettingsApp;
|
|
|
|
|
2022-01-21 17:32:03 +00:00
|
|
|
typedef enum {
|
|
|
|
BtSettingsAppViewVarItemList,
|
|
|
|
BtSettingsAppViewDialog,
|
|
|
|
BtSettingsAppViewPopup,
|
|
|
|
} BtSettingsAppView;
|