void ShowCategory17Screen(
U16 title_id,
U16 left_softkey,
U16 left_softkey_icon,
U16 right_softkey,
U16 right_softkey_icon,
U16 NotificationStringId,
PU8 NameOrNumber, //来电的电话号码
PU8 IP_Number,
U16 CallLine,
U16 default_image_id,
U16 resource_id,
PS8 resource_filename,
wgui_cate_momt_res_type_enum resource_type,
U16 repeat_count,
BOOL is_visaul_update,
BOOL is_aud_enable,
BOOL is_play_aud_when_start,
PU8 history_buffer)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
#if defined(WGUI_CATCALL_STYLE_2)
ShowMOMTCallScreen_2(
title_id,
left_softkey,
left_softkey_icon,
right_softkey,
right_softkey_icon,
NotificationStringId,
NameOrNumber,
IP_Number,
CallLine,
default_image_id,
resource_id,
resource_filename,
resource_type,
repeat_count,
is_visaul_update,
is_aud_enable,
is_play_aud_when_start,
history_buffer);
#else /* defined(WGUI_CATCALL_STYLE_2) */
ShowMOMTCallScreen(
title_id,
left_softkey,
left_softkey_icon,
right_softkey,
right_softkey_icon,
NotificationStringId,
NameOrNumber, // 来电的电话号码
IP_Number,
CallLine,
default_image_id,
resource_id,
resource_filename,
resource_type,
repeat_count,
is_visaul_update,
is_aud_enable,
is_play_aud_when_start,
history_buffer);
#endif /* defined(WGUI_CATCALL_STYLE_2) */
} /* end of ShowCategory17Screen */
跟踪下ShowCategory17Screen,在void mmi_ucm_entry_incoming_call(void)里找到对category17的调用。
其中会发现这么一句赋值display_name = (U16*)g_ucm_p->call_list.group_info[incoming_group_index].call_info[0].remote_info.disp_name; 这个就是把来电的号码传给display_name,再传给category17来显示。
--------------------------------------------------------------------------------------------------------------------------------
GetCallName()这个函数好像也是获得来电名字或电话的,可以跟踪下