34 lines
836 B
C++
34 lines
836 B
C++
/*
|
|
* Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved.
|
|
* Description: SettingPresenter.h
|
|
* Author:
|
|
* Create: 2021-11-23
|
|
*/
|
|
|
|
#ifndef SETTING_PRESENTER_H
|
|
#define SETTING_PRESENTER_H
|
|
|
|
#include "Presenter.h"
|
|
#include "components/ui_view.h"
|
|
#include "SettingAdapter.h"
|
|
|
|
namespace OHOS {
|
|
class SettingView;
|
|
class SettingModel;
|
|
class SettingAdapter;
|
|
class SettingPresenter : public Presenter<SettingView>,
|
|
public UIView::OnClickListener,
|
|
public UIView::OnDragListener {
|
|
public:
|
|
SettingPresenter();
|
|
~SettingPresenter() override;
|
|
|
|
void OnStart() override;
|
|
bool OnClick(UIView &view, const ClickEvent &event) override;
|
|
bool OnDrag(UIView& view, const DragEvent& event) override;
|
|
private:
|
|
SettingModel *settingModel;
|
|
};
|
|
}
|
|
|
|
#endif // SETTING_PRESENTER_H
|