mcu_hi3321_watch/tjd/ui/app/message/TjdUiMessageCommon.h
2025-05-31 10:45:15 +08:00

42 lines
1.2 KiB
C++

/*----------------------------------------------------------------------------
* Copyright (c) TJD Technologies Co., Ltd. 2024. All rights reserved.
*
* Description:
*
* Author: huangshuyi
*
* Create: 2024-7
*--------------------------------------------------------------------------*/
#ifndef TJDUI_MESSAGE_COMMON_H
#define TJDUI_MESSAGE_COMMON_H
#include <string>
#include <time.h>
#include "View.h"
#include "sys_typedef.h"
#include "TjdUiScreenDrag.h"
namespace TJD {
struct TjdUiMessage {
const message_enum type;
const int imageId;
// const char *name;
const uint16_t nameId;
};
TjdUiMessage* TjdUiMessageResGet(message_enum type);
class TjdUiMessagePageCommon : public TjdUiScreenDragListener
{
public:
TjdUiMessagePageCommon(const TjdUiMessagePageCommon &) = delete;
TjdUiMessagePageCommon &operator=(const TjdUiMessagePageCommon &) = delete;
TjdUiMessagePageCommon() {}
virtual~TjdUiMessagePageCommon(){}
virtual void show(void) = 0;
virtual void hide(void) = 0;
virtual void DeleteMessage(uint8_t index) = 0;
void ScreenDragEventCallback(OHOS::UIView &view, const OHOS::DragEvent &event);
};
} // namespace OHOS
#endif