41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved.
|
|
* Description: bloodOxygen view
|
|
* Author:
|
|
* Create: 2021-08-01
|
|
*/
|
|
|
|
#ifndef BLOOD_OXYGEN_PRESENTER_H
|
|
#define BLOOD_OXYGEN_PRESENTER_H
|
|
|
|
#include "Presenter.h"
|
|
#include "ModelListenerSample.h"
|
|
#include "components/ui_circle_progress.h"
|
|
#include "ohos_types.h"
|
|
|
|
namespace OHOS {
|
|
class BloodOxygenView;
|
|
class BloodOxygenPresenter : public Presenter<BloodOxygenView>,
|
|
public UIView::OnClickListener,
|
|
public ModelListenerSample,
|
|
public UIView::OnDragListener {
|
|
public:
|
|
BloodOxygenPresenter();
|
|
~BloodOxygenPresenter() override;
|
|
void OnStart() override;
|
|
void OnStop() override;
|
|
void Notify() override;
|
|
static BloodOxygenPresenter *GetInstance(void);
|
|
bool OnDrag(UIView& view, const DragEvent& event) override;
|
|
bool OnClick(UIView& view, const ClickEvent& event) override;
|
|
|
|
private:
|
|
bool CheckPointersValue(void);
|
|
void ReturnInterface(void);
|
|
void ProgressNotify(void);
|
|
int count;
|
|
};
|
|
}
|
|
|
|
#endif
|