static MMI_BOOL vm_nmgr_global_popup_defer_callback(mmi_scenario_id scen_id, void *arg) { vm_confirm_property_struct *p = (vm_confirm_property_struct *)arg; mmi_confirm_property_struct confirm_arg; mmi_frm_group_enter(p->parentID, MMI_FRM_NODE_SMART_CLOSE_FLAG); mmi_confirm_property_init(&confirm_arg, CNFM_TYPE_USER_DEFINE); confirm_arg.parent_id = p->parentID; if (p->gpType == VM_CONFIRM_ONE_BUTTON_STR) { confirm_arg.softkey[0].str = (WCHAR *)(get_string(0)); confirm_arg.softkey[2].str = (WCHAR *)(p->btnText1); } else if (p->gpType == VM_CONFIRM_TWO_BUTTON_STR) { confirm_arg.softkey[0].str = (WCHAR *)(p->btnText1); confirm_arg.softkey[2].str = (WCHAR *)(p->btnText2); } confirm_arg.f_auto_map_empty_softkey = MMI_FALSE; confirm_arg.callback = (mmi_proc_func)(p->callBack); confirm_arg.user_tag = (void *)(p->userData); mmi_confirm_display((WCHAR *)(p->text), p->evtType, &confirm_arg); mmi_frm_asm_free_anonymous(p->text); mmi_frm_asm_free_anonymous(p->btnText1); if (p->gpType == VM_CONFIRM_TWO_BUTTON_STR) mmi_frm_asm_free_anonymous(p->btnText2); return MMI_TRUE; }
/***************************************************************************** * FUNCTION * mmi_rmgr_list_ro_entry_delete * DESCRIPTION * Entry function of the list ro delete screen * PARAMETERS * void * RETURNS * void *****************************************************************************/ static void mmi_rmgr_list_ro_entry_delete(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ U16 *delete_str; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ if (delete_hdlr == mmi_rmgr_list_ro_delete_all_entry) { delete_str = (U16 *)GetString(STR_ID_RMGR_DELETE_ALL_QUERY); } else { delete_str = (U16 *)GetString(STR_ID_RMGR_DELETE_QUERY); } { mmi_confirm_property_struct arg; mmi_confirm_property_init(&arg, CNFM_TYPE_YESNO); arg.parent_id = GRP_ID_RMGR_MAIN; arg.callback = (mmi_proc_func)mmi_rmgr_list_ro_delete_conf_callback; arg.f_auto_map_empty_softkey = MMI_FALSE; arg.user_tag = NULL; mmi_confirm_display((WCHAR *)delete_str, MMI_EVENT_QUERY, &arg); } }