29f0bce46b
The include `bits/unique_ptr.h` isn't used, so remove it.
41 lines
1020 B
C++
41 lines
1020 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <chrono>
|
|
#include "displayapp/screens/Screen.h"
|
|
#include "systemtask/SystemTask.h"
|
|
#include <lvgl/src/lv_core/lv_style.h>
|
|
#include <lvgl/src/lv_core/lv_obj.h>
|
|
|
|
namespace Pinetime {
|
|
namespace Controllers {
|
|
class HeartRateController;
|
|
}
|
|
namespace Applications {
|
|
namespace Screens {
|
|
|
|
class HeartRate : public Screen {
|
|
public:
|
|
HeartRate(DisplayApp* app, Controllers::HeartRateController& HeartRateController, System::SystemTask& systemTask);
|
|
~HeartRate() override;
|
|
|
|
void Refresh() override;
|
|
|
|
void OnStartStopEvent(lv_event_t event);
|
|
|
|
private:
|
|
Controllers::HeartRateController& heartRateController;
|
|
Pinetime::System::SystemTask& systemTask;
|
|
void UpdateStartStopButton(bool isRunning);
|
|
lv_obj_t* label_hr;
|
|
lv_obj_t* label_bpm;
|
|
lv_obj_t* label_status;
|
|
lv_obj_t* btn_startStop;
|
|
lv_obj_t* label_startStop;
|
|
|
|
lv_task_t* taskRefresh;
|
|
};
|
|
}
|
|
}
|
|
}
|