40 lines
1.2 KiB
C
40 lines
1.2 KiB
C
/*----------------------------------------------------------------------------
|
|
* Copyright (c) TJD Technologies Co., Ltd. 2024. All rights reserved.
|
|
*
|
|
* Description:
|
|
*
|
|
* Author: huangshuyi
|
|
*
|
|
* Create: 2024-8
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
#ifndef TJDUI_MSG_CENTER_H
|
|
#define TJDUI_MSG_CENTER_H
|
|
#include "service.h"
|
|
#include "iunknown.h"
|
|
#include "broadcast_feature.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef void (*TjdUiMsgCenterEventCallback)(const Topic topic);
|
|
void RegisterNotifyMsgCenterEventCallback(TjdUiMsgCenterEventCallback callback);
|
|
void UnRegisterNotifyMsgCenterEventCallback(void);
|
|
|
|
void TjdUiMsgCenterSubscribe(void);
|
|
bool TjdUiMsgCenterNotifyProc(const Topic topic, Request* req);
|
|
void TjdUiMsgEventPublish(uint16 topic, void* data, uint16_t size);
|
|
uint16_t TjdUiMsgCenterGetPriority(const Topic topic);
|
|
void RunPopOutPageCallback(void);
|
|
typedef void (*PopPageNotifyCallback)(void);
|
|
void DeRegisterNotifyPopOutPage(PopPageNotifyCallback callback);
|
|
void RegisterNotifyPopOutPage(PopPageNotifyCallback callback);
|
|
void DeRegisterNotifyPopInPage(PopPageNotifyCallback callback);
|
|
void RegisterNotifyPopInPage(PopPageNotifyCallback callback);
|
|
Topic GetCurTopic(void);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif |