/*---------------------------------------------------------------------------- * Copyright (c) TJD Technologies Co., Ltd. 2024. All rights reserved. * * Description: TjdUiWFCustomParse.h * * Author: huangshuyi * * Create: 2024-8 *--------------------------------------------------------------------------*/ #ifndef TJDUI_WF_CUSTOM_PARSE_H #define TJDUI_WF_CUSTOM_PARSE_H #include "TjdUiWFCustomVideoPage.h" #include "components/ui_view.h" #include namespace TJD { class TjdUiWFCustomParse : public OHOS::HeapBase { public: TjdUiWFCustomParse(); virtual ~TjdUiWFCustomParse(); bool ParseOnlineWfData(OHOS::UIView *parent); void Unload(void); TjdUiWFCustomVideoPage *GetVideoPage(void) const { return VideoPage; } private: TjdUiWFCustomVideoPage *VideoPage{nullptr}; int FindOnlineWfConfigFile(std::string &jsonContext); int CreateView(std::string &jsonContext, OHOS::UIView *parent); // OHOS::UIImageView *backGround{nullptr}; std::string VideoPreviewPath; std::string VideoPath; std::string SingleImgPath; std::string MultipleImgPath; }; } // namespace OHOS #endif // MAIN_CLOCK_VIEW_H