37 lines
1.2 KiB
C++
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 |