mcu_hi3321_watch/tjd/ui/watch_face/custom/TjdUiWFCustomParse.h
2025-05-26 20:15:20 +08:00

42 lines
1.1 KiB
C++

/*----------------------------------------------------------------------------
* 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 <string>
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