由于点击左右键查看信息,是通过得到msg_id,然后再调用mmi_sms_read_msg来实现的。所以实现循环查看,即要修改msg_id.
修改的函数为mmi_um_query_indexing
可以修改此函数如下,其中有注释//mtk的部分是新加的语句,谢谢~
………………………………………………………………………………………………………………………………
…………………….
/* Set data */
memset(result, 0, sizeof(mmi_um_iter_viewer_result_struct));
result->index_number = i + 1; /* display the correct index */
result->total_number = data_list->msg_number;
if (i == 0)
{
result->prev_msg_id = ((srv_um_msg_node_struct *)data_list->list)[(data_list->msg_number) - 1].msg_id;
//mtk
/* First one */
result->next_msg_id = ((srv_um_msg_node_struct *)data_list->list)[i + 1].msg_id;
result->prev_msg_type = ((srv_um_msg_node_struct *)data_list->list)[(data_list->msg_number) -1].msg_type;//mtk
result->next_msg_type = ((srv_um_msg_node_struct *)data_list->list)[i + 1].msg_type;
result->prev_launch_func_ptr = mmi_um_ui_adp_get_viewer_ptr(result->prev_msg_type);//mtk
result->next_launch_func_ptr = mmi_um_ui_adp_get_viewer_ptr(result->next_msg_type);
}
else if (i == (data_list->msg_number - 1))
{
/* Last one */
result->prev_msg_id = ((srv_um_msg_node_struct *)data_list->list)[i - 1].msg_id;
result->next_msg_id = ((srv_um_msg_node_struct *)data_list->list)[0].msg_id;
//mtk
result->prev_msg_type = ((srv_um_msg_node_struct *)data_list->list)[i - 1].msg_type;
result->next_msg_type = ((srv_um_msg_node_struct *)data_list->list)[0].msg_type;//mtk
result->prev_launch_func_ptr = mmi_um_ui_adp_get_viewer_ptr(result->prev_msg_type);
result->next_launch_func_ptr = mmi_um_ui_adp_get_viewer_ptr(result->next_msg_type);//mtk
}
else
{
…………………………………………………………………………………………………………………………
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.fwqtg.net
相关推荐: 【Linux】详解六种配置Linux环境变量的方法(以centos为例)
本文时间 2023-05-19 作者:sugerqube漆瓷 本文重理解,!!忽略环境变量加载原理!! 本文目标:理解六大环境变量配置,选择合适的配置文件进行配置 配置环境的理由 以shell编程为例 现在我们想要运行名为”sugerqube.sh”的脚本需要…