42 lines
1.0 KiB
C++
42 lines
1.0 KiB
C++
#ifndef TJDUI_APP_VIDEOCTRL_PRESENTER_H
|
|
#define TJDUI_APP_VIDEOCTRL_PRESENTER_H
|
|
|
|
#include "Presenter.h"
|
|
#include "TjdUiScreenDrag.h"
|
|
#include "components/ui_view.h"
|
|
#include "root_view.h"
|
|
|
|
enum VideoCtrlView
|
|
{
|
|
VIDEOCTRL_LINKVIEW,
|
|
VIDEOCTRL_CTRLVIEW,
|
|
VIDEOCTRL_MAXTHVIEW
|
|
};
|
|
|
|
namespace TJD {
|
|
|
|
class TjdUiAppVideoCtrlView;
|
|
class TjdUiAppVideoCtrlModel;
|
|
class TjdUiAppVideoCtrlPresenter : public OHOS::Presenter<TjdUiAppVideoCtrlView>,
|
|
public TjdUiScreenDragListener,
|
|
public OHOS::RootView::OnKeyActListener
|
|
{
|
|
public:
|
|
TjdUiAppVideoCtrlPresenter();
|
|
virtual ~TjdUiAppVideoCtrlPresenter();
|
|
static TjdUiAppVideoCtrlPresenter *GetInstance(void);
|
|
void OnStart() override;
|
|
void OnStop() override;
|
|
bool OnKeyAct(OHOS::UIView &view, const OHOS::KeyEvent &event) override;
|
|
void ExitVideoCtrlView(void);
|
|
|
|
private:
|
|
bool isExit_{false};
|
|
int16_t dragStartX_{0};
|
|
int16_t dragCurrentX_{0};
|
|
int32_t dragDistance_{0};
|
|
};
|
|
|
|
} // namespace TJD
|
|
|
|
#endif |