通知模型补全(agent-107: SDK icon+update_progress / IPC urgency+MSG_NOTIFY_PROGRESS / 存储 urgency+icon回退+progress / CSV加3列) + 全屏收合视觉+滑条(agent-108)
This commit is contained in:
1 parent
b3e57d4b55
commit
e8fa373a2f
18 files changed
+410
-56
No files matched your search
@@ -44,6 +44,7 @@ enum {
|
||||
MSG_NOTIFY_ACK = 0x0021, /* ↓ 落库结果 */
|
||||
MSG_NOTIFY_DISMISS = 0x0022, /* ↑ 撤下通知 */
|
||||
MSG_NOTIFY_LIST = 0x0023, /* ↓ 下发通知清单(重同步) */
|
||||
MSG_NOTIFY_PROGRESS = 0x0024,/* ↑ 实时更新通知进度(仅改内存活跃槽,不落盘) */
|
||||
MSG_ACT_DECLARE = 0x0030, /* ↑ (重)声明路由表 */
|
||||
MSG_ACT_QUERY = 0x0031, /* ↑ 解析 activity 链路 */
|
||||
MSG_ACT_RESULT = 0x0032, /* ↓ 返回链路 */
|
||||
@@ -134,9 +135,11 @@ typedef struct m_act_declare {
|
||||
} m_act_declare_t;
|
||||
|
||||
/* MSG_NOTIFY ↑:推送/更新通知(freedesktop 对齐 + MeowOS 扩展;定长 LE)。
|
||||
* - summary/body/app_icon/expire_timeout 直通 freedesktop 字段;
|
||||
* - summary/body/app_icon/expire_timeout 直通 freedesktop 字段;app_icon 即 SDK `icon`
|
||||
* (icon name 或 path;映射为空串时 launcher 用该 app 默认图标回退);
|
||||
* - target_activity/progress 为 MeowOS 专有(存储层映射为 hints 的
|
||||
* meow.target_activity / meow.progress);
|
||||
* - urgency 为 MeowOS 扩展(0-3,缺省 NORMAL;旧调用置 0=旧 pad 位);
|
||||
* - actions[]/hints{} v1 走定长空串(M2b D-Bus 桥再填);media/ongoing 标记。
|
||||
* 宿主:NOTIFICATION_SYSTEM.md §2/§4 + FRAMEWORK_DESIGN §4/附C。 */
|
||||
typedef struct m_notify {
|
||||
@@ -144,14 +147,22 @@ typedef struct m_notify {
|
||||
char category[24]; /* 通知类型(媒体通知="media") */
|
||||
char summary[64];
|
||||
char body[96];
|
||||
char app_icon[48];
|
||||
char app_icon[48]; /* SDK icon;空=launcher 按 app_id 回退 app 图标 */
|
||||
char target_activity[MEOW_ACT_MAX]; /* MeowOS:点击跳转目标 activity */
|
||||
uint32_t replaces_id; /* 0=新建;>0=替换已存在通知 */
|
||||
uint32_t expire_timeout; /* ms;0xFFFFFFFF=ONGOING 常驻 */
|
||||
int32_t progress; /* MeowOS:0-100;<0=无 */
|
||||
uint8_t media; /* 1=媒体通知 */
|
||||
uint8_t ongoing; /* 1=常驻通知 */
|
||||
uint16_t pad;
|
||||
} m_notify_t; /* 定长 LE */
|
||||
uint8_t urgency; /* 0-3(低/普通/高/紧急);越界由 SDK 钳位缺省 NORMAL;旧调用置 0=旧 pad 位 → LOW/静默 */
|
||||
uint8_t pad;
|
||||
} m_notify_t; /* 定长 LE;尾部 4 字节(media/ongoing/urgency/pad)与旧版 pad 等宽 */
|
||||
|
||||
/* MSG_NOTIFY_PROGRESS ↑:实时更新一条已存在通知的进度(仅改 launcher 内存活跃槽,
|
||||
* 不落盘——TF 快照只在创建/结束(100% 或 dismiss)写)。 */
|
||||
typedef struct m_notify_progress {
|
||||
uint32_t nid; /* launcher 分配的通知 id(MSG_NOTIFY_ACK.status) */
|
||||
int32_t progress; /* 0-100;<0=清除进度条 */
|
||||
} m_notify_progress_t; /* 8 B */
|
||||
|
||||
#endif /* MEOW_IPC_H */
|
||||
Reference in new issue
Block a user