2020-08-14 07:46:37 +00:00
|
|
|
#pragma once
|
|
|
|
|
2020-11-15 15:49:36 +00:00
|
|
|
#include <memory>
|
2020-10-02 19:16:48 +00:00
|
|
|
|
2021-10-13 20:08:35 +00:00
|
|
|
#include "displayapp/screens/Screen.h"
|
|
|
|
#include "displayapp/screens/ScreenList.h"
|
2021-04-04 02:08:51 +00:00
|
|
|
#include "components/datetime/DateTimeController.h"
|
|
|
|
#include "components/settings/Settings.h"
|
|
|
|
#include "components/battery/BatteryController.h"
|
2020-08-14 07:46:37 +00:00
|
|
|
|
|
|
|
namespace Pinetime {
|
|
|
|
namespace Applications {
|
|
|
|
namespace Screens {
|
|
|
|
class ApplicationList : public Screen {
|
2021-04-24 09:00:45 +00:00
|
|
|
public:
|
2021-04-18 17:28:14 +00:00
|
|
|
explicit ApplicationList(DisplayApp* app,
|
|
|
|
Pinetime::Controllers::Settings& settingsController,
|
|
|
|
Pinetime::Controllers::Battery& batteryController,
|
|
|
|
Controllers::DateTime& dateTimeController);
|
|
|
|
~ApplicationList() override;
|
|
|
|
bool OnTouchEvent(TouchEvents event) override;
|
2021-02-24 19:40:24 +00:00
|
|
|
|
2021-04-24 09:00:45 +00:00
|
|
|
private:
|
2021-04-18 17:28:14 +00:00
|
|
|
Controllers::Settings& settingsController;
|
|
|
|
Pinetime::Controllers::Battery& batteryController;
|
|
|
|
Controllers::DateTime& dateTimeController;
|
2020-08-14 07:46:37 +00:00
|
|
|
|
2021-04-18 17:28:14 +00:00
|
|
|
ScreenList<2> screens;
|
|
|
|
std::unique_ptr<Screen> CreateScreen1();
|
|
|
|
std::unique_ptr<Screen> CreateScreen2();
|
|
|
|
// std::unique_ptr<Screen> CreateScreen3();
|
2020-08-14 07:46:37 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2021-07-19 13:26:12 +00:00
|
|
|
}
|