InfiniTime.git

ref: 9196c18d376d4f18c686bcfec8550f9c8659d5ea

src/displayapp/screens/settings/SettingSetDateTime.h


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once

#include <cstdint>
#include <lvgl/lvgl.h>
#include "displayapp/screens/Screen.h"
#include "displayapp/screens/ScreenList.h"

namespace Pinetime {
  namespace Applications {
    namespace Screens {
      class SettingSetDateTime : public Screen {
      public:
        SettingSetDateTime(DisplayApp* app,
                           Pinetime::Controllers::DateTime& dateTimeController,
                           Pinetime::Controllers::Settings& settingsController);
        ~SettingSetDateTime() override;

        bool OnTouchEvent(TouchEvents event) override;
        void Advance();
        void Quit();

      private:
        DisplayApp* app;
        Controllers::DateTime& dateTimeController;
        Controllers::Settings& settingsController;

        ScreenList<2> screens;
        std::unique_ptr<Screen> screenSetDate();
        std::unique_ptr<Screen> screenSetTime();
      };
    }
  }
}