mcu_hi3321_watch/tjd/ui/app/message/TjdUiMessageNoMessagePage.h
2025-05-26 20:15:20 +08:00

61 lines
1.9 KiB
C++

/*----------------------------------------------------------------------------
* Copyright (c) TJD Technologies Co., Ltd. 2024. All rights reserved.
*
* Description:
*
* Author: huangshuyi
*
* Create: 2024-7
*--------------------------------------------------------------------------*/
#ifndef TJDUI_MESSAGE_NO_MESSAGE_PAGE_H
#define TJDUI_MESSAGE_NO_MESSAGE_PAGE_H
#include <string>
#include <time.h>
#include "components/ui_view_group.h"
#include "View.h"
#include "components/ui_label.h"
#include "components/root_view.h"
#include "components/ui_view_group.h"
#include "components/ui_image_view.h"
#include "components/ui_label_button.h"
#include "font/ui_font_bitmap.h"
#include "font/ui_font.h"
#include "graphic_config.h"
#include "animator/animator_manager.h"
#include "time.h"
#include "sys/time.h"
#include "components/abstract_adapter.h"
#include "NativeAbility.h"
#include "TjdUiMessageTotalPage.h"
#include "TjdUiScreenDrag.h"
namespace TJD {
class TjdUiMessageNoMessagePage : public TjdUiScreenDragListener {
//class TjdUiMessageNoMessagePage : public OHOS::UIViewGroup {
public:
TjdUiMessageNoMessagePage();
virtual ~TjdUiMessageNoMessagePage();
static TjdUiMessageNoMessagePage *GetInstance(void);
OHOS::UIViewGroup *& PageInit(OHOS::UIViewGroup *cont);
OHOS::UIViewGroup *pageGroup{nullptr};
void show(void);
void hide(void);
void ScreenDragEventCallback (OHOS::UIView &view, const OHOS::DragEvent &event) override
{
uint16_t slice = OHOS::NativeAbility::GetInstance().GetCurSliceId();
if (TJD_APP_VIEW_MAIN != slice) {
//OHOS::NativeAbility::GetInstance().ChangePreSlice(OHOS::TransitionType::TRANSITION_INVALID);
OHOS::NativeAbility::GetInstance().ChangeSlice(TjdUiMessageTotalPage::sliceId);
}
}
private:
// OHOS::GraphicTimer *exitTimer{nullptr};
OHOS::UIViewGroup *container_{nullptr};
};
} // namespace OHOS
#endif