35 lines
1.1 KiB
C++
35 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include "Screen.h"
|
|
#include "ScreenList.h"
|
|
#include "components/datetime/DateTimeController.h"
|
|
#include "components/settings/Settings.h"
|
|
#include "components/battery/BatteryController.h"
|
|
|
|
namespace Pinetime {
|
|
namespace Applications {
|
|
namespace Screens {
|
|
class ApplicationList : public Screen {
|
|
public:
|
|
explicit ApplicationList(DisplayApp* app,
|
|
Pinetime::Controllers::Settings& settingsController,
|
|
Pinetime::Controllers::Battery& batteryController,
|
|
Controllers::DateTime& dateTimeController);
|
|
~ApplicationList() override;
|
|
bool OnTouchEvent(TouchEvents event) override;
|
|
|
|
private:
|
|
Controllers::Settings& settingsController;
|
|
Pinetime::Controllers::Battery& batteryController;
|
|
Controllers::DateTime& dateTimeController;
|
|
|
|
ScreenList<2> screens;
|
|
std::unique_ptr<Screen> CreateScreen1();
|
|
std::unique_ptr<Screen> CreateScreen2();
|
|
// std::unique_ptr<Screen> CreateScreen3();
|
|
};
|
|
}
|
|
}
|
|
}
|