summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Notifications.h
blob: b4d0beda6a686623a041175e36f674333d59c8ab (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
34
35
36
#pragma once

#include <cstdint>
#include "Screen.h"
#include <bits/unique_ptr.h>
#include "Modal.h"
#include <lvgl/src/lv_core/lv_style.h>
#include <displayapp/Apps.h>

namespace Pinetime {
  namespace Applications {
    namespace Screens {
      class Notifications : public Screen {
        public:
          explicit Notifications(DisplayApp* app);
          ~Notifications() override;

          bool Refresh() override;
          bool OnButtonPushed() override;
          void OnObjectEvent(lv_obj_t* obj, lv_event_t event, uint32_t buttonId);
          bool OnTouchEvent(Pinetime::Applications::TouchEvents event) override;

        private:
          class ListWidget {
            public:
              ListWidget();
            private:
              lv_obj_t* page = nullptr;
          };

          bool running = true;
          ListWidget list;
      };
    }
  }
}