82 lines
2.8 KiB
C++
82 lines
2.8 KiB
C++
/*
|
|
* Copyright (c) CompanyNameMagicTag 2022-2022. All rights reserved.
|
|
* Description: temperature
|
|
* Author:
|
|
* Create: 2022-02-15
|
|
*/
|
|
|
|
#ifndef TEMP_MAIN_VIEW_H
|
|
#define TEMP_MAIN_VIEW_H
|
|
|
|
#include <string>
|
|
#include "View.h"
|
|
#include "components/ui_view_group.h"
|
|
#include "ChangeSliceListener.h"
|
|
#include "components/ui_swipe_view.h"
|
|
#include "TempPresenter.h"
|
|
#include "TempJoinStudy.h"
|
|
#include "TempMeasure.h"
|
|
#include "TempExitInter.h"
|
|
#include "TempPromptWear.h"
|
|
#include "TempClickMea.h"
|
|
#include "TempRemindWear.h"
|
|
#include "TempMeaProcess.h"
|
|
#include "TempInitInter.h"
|
|
#include "TempWarn.h"
|
|
#include "TempLittleTip.h"
|
|
#include "TempModel.h"
|
|
#include "TempStudyAbout.h"
|
|
#include "TempExitPrompt.h"
|
|
#include "TempContinueWarn.h"
|
|
#include "TempReport.h"
|
|
|
|
namespace OHOS {
|
|
class TempMainView;
|
|
class TempMainView : public View<TempPresenter> {
|
|
public:
|
|
TempMainView();
|
|
~TempMainView() override;
|
|
static TempMainView *GetInstance(void);
|
|
void OnStart() override;
|
|
void ChangeView(int16 hideView, int16 showView);
|
|
void DropView(UIView& view);
|
|
int16 GetListenInter(void);
|
|
int16 GetWhichInter(void);
|
|
bool ChangeMeasure(int16 thisView);
|
|
bool ChangePrompt(int16 thisView);
|
|
bool ChangeClickMea(int16 thisView);
|
|
bool ChangeRemindWear(int16 thisView);
|
|
bool ChangeMeaProcess(int16 thisView);
|
|
bool ChangeTempInit(int16 thisView);
|
|
bool ChangeTempWarn(int16 thisView);
|
|
bool ChangeContinue(int16 thisView);
|
|
bool ChangeTempTip(int16 thisView);
|
|
bool ChangeStudyAbout(int16 thisView);
|
|
bool ChangeExitPrompt(int16 thisView);
|
|
bool ClickFunc(int16 interf);
|
|
private:
|
|
bool SetSwipeInter(int16 num);
|
|
void DeleteViceInter(void);
|
|
UIViewGroup *group{nullptr};
|
|
UIViewGroup *container[11]{nullptr}; // 一共有11个界面
|
|
UISwipeView *tempSwipeList[2]{nullptr}; // 下拉拖动的界面一共有2个
|
|
TempJoinStudy *tempJoinStudy{nullptr};
|
|
TempMeasure *tempMeasure{nullptr};
|
|
TempExitInter *tempExitInter{nullptr};
|
|
TempPromptWear *tempPromptWear{nullptr};
|
|
TempClickMea *tempClickMea{nullptr};
|
|
TempRemindWear *tempRemindWear{nullptr};
|
|
TempMeaProcess *tempMeaProcess{nullptr};
|
|
TempInitInter *tempInitInter{nullptr};
|
|
TempWarn *tempWarn{nullptr};
|
|
TempLittleTip *tempLittleTip{nullptr};
|
|
TempContinueWarn *tempContinue{nullptr};
|
|
TempExitPrompt *tempExitPrompt{nullptr};
|
|
TempStudyAbout *tempStudyAbout{nullptr};
|
|
TempReport *tempReport{nullptr};
|
|
int16 interListen{-1}; // 监测上一个界面,-1用于还没获得监测界面时的初始化
|
|
int16 tempWhichInter{0}; // 监测当前是哪一个温度界面
|
|
int16 tempWhichMea{-1}; // 监测当前处于哪一个监测界面
|
|
};
|
|
} // namespace OHOS
|
|
#endif // MAIN_ALARM_VIEW_Ha
|