30 lines
690 B
C++
30 lines
690 B
C++
#ifndef TJDUI_OPENLOGO_PRESENTER
|
|
#define TJDUI_OPENLOGO_PRESENTER
|
|
|
|
#include "Presenter.h"
|
|
#include "components/root_view.h"
|
|
#include "ui_image_animator.h"
|
|
#include "ui_view.h"
|
|
|
|
#define IMAGE_NUM 9
|
|
|
|
namespace TJD {
|
|
|
|
class TjdUiOpenLogoView;
|
|
class TjdUiOpenLogoPresenter : public OHOS::Presenter<TjdUiOpenLogoView>
|
|
{
|
|
public:
|
|
TjdUiOpenLogoPresenter();
|
|
~TjdUiOpenLogoPresenter();
|
|
static TjdUiOpenLogoPresenter *GetInstance();
|
|
void OnStart() override {}
|
|
void OnStop() override {}
|
|
|
|
OHOS::ImageAnimatorInfo *GetAnimatorInfo() { return imgInfo_; }
|
|
|
|
private:
|
|
OHOS::ImageAnimatorInfo imgInfo_[IMAGE_NUM]{nullptr};
|
|
};
|
|
} // namespace TJD
|
|
|
|
#endif |