35 lines
1020 B
C++
35 lines
1020 B
C++
#ifndef TJDUIAPP_HR_MODEL_H
|
|
#define TJDUIAPP_HR_MODEL_H
|
|
|
|
#include "TjdUiAppHrPresenter.h"
|
|
|
|
namespace TJD{
|
|
class TjdUiAppHrModel {
|
|
public:
|
|
TjdUiAppHrModel() {}
|
|
~TjdUiAppHrModel() {}
|
|
static TjdUiAppHrModel &GetInstance(void);
|
|
|
|
void HrPointArrayInit(void);
|
|
void InitWeekHrViewInfo(void);
|
|
void UpdateWearStatus(void);
|
|
void UpdateHrCurValue(void);
|
|
uint8_t HeartRateControlHandler(HeartRateAction action, void *param);
|
|
|
|
OHOS::Point *GetHrArray(void) { return array; }
|
|
uint8_t *GetWeekHrViewHigh() { return WeekHrViewHigh; }
|
|
uint8_t *GetWeekHrViewLow() { return WeekHrViewLow; }
|
|
uint8_t GetWearStatus(void) { return wearStatus; }
|
|
uint8_t GetHrCurValue(void) { return hrCurValue; }
|
|
|
|
void CloseAutoScreenOff(void);
|
|
void OpenAutoScreenOff(void);
|
|
private:
|
|
OHOS::Point array[288];
|
|
uint8_t WeekHrViewHigh[7]{0};
|
|
uint8_t WeekHrViewLow[7]{0};
|
|
uint8_t wearStatus{0};
|
|
uint8_t hrCurValue{0};
|
|
};
|
|
} // namespace TJD
|
|
#endif |