获取来电时的电话号码

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()这个函数好像也是获得来电名字或电话的,可以跟踪下

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值