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

37 lines
1.2 KiB
C++

/*----------------------------------------------------------------------------
* Copyright (c) TJD Technologies Co., Ltd. 2024. All rights reserved.
*
* Description:
*
* Author: wuchangxin
*
* Create: 2025-03-11
*--------------------------------------------------------------------------*/
#ifndef TJD_UI_APP_FIND_DEVICE_PRESENTER_H
#define TJD_UI_APP_FIND_DEVICE_PRESENTER_H
#include "TjdUiScreenDrag.h"
#include "components/root_view.h"
namespace TJD {
class TjdUiAppFindDevicePresenter :
public OHOS::UIView::OnClickListener,
public OHOS::RootView::OnKeyActListener,
public TjdUiScreenDragListener
{
public:
TjdUiAppFindDevicePresenter();
virtual ~TjdUiAppFindDevicePresenter();
static TjdUiAppFindDevicePresenter *GetInstance(void);
void ViewExitEvent(OHOS::UIView &view);
bool OnClick(OHOS::UIView &view, const OHOS::ClickEvent &event);
void ScreenDragEventCallback(OHOS::UIView &view, const OHOS::DragEvent &event) override { ViewExitEvent(view); }
bool OnKeyAct(OHOS::UIView &view, const OHOS::KeyEvent &event) override;
private:
};
} // namespace TJD
#endif