aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/Tasks.h
blob: e9a49db4c4227aaab82ea68cdc82dff1dcc245fe (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
#pragma once
#include <FreeRTOS.h>
#include <task.h>
#include <cstdint>
#include <lvgl/lvgl.h>
#include <timers.h>
#include "Screen.h"

namespace Pinetime {

  namespace Applications {
    namespace Screens {

      class Tasks : public Screen{
        public:
          Tasks(DisplayApp* app);
          ~Tasks() override;

          bool Refresh() override;
          void UpdateScreen();
         
        private:
          mutable TaskStatus_t tasksStatus[7];

          lv_task_t* taskUpdate;
          lv_obj_t * table;

      };
    }
  }
}