mt2503 09BSMS mark several菜单下自动选择Move/Copy to SIM/Phone菜单
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
09Bmarkseveral菜单下自动选择Move/CopytoSIM/Phone菜单(只适用于09B)
[SOLUTION]
09B版本上,当UNIFIED_MESSAGE_FOLDER=TRUE。即MMS/Push都会加进Unifiedmessagelist时,markseveral的option菜单里会自动隐藏Movetosim/Movetophone/Copytosim/Copytophone菜单。增加如下代码则根据当前markseveral的messagetpye来决定是否要隐藏这四个菜单。
VoidMMI_um_ui_sh_ms_option_arrange_menu_item(mmi_um_ui_cc_scrn_cntx_struct*scrn_cntx)
{
/*----------------------------------------------------------------*/
/*LocalVariables*/
/*----------------------------------------------------------------*/
mmi_um_ui_ms_cntx_struct*ms_table;
//addbegin
U16i=0;
U16idx;
U16reminding;
MMI_BOOLmark_status;
//addend
/*----------------------------------------------------------------*/
/*CodeBody*/
/*----------------------------------------------------------------*/
ms_table=(mmi_um_ui_ms_cntx_struct*)scrn_cntx->screen_hdlr.scrn_data;
。
#ifdef__UNIFIED_MESSAGE_ARCHIVE_SUPPORT__
if(SRV_UM_MSG_BOX_ARCHIVE==scrn_cntx->screen_hdlr.folder_type.msg_box_type)
{
mmi_frm_hide_menu_item(MENU_ID_UM_MULTI_OP_MOVE_TO_SIM);
mmi_frm_hide_menu_item(MENU_ID_UM_MULTI_OP_COPY_TO_SIM);
mmi_frm_hide_menu_item(MENU_ID_UM_MULTI_OP_MOVE_TO_PHONE);
mmi_frm_hide_menu_item(MENU_ID_UM_MULTI_OP_COPY_TO_PHONE);
}
#endif/*__UNIFIED_MESSAGE_ARCHIVE_SUPPORT__*/
//addbegin
for(i=0;i<SRV_UM_MAX_MSG_NUM;I++)
{
idx=i/MMI_UM_UI_BIT_MARK_STATUS_SIZE;
reminding=i-(idx*MMI_UM_UI_BIT_MARK_STATUS_SIZE);
mark_status=(ms_table->mark_status[idx]>>(MMI_UM_UI_BIT_MARK_STATUS_SIZE-1-reminding))&1;
if(((ms_table->msg_table.msg_type|SRV_UM_MSG_SMS)!=SRV_UM_MSG_SMS)&&(mark_status))
{
mmi_frm_hide_menu_item(MENU_ID_UM_MULTI_OP_MOVE_TO_SIM);
mmi_frm_hide_menu_item(MENU_ID_UM_MULTI_OP_COPY_TO_SIM);
mmi_frm_hide_menu_item(MENU_ID_UM_MULTI_OP_MOVE_TO_PHONE);
mmi_frm_hide_menu_item(MENU_ID_UM_MULTI_OP_COPY_TO_PHONE);
}
}
//addend
。
}
09Bmarkseveral菜单下自动选择Move/CopytoSIM/Phone菜单(只适用于09B)
[SOLUTION]
09B版本上,当UNIFIED_MESSAGE_FOLDER=TRUE。即MMS/Push都会加进Unifiedmessagelist时,markseveral的option菜单里会自动隐藏Movetosim/Movetophone/Copytosim/Copytophone菜单。增加如下代码则根据当前markseveral的messagetpye来决定是否要隐藏这四个菜单。
VoidMMI_um_ui_sh_ms_option_arrange_menu_item(mmi_um_ui_cc_scrn_cntx_struct*scrn_cntx)
{
/*----------------------------------------------------------------*/
/*LocalVariables*/
/*----------------------------------------------------------------*/
mmi_um_ui_ms_cntx_struct*ms_table;
//addbegin
U16i=0;
U16idx;
U16reminding;
MMI_BOOLmark_status;
//addend
/*----------------------------------------------------------------*/
/*CodeBody*/
/*----------------------------------------------------------------*/
ms_table=(mmi_um_ui_ms_cntx_struct*)scrn_cntx->screen_hdlr.scrn_data;
。
#ifdef__UNIFIED_MESSAGE_ARCHIVE_SUPPORT__
if(SRV_UM_MSG_BOX_ARCHIVE==scrn_cntx->screen_hdlr.folder_type.msg_box_type)
{
mmi_frm_hide_menu_item(MENU_ID_UM_MULTI_OP_MOVE_TO_SIM);
mmi_frm_hide_menu_item(MENU_ID_UM_MULTI_OP_COPY_TO_SIM);
mmi_frm_hide_menu_item(MENU_ID_UM_MULTI_OP_MOVE_TO_PHONE);
mmi_frm_hide_menu_item(MENU_ID_UM_MULTI_OP_COPY_TO_PHONE);
}
#endif/*__UNIFIED_MESSAGE_ARCHIVE_SUPPORT__*/
//addbegin
for(i=0;i<SRV_UM_MAX_MSG_NUM;I++)
{
idx=i/MMI_UM_UI_BIT_MARK_STATUS_SIZE;
reminding=i-(idx*MMI_UM_UI_BIT_MARK_STATUS_SIZE);
mark_status=(ms_table->mark_status[idx]>>(MMI_UM_UI_BIT_MARK_STATUS_SIZE-1-reminding))&1;
if(((ms_table->msg_table.msg_type|SRV_UM_MSG_SMS)!=SRV_UM_MSG_SMS)&&(mark_status))
{
mmi_frm_hide_menu_item(MENU_ID_UM_MULTI_OP_MOVE_TO_SIM);
mmi_frm_hide_menu_item(MENU_ID_UM_MULTI_OP_COPY_TO_SIM);
mmi_frm_hide_menu_item(MENU_ID_UM_MULTI_OP_MOVE_TO_PHONE);
mmi_frm_hide_menu_item(MENU_ID_UM_MULTI_OP_COPY_TO_PHONE);
}
}
//addend
。
}
比较高深,只能假装看懂了。
顶一顶