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

30 lines
932 B
C++

#ifndef TJD_UI_APP_LOW_POWER_PRESENTER_H
#define TJD_UI_APP_LOW_POWER_PRESENTER_H
#include "Presenter.h"
#include "TjdUiScreenDrag.h"
#include "cmsis_os2.h"
#include "components/tjd_ui_enter_view.h"
#include "components/ui_view.h"
namespace TJD {
class TjdUiAppLowPowerView;
class TjdUiAppLowPowerPresenter : public TjdUiScreenDragListener,
public OHOS::RootView::OnKeyActListener,
public TjdUIEnterViewBase::EnterViewOnClickListener
{
public:
TjdUiAppLowPowerPresenter();
virtual ~TjdUiAppLowPowerPresenter();
void EnterViewOnClick(OHOS::UIView &view, EnterViewButtonType type) override;
void ScreenDragEventCallback(OHOS::UIView &view, const OHOS::DragEvent &event) override { ViewExitEvent(); }
bool OnKeyAct(OHOS::UIView &view, const OHOS::KeyEvent &event) override;
void ViewExitEvent(void);
private:
};
} // namespace TJD
#endif