34 lines
810 B
C++
34 lines
810 B
C++
/*
|
|
* Copyright (c) CompanyNameMagicTag 2022-2022. All rights reserved.
|
|
* Description: temperature
|
|
* Author:
|
|
* Create: 2022-02-15
|
|
*/
|
|
|
|
#ifndef TEMP_WARN_H
|
|
#define TEMP_WARN_H
|
|
|
|
#include "components/ui_image_view.h"
|
|
#include "components/ui_label.h"
|
|
#include "components/ui_label_button.h"
|
|
#include "components/ui_scroll_view.h"
|
|
#include "TempPresenter.h"
|
|
|
|
namespace OHOS {
|
|
class TempWarn : public UIScrollView {
|
|
public:
|
|
TempWarn();
|
|
~TempWarn() override;
|
|
bool InitTempWarn();
|
|
static TempWarn *GetInstance();
|
|
void RefreshTempWarn(void);
|
|
private:
|
|
bool TempInitImage(void);
|
|
bool TempInitButton(void);
|
|
bool TempInitLabel(void);
|
|
UIImageView *tempImage{nullptr};
|
|
UILabelButton *tempButton{nullptr};
|
|
UILabel *tempLabel{nullptr};
|
|
};
|
|
}
|
|
#endif |