summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/settings/SettingSetTime.h
blob: 8ba41eae4532862134953a9478370f414752db07 (plain)
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 "components/datetime/DateTimeController.h"
#include "displayapp/screens/Screen.h"

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

          void HandleButtonPress(lv_obj_t *object, lv_event_t event);
         
        private:
          Controllers::DateTime& dateTimeController;

          int hoursValue;
          int minutesValue;
          lv_obj_t * lblHours;
          lv_obj_t * lblMinutes;
          lv_obj_t * btnHoursPlus;
          lv_obj_t * btnHoursMinus;
          lv_obj_t * btnMinutesPlus;
          lv_obj_t * btnMinutesMinus;
          lv_obj_t * btnSetTime;
      };
    }
  }
}