mcu_hi3321_watch/tjd/ui/app/main/online_wf/TjdUiAppOnlineWfParse.h
2025-05-26 20:15:20 +08:00

50 lines
1.3 KiB
C++

/*----------------------------------------------------------------------------
* Copyright (c) TJD Technologies Co., Ltd. 2024. All rights reserved.
*
* Description:
*
* Author: huangshuyi
*
* Create: 2024-8
*--------------------------------------------------------------------------*/
#ifndef TJDUI_ONLINE_WF_PARSE_H
#define TJDUI_ONLINE_WF_PARSE_H
#include <string>
#include <time.h>
#include "components/ui_view.h"
#include "components/ui_image_view.h"
#include "sys/time.h"
#include <dirent.h>
#include "ohos_types.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include "cJSON.h"
#include "TjdUiAppOnlineWfVideoPage.h"
namespace TJD {
class TjdUiAppOnlineWfParse : public OHOS::HeapBase {
public:
TjdUiAppOnlineWfParse();
virtual ~TjdUiAppOnlineWfParse();
static TjdUiAppOnlineWfParse* GetInstance(void);
bool ParseOnlineWfData(OHOS::UIView* parent);
void Unload(void);
TjdUiAppOnlineWfVideoPage* VideoPage{nullptr};
void SetVideoBgVisible(bool visible);
private:
int FindOnlineWfConfigFile(std::string& jsonContext);
int CreateView(std::string& jsonContext, OHOS::UIView* parent);
//OHOS::UIImageView *backGround{nullptr};
std::string bgResPath;
OHOS::UIImageView *videoBg{nullptr};
};
} // namespace OHOS
#endif // MAIN_CLOCK_VIEW_H