2022-01-02 22:52:45 +00:00
|
|
|
#include <furi.h>
|
|
|
|
#include <power/power_service/power.h>
|
|
|
|
#include <gui/gui.h>
|
|
|
|
#include <gui/view.h>
|
|
|
|
#include <gui/view_dispatcher.h>
|
|
|
|
#include <notification/notification.h>
|
|
|
|
|
|
|
|
#include <gui/modules/dialog_ex.h>
|
2022-09-14 16:11:38 +00:00
|
|
|
// FIXME
|
|
|
|
#include "../settings/power_settings_app/views/battery_info.h"
|
2022-01-02 22:52:45 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
Power* power;
|
|
|
|
Gui* gui;
|
|
|
|
NotificationApp* notifications;
|
|
|
|
ViewDispatcher* view_dispatcher;
|
2022-09-14 16:11:38 +00:00
|
|
|
BatteryInfo* battery_info;
|
2022-01-02 22:52:45 +00:00
|
|
|
DialogEx* dialog;
|
|
|
|
PowerInfo info;
|
|
|
|
} BatteryTestApp;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
BatteryTestAppViewBatteryInfo,
|
|
|
|
BatteryTestAppViewExitDialog,
|
|
|
|
} BatteryTestAppView;
|