mcu_hi3321_watch/tjd/ui/app/stress/TjdUiAppStressModel.h
2025-05-26 20:15:20 +08:00

43 lines
1016 B
C++

#ifndef TJDUI_APP_STRESS_MODEL_H
#define TJDUI_APP_STRESS_MODEL_H
#include "cstdint"
#include "list.h"
#include <string>
#include "View.h"
#include "components/ui_label.h"
#include "components/ui_list.h"
#include "components/ui_scroll_view.h"
#include "components/ui_image_view.h"
#include "ui_swipe_view.h"
#include "components/ui_slider.h"
#include "components/ui_chart.h"
#include "sql_fit.h"
#include "TjdUiAppStressPresenter.h"
namespace TJD {
class TjdUiAppStressModel
{
public:
TjdUiAppStressModel(){};
virtual ~TjdUiAppStressModel(){};
static TjdUiAppStressModel *GetInstance(void)
{
static TjdUiAppStressModel instance;
return &instance;
}
OHOS::UIChartPolyline* uiChart1_ = nullptr;
void StressPointArrayInit(void);
OHOS::Point *GetStressPointArray(void) ;
stressPercentage_t GetStressPercentage(void);
uint32_t GetCurTimeIndex(void);
private:
OHOS::Point *stressPointArray{nullptr};
OHOS::Point array[24] ;
};
} // namespace TJD
#endif