void jMms_deleteAll_Msg() { JC_RETCODE rCode ; mmi_show_in_progress(STR_ID_MMS_DELETING, IMG_GLOBAL_DELETED); rCode = jMMS_DeleteMsg (g_pstJMmsAppInfo->eCurrentFolderID, 0, E_TRUE) ; if (JC_OK == rCode) { jmms_UpdateMmsIcon () ; } if (JC_OK == rCode) { DisplayPopup(GetString (STR_ID_MMS_MESSAGE_DELETE_SUCCESS), IMG_GLOBAL_INFO,1, 2000, 1) ; if(E_JMMS_INBOX_FOLDER == g_pstJMmsAppInfo->eCurrentFolderID) gNeedNewMMSPopOnIdle = E_FALSE; jmms_GoBackToMainScreen(); } else if(JC_ERR_GENERAL_FAILURE == rCode) { DisplayPopup(GetString (STR_ID_DELETE_FAIL_NODEBUSY), IMG_GLOBAL_INFO,1, 2000, 1) ; jmms_GoBackToMainScreen(); } else { DisplayPopup(GetString (STR_ID_MMS_INF_FAIL), IMG_GLOBAL_INFO,1, 2000, 1) ; jmms_GoBackToMainScreen(); } }
/***************************************************************************** * FUNCTION * RspDeleteAllRecvdNum * DESCRIPTION * Response handler for deleteall received calls request. * NA * * PARAMETERS * info [?] * RETURNS * void *****************************************************************************/ void RspDeleteAllRecvdNum(void *info) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ DEL_LAST_NUMBER_RSP *rsp; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ /* retrive the data from the response info structure */ rsp = (DEL_LAST_NUMBER_RSP*) info; chis_p->isDeleteAll = FALSE; /* Check the response is success or not */ if (rsp->result.flag == CALL_LOG_RESULT_OK) { /* Incase of success */ /* Reset the received calls counters */ chis_p->nRecvdCalls = 0; /* Display success popup for user notification */ DisplayPopup((PU8) GetString(STR_GLOBAL_DELETED), IMG_GLOBAL_ACTIVATED, 1, CS_NOTIFYDURATION, SUCCESS_TONE); } else { /* If failure; then display failure popup for user notification */ DisplayPopup((PU8) GetString(STR_GLOBAL_UNFINISHED), IMG_GLOBAL_UNFINISHED, 1, CS_NOTIFYDURATION, ERROR_TONE); } /* Delete screens in history to go back to reset call main screen */ /* DeleteUptoScrID(SCR_CALLHISTORY_RESETCALL); */ return; }
void jMMS_Store_DeleteMsg (void) { JC_RETCODE rCode = JC_OK ; mmi_show_in_progress(STR_ID_MMS_DELETING, IMG_GLOBAL_DELETED); mmi_trace(1,"JDD_LOG: jMMS_Store_DeleteMsg[%d]",g_pstJMmsAppInfo->uiHighlightedMsgId) ; rCode = jMMS_DeleteMsg (g_pstJMmsAppInfo->eCurrentFolderID, g_pstJMmsAppInfo->uiHighlightedMsgId, E_TRUE) ; if (JC_OK == rCode) { jmms_UpdateMmsIcon () ; } if (JC_OK == rCode) { DisplayPopup(GetString (STR_ID_MMS_MESSAGE_DELETE_SUCCESS), IMG_GLOBAL_INFO,1, 2000, 1) ; jmms_GoBactToMainScreen(); } else if(JC_ERR_GENERAL_FAILURE == rCode) { DisplayPopup(GetString (STR_ID_DELETE_FAIL_NODEBUSY), IMG_GLOBAL_INFO,1, 2000, 1) ; jmms_GoBackToMainScreen(); } else { DisplayPopup(GetString (STR_ID_MMS_INF_FAIL), IMG_GLOBAL_INFO,1, 2000, 1) ; jmms_GoBactToMainScreen(); } }
void BmiComputeResult(void) { S8 temp_buf[100]; CloseCategory57Screen(); UnicodeToAnsii(temp_buf,(S8*)g_bmi_cntx->HeightBuf); g_bmi_cntx->Height = atof(temp_buf); UnicodeToAnsii(temp_buf, (S8*)g_bmi_cntx->WeightBuf); g_bmi_cntx->Weight = atof(temp_buf); if(((g_bmi_cntx->Height < BMI_MIN_HEIGHT) || (g_bmi_cntx->Height > BMI_MAX_HEIGHT)) && ((g_bmi_cntx->Weight < BMI_MIN_WEIGHT) || (g_bmi_cntx->Weight > BMI_MAX_WEIGHT))) { DisplayPopup((U8*)GetString(STR_BMI_HEIGHT_WEIGHT_ERROR) ,IMG_GLOBAL_WARNING, 0,UI_POPUP_NOTIFYDURATION_TIME,WARNING_TONE); g_bmi_cntx->CurrHilite = 2; return; } else if((g_bmi_cntx->Height < BMI_MIN_HEIGHT) || (g_bmi_cntx->Height > BMI_MAX_HEIGHT)) { DisplayPopup((U8*)GetString(STR_BMI_HEIGHT_ERROR_TEXT) ,IMG_GLOBAL_WARNING, 0,UI_POPUP_NOTIFYDURATION_TIME,WARNING_TONE); g_bmi_cntx->CurrHilite = 2; return; } else if((g_bmi_cntx->Weight < BMI_MIN_WEIGHT) || (g_bmi_cntx->Weight > BMI_MAX_WEIGHT)) { DisplayPopup((U8*)GetString(STR_BMI_WEIGHT_ERROR_TEXT) ,IMG_GLOBAL_WARNING, 0,UI_POPUP_NOTIFYDURATION_TIME,WARNING_TONE); g_bmi_cntx->CurrHilite = 4; return; } g_bmi_cntx->CurrHilite = 0; EntryBMIResultScreen(); }
/***************************************************************************** * FUNCTION * RspDeleteAllMissedNum * DESCRIPTION * Response handler for deleteallmissedcalls request. * NA * * PARAMETERS * info [?] * RETURNS * void *****************************************************************************/ void RspDeleteAllMissedNum(void *info) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ DEL_LAST_NUMBER_RSP *rsp; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ /* retrive the data from the response info structure */ rsp = (DEL_LAST_NUMBER_RSP*) info; /* Check the response is success or not */ if (rsp->result.flag == CALL_LOG_RESULT_OK) { /* Incase of success */ /* Reset the missed call icon on idle screen */ IdleResetStatusIcon(STATUS_ICON_MISSED_CALL); /* Reset the missed calls counters */ /* MTK Leo add 20040322, add two new statusicons on sublcd */ #ifndef __MMI_SUBLCD_SHORT_STATUSICON_LIST__ IdleResetStatusIcon(STATUS_ICON_SUBLCD_MISSED_CALL); #endif /* MTK Leo end */ chis_p->nMissedCalls = 0; chis_p->nMissedCallBeforeView = 0; #ifdef __MMI_DUAL_SIM_MASTER__ DeleteScreenIfPresent(SCR_MTPNP_CALL_HISTORY_NOTIFY); #endif /* __MMI_DUAL_SIM_MASTER__ */ g_chist_have_missed_call = 0; mmi_chist_set_have_missed_call(); } if (chis_p->isDeleteAll == TRUE) { if (chis_p->nRecvdCalls != 0) { DeleteAllRecdCalls(); return; } chis_p->isDeleteAll = FALSE; } if (rsp->result.flag == CALL_LOG_RESULT_OK) { /* Incase of success */ /* Display success popup for user notification */ DisplayPopup((PU8) GetString(STR_GLOBAL_DELETED), IMG_GLOBAL_ACTIVATED, 1, CS_NOTIFYDURATION, SAVE_TONE); } else { /* If failure; then display failure popup for user notification */ DisplayPopup((PU8) GetString(STR_GLOBAL_UNFINISHED), IMG_GLOBAL_UNFINISHED, 1, CS_NOTIFYDURATION, ERROR_TONE); } /* Delete screens in history to go back to reset call main screen */ /* DeleteUptoScrID(SCR_CALLHISTORY_RESETCALL); */ return; }
/***************************************************************************** * FUNCTION * csb_frm_check_if_card_present * DESCRIPTION * * PARAMETERS * * RETURNS * void *****************************************************************************/ pBOOL csb_frm_check_if_card_present(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ U32 drive; S32 status; pBOOL error_code = FALSE; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ drive = FS_GetDrive(FS_DRIVE_V_REMOVABLE, 1, FS_NO_ALT_DRIVE); status = FS_GetDevStatus(drive, FS_MOUNT_STATE_ENUM); if(status >= 0) { error_code = TRUE; DisplayPopup((PU8) GetString(STR_GLOBAL_OK), IMG_GLOBAL_ERROR, 5, CSB_NOTIFY_DURATION, 0); } else { error_code = FALSE; DisplayPopup((PU8) GetString(STR_ID_CSB_NO_MEMORY_CARD), IMG_GLOBAL_ERROR, 5, CSB_NOTIFY_DURATION, 0); } return error_code; }
/***************************************************************************** FUNCTION NAME : Sp_Send_Msg_Rsp PURPOSE :after send sms, handle the respose INPUT PARAMETERS : void OUTPUT PARAMETERS : void RETURNS : ******************************************************************************/ void Sp_Send_Msg_Rsp(void* number, module_type mod, U16 result) { switch(result) { case MMI_FRM_SMS_OK: DisplayPopup ((PU8)GetString(STR_SMS_SEND_SUCCESS), IMG_SEND_SUCCESS_PIC_MSG, 1, MESSAGES_POPUP_TIME_OUT, (U8)SUCCESS_TONE); mmi_frm_sms_delete_screen_history(); AlmEnableSPOF(); break; case MMI_FRM_SMS_ABORT: DisplayPopup ((PU8)GetString (STR_ABORT_SENDING_SMS), IMG_GLOBAL_ACTIVATED, 1, MESSAGES_POPUP_TIME_OUT, (U8)SUCCESS_TONE); mmi_frm_sms_delete_screen_history(); AlmEnableSPOF(); break; case MMI_FRM_SMS_NOTREADY: DisplayPopup ((PU8)GetString(STR_SMS_MSG_NOT_READY_YET), IMG_SEND_FAIL_PIC_MSG, 1, MESSAGES_POPUP_TIME_OUT, (U8)ERROR_TONE); AlmEnableSPOF(); break; case MMI_FRM_SMS_RETURN: case MMI_FRM_SMS_END: break; default: DisplayPopup ((PU8)GetString(STR_SMS_SEND_FAILED), IMG_SEND_FAIL_PIC_MSG, 1, MESSAGES_POPUP_TIME_OUT, (U8)ERROR_TONE); mmi_frm_sms_delete_screen_history(); AlmEnableSPOF(); break; } }
/************************************************************** FUNCTION NAME : RspDeleteAllMissedNum PURPOSE : Response handler for deleteallmissedcalls request. INPUT PARAMETERS : void * OUTPUT PARAMETERS : nil RETURNS : void **************************************************************/ void RspDeleteAllMissedNum( void *info ) { DEL_LAST_NUMBER_RSP *rsp; /* retrive the data from the response info structure */ rsp = (DEL_LAST_NUMBER_RSP *) info; /* Check the response is success or not */ if( rsp->result.flag == CALL_LOG_RESULT_OK) { /* Incase of success */ /* Reset the missed call icon on idle screen */ chis_p->nMissedCalls = 0; chis_p->nMissedCallBeforeView = 0; mmi_chist_rearrange_missed_call_status_icon(); #ifdef __MMI_CHIST_ACCU_NUM_MISSED_CALL_BEFORE_VIEW_AFTER_REBOOT__ mmi_chist_set_num_missed_call_before_view(); #endif #ifdef __MMI_MULTI_SIM__ DeleteScreenIfPresent(SCR_MTPNP_CALL_HISTORY_NOTIFY); #endif } if (chis_p->isDeleteAll == TRUE) { if (chis_p->nRecvdCalls != 0) { DeleteAllRecdCalls(); return; } else if (chis_p->nRejectedCalls != 0) { DeleteAllRejectedCalls(); return; } chis_p->isDeleteAll = FALSE; } if( rsp->result.flag == CALL_LOG_RESULT_OK) { /* Incase of success */ /* Display success popup for user notification */ DisplayPopup((PU8)GetString(STR_GLOBAL_DONE) , IMG_GLOBAL_ACTIVATED, 1, CS_NOTIFYDURATION,SAVE_TONE); } else { /* If failure; then display failure popup for user notification */ DisplayPopup((PU8)GetString(STR_GLOBAL_UNFINISHED) , IMG_GLOBAL_UNFINISHED, 1, CS_NOTIFYDURATION,ERROR_TONE); } /* Delete screens in history to go back to reset call main screen */ //DeleteUptoScrID(SCR_CALLHISTORY_RESETCALL); return; }
/***************************************************************************** * FUNCTION * ResetGPRSCounterRsp * DESCRIPTION * * PARAMETERS * info [?] * RETURNS * void *****************************************************************************/ void ResetGPRSCounterRsp(void *info) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /* micha1020 */ #ifdef __MMI_GPRS_FEATURES__ mmi_ps_reset_gprs_data_counter_rsp_struct *localPtr; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ localPtr = (mmi_ps_reset_gprs_data_counter_rsp_struct*) info; if (localPtr->result == MMI_TRUE) { gprsTotalSent = 0; gprsTotalReceived = 0; gprsLastSent = 0; gprsLastReceived = 0; DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, CS_NOTIFYDURATION, SUCCESS_TONE); } else { DisplayPopup((PU8) GetString(STR_GLOBAL_NOT_DONE), IMG_GLOBAL_UNFINISHED, 1, CS_NOTIFYDURATION, ERROR_TONE); } DeleteScreenIfPresent(SCR_CONFIRM_SCREEN); return; #endif /* __MMI_GPRS_FEATURES__ */ }
/***************************************************************************** * FUNCTION * csb_frm_testtool_callback * DESCRIPTION * Callback to take snap shots one by one (non-blocking) * PARAMETERS * void * RETURNS * U16 *****************************************************************************/ void csb_frm_testtool_callback(void) { /*----------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------*/ BOOL error_code = TRUE; /*----------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------*/ StopTimer(CSB_AUTO_MODE_TIMER_ID); /* Lock the buffer as we dont want to display the category screens */ gdi_layer_lock_frame_buffer(); /* ASSERT if the entryFuncPtr is NULL */ ASSERT(g_CSB_struct.pscreen_info[g_csb_index].entryFuncPtr != NULL); /* Call the category as the buffer must built before calling csb_frm_save_screen_shot */ g_CSB_struct.pscreen_info[g_csb_index].entryFuncPtr(); /* Unlock the buffer as it is already built */ gdi_layer_unlock_frame_buffer(); /* API to create the file path and save the LAYER contents in JPEG format */ error_code = (BOOL)csb_frm_save_screen_shot((U32)g_csb_index); if (error_code == FALSE) { /* Clear the key events */ ClearKeyEvents(); DisplayPopup((PU8) GetString(STR_ID_CSB_JPEG_FAIL_TEXT), IMG_GLOBAL_ERROR, 1, CSB_NOTIFY_DURATION, 0); DeleteUptoScrID(SCR_ID_CSB_TESTTOOL_SCR_ID); return; } /* Show processing screen till all the screenshots are taken */ TestToolProcessingScr(STR_ID_CSB_PROCESSING_TEXT); g_csb_index++; /* Delete the screens from History, as all the screens are getting added in History */ DeleteUptoScrID(SCR_ID_CSB_TESTTOOL_SCR_ID); DeleteScreenIfPresent(SCR_ID_CSB_DUMMY_SCR_ID); if(g_csb_index < TOTAL_CATEGORY_SCREENS) { EntryCSBTestToolRun(); } else { g_csb_index = 0; /* Once all the category screenshots are taken, show the DONE pop-up */ DisplayPopup((PU8) GetString(STR_ID_CSB_TESTTOOL_PASS), IMG_GLOBAL_ACTIVATED, 1, CSB_NOTIFY_DURATION, 0); DeleteUptoScrID(SCR_ID_CSB_TESTTOOL_SCR_ID); } }
/***************************************************************************** * FUNCTION * SpofSaveData * DESCRIPTION * Save SPOF data to NVRAM * PARAMETERS * None. * RETURNS * None. * GLOBALS AFFECTED * External global *****************************************************************************/ void SpofSaveData(void) { U8 NewHour, NewMin; NewHour = (g_spof_cntx.HourBuf[0]-'0')* 10 + (g_spof_cntx.HourBuf[ENCODING_LENGTH]-'0'); NewMin = (g_spof_cntx.MinBuf[0]-'0')* 10 + (g_spof_cntx.MinBuf[ENCODING_LENGTH]-'0'); if(SpofIsTimeClash(NewHour, NewMin)) { DisplayPopup((PU8) GetString(SPOF_TIME_CONFLICT), IMG_GLOBAL_UNFINISHED, 0, UI_POPUP_NOTIFYDURATION_TIME, ERROR_TONE); return; } /* if setting changed */ if(g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Hour != NewHour || g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Min != NewMin || g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Type != (U8)g_spof_cntx.CurrHiliteOnOff || g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Status!= g_spof_cntx.CurrHiliteActivation) { /* fill the SPOFList structure depending on the selected values */ g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Status = (U8)g_spof_cntx.CurrHiliteActivation; g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Type = (U8)g_spof_cntx.CurrHiliteOnOff; g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Hour = NewHour; g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Min = NewMin; /*save the alarm in the nvram*/ SpofWritetoNvram(); if(g_spof_cntx.CurrHiliteActivation == SPOF_ENABLE) { if(g_spof_cntx.CurrHiliteOnOff == SPOF_POWERON) { AlmCancelAlarm((U8)(g_spof_cntx.CurrItem+ALM_SPOF_START)); AlmSetAlarm((U8)(g_spof_cntx.CurrItem+ALM_SPON_START)); } else { AlmCancelAlarm((U8)(g_spof_cntx.CurrItem+ALM_SPON_START)); AlmSetAlarm((U8)(g_spof_cntx.CurrItem+ALM_SPOF_START)); } } else { AlmCancelAlarm((U8)(g_spof_cntx.CurrItem+ALM_SPON_START)); AlmCancelAlarm((U8)(g_spof_cntx.CurrItem+ALM_SPOF_START)); } } if(!g_spof_cntx.IsRestoreDefault) { DisplayPopup((PU8)GetString(STR_GLOBAL_DONE) ,IMG_GLOBAL_ACTIVATED, 1,UI_POPUP_NOTIFYDURATION_TIME,SUCCESS_TONE); DeleteUptoScrID(SCR_ID_SPOF_APP); } }
/************************************************************** FUNCTION NAME : RspDeleteAllDialedNum PURPOSE : Response handler for deleteall dialed calls request. INPUT PARAMETERS : void * OUTPUT PARAMETERS : nil RETURNS : void **************************************************************/ void RspDeleteAllDialedNum( void *info ) { DEL_LAST_NUMBER_RSP *rsp; /* retrive the data from the response info structure */ rsp = (DEL_LAST_NUMBER_RSP *) info; /* Check the response is success or not */ if( rsp->result.flag == CALL_LOG_RESULT_OK) { chis_p->nDialedCalls = 0; } if (chis_p->isDeleteAll == TRUE) { if (chis_p->nMissedCalls != 0) { DeleteAllMissedCalls(); return; } else if (chis_p->nRecvdCalls != 0) { DeleteAllRecdCalls(); return; } else if (chis_p->nRejectedCalls != 0) { DeleteAllRejectedCalls(); return; } chis_p->isDeleteAll = FALSE; } if( rsp->result.flag == CALL_LOG_RESULT_OK) { /* Incase of success */ /* Display success popup for user notification */ DisplayPopup((PU8)GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, CS_NOTIFYDURATION,SUCCESS_TONE); } else { /* If failure; then display failure popup for user notification */ DisplayPopup((PU8)GetString(STR_GLOBAL_UNFINISHED), IMG_GLOBAL_UNFINISHED, 1, CS_NOTIFYDURATION,ERROR_TONE); } /* Delete screens in history to go back to reset call main screen */ //DeleteUptoScrID(SCR_CALLHISTORY_RESETCALL); return; }
void RspDeleteAllRejectedNum( void *info ) { DEL_LAST_NUMBER_RSP *rsp; /* retrive the data from the response info structure */ rsp = (DEL_LAST_NUMBER_RSP *) info; if( rsp->result.flag == CALL_LOG_RESULT_OK) { /* Incase of success */ /* Reset the missed calls counters */ #ifndef __MMI_SUBLCD_SHORT_STATUSICON_LIST__ //IdleResetStatusIcon( STATUS_ICON_SUBLCD_REJECTED_CALL ); #endif chis_p->nRejectedCalls = 0; chis_p->nRejectedCallBeforeView = 0; /* Reset the missed call icon on idle screen */ mmi_chist_rearrange_rejected_call_status_icon(); } chis_p->isDeleteAll = FALSE; /* Check the response is success or not */ if( rsp->result.flag == CALL_LOG_RESULT_OK) { /* Incase of success */ /* Reset the received calls counters */ chis_p->nRejectedCalls = 0; /* Display success popup for user notification */ DisplayPopup((PU8)GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, CS_NOTIFYDURATION,SUCCESS_TONE); } else { /* If failure; then display failure popup for user notification */ DisplayPopup((PU8)GetString(STR_GLOBAL_UNFINISHED), IMG_GLOBAL_UNFINISHED, 1, CS_NOTIFYDURATION,ERROR_TONE); } /* Delete screens in history to go back to reset call main screen */ //DeleteUptoScrID(SCR_CALLHISTORY_RESETCALL); return; }
/***************************************************************************** * FUNCTION * mmi_vrsi_prf_pre_switch_mode * DESCRIPTION * This function check if it can switch to desire mode before switch. * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_vrsi_prf_pre_switch_mode(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ if (g_vrsi_profile_mode == gactivatedprofile) { DisplayPopup( (U8*) GetString(STR_ID_VRSI_ALREADY_IN_MODE), IMG_GLOBAL_WARNING, TRUE, UI_POPUP_NOTIFYDURATION_TIME_2000, WARNING_TONE); return; } #ifdef __MMI_BT_PROFILE__ if (IsHeadsetModeActivated() || mmi_profiles_bt_is_activated()) #else if (IsHeadsetModeActivated()) #endif mmi_vrsi_prf_cannot_switch_prompt(); else if (g_vrsi_profile_mode == MMI_PROFILE_HEADSET || g_vrsi_profile_mode == MMI_PROFILE_BT) /* headset/bt mode, enum value 4 or 6 */ { mmi_vrsi_prf_cannot_switch_prompt(); } else { mmi_vrsi_entry_prf_switch_prompt(); } }
/***************************************************************************** FUNCTION NAME : Entry_MobileEden PURPOSE :From Mobile Paradise into the next screen. INPUT PARAMETERS : void OUTPUT PARAMETERS : void RETURNS : Entry_MobileEden Entry_SP_Level1 SP_Pre_Entry_Level2 | | | | /Level1/ | /Level2/ | Mobile Paradise | | | | | ->New Style World | | ---->Joke -------->Request -------->Price Explanation ... <----- <----- SP_EDEN_GoBackHistory SP_Level1_GoBackHistory ******************************************************************************/ void Entry_MobileEden(void) { mmi_trace(g_sw_SP,"niej SP_BASE[%d]", SP_BASE); /*get network name*/ if((strncmp(gHomePLMNNum[0], "46000", 5)==0) ||(strncmp(gHomePLMNNum[0], "46002", 5)==0)) { sp_network_name = SP_NETWORK_CT; } else if(strncmp(gHomePLMNNum[0], "46001", 5)==0) { sp_network_name = SP_NETWORK_CU; } else { sp_network_name = SP_NETWORK_OTHER; } if(sp_network_name == SP_NETWORK_OTHER) { DisplayPopup ((PU8)GetString (STR_SMS_DOES_NOT_SUPPORT), IMG_GLOBAL_UNFINISHED, 1, MESSAGES_POPUP_TIME_OUT, NULL); } else { Draw_MobileEdenScreen(); } }
/***************************************************************************** * FUNCTION * mmi_syncml_phb_sync_rsp * DESCRIPTION * Callback for phonebook access * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_syncml_phb_sync_rsp(U16 phb_result, U16 store_index) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ #ifdef __MMI_SYNCML_REFRESH_SYNC_SUPPORT__ if (g_syncml_context.sync_type == SYNCML_TYPE_RESTORE && mmi_syncml_is_phb_sync_now() == MMI_FALSE) { if (phb_result == MMI_PHB_SYNC_SUCCESS) { /* delete phb for RESTORE sync type */ mmi_syncml_perform_delete_phb_one_by_one(); } else { DisplayPopup( (U8*) GetString(STR_GLOBAL_UNFINISHED), IMG_GLOBAL_UNFINISHED, 1, UI_POPUP_NOTIFYDURATION_TIME, (U8) ERROR_TONE); DeleteScreenIfPresent(SCR_ID_SYNC_DELETE_ALL); } return; } #endif /* __MMI_SYNCML_REFRESH_SYNC_SUPPORT__ */ switch (phb_result) { case MMI_PHB_SYNC_SUCCESS: g_syncml_sync_context.result = SYNCML_OK; break; case MMI_PHB_SYNC_STORAGE_FULL: g_syncml_sync_context.result = SYNCML_DEVICE_FULL; break; default: g_syncml_sync_context.result = SYNCML_FAIL; break; } if (g_syncml_sync_context.operation == SYNCML_RECORD_ADD) { g_syncml_sync_context.luid = store_index; } if (g_syncml_sync_context.operation == SYNCML_RECORD_GET) { mmi_syncml_get_record_res_req(); } else { mmi_syncml_set_record_res_req(); } }
/***************************************************************************** * FUNCTION * mmi_netset_entry_user_ctrl_plmn_del_one * DESCRIPTION * * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_netset_entry_user_ctrl_plmn_del_one(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ U8 i; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ DisplayPopup( (U8*) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, UI_POPUP_NOTIFYDURATION_TIME, (U8) SUCCESS_TONE); DeleteScreenIfPresent(SCR_ID_NETSET_USER_CTRL_PLMN_OPTIONS); /* write data to nvram */ for (i = gUserCtrlPlmnList.CurrSelPlmn + 1; i < gUserCtrlPlmnList.PlmnListSize; i++) { memcpy(gUserCtrlPlmnList.PrefPLMN[i - 1], gUserCtrlPlmnList.PrefPLMN[i], 24); } memset(gUserCtrlPlmnList.PrefPLMN[gUserCtrlPlmnList.PlmnListSize - 1], 0, 24); gUserCtrlPlmnList.PlmnListSize--; mmi_netset_access_user_ctrl_plmn_nvram(1); RefreshNwProviderName(gPLMN); }
void gcj_GprsCallback(void *info) { mmi_ps_gprs_connect_status_ind_struct *pGprsConnetStatus = (mmi_ps_gprs_connect_status_ind_struct*)info; if (pGprsConnetStatus->status != 0) { gcj_IsGprsActived =0; DisplayPopup((PU8)GetString(STR_GLOBAL_SOC_ERROR), IMG_GLOBAL_WARNING, 1, UI_POPUP_NOTIFYDURATION_TIME, (U8) WARNING_TONE); gcj_PrepareNetwork(); return; } else gcj_IsGprsActived=1; gcj_StubTakeMutex(&netMutex); _SOCKET_T *thisH = socketHead.next; while (thisH) { if (thisH->isWaitForGprs) { //gcj_StubReleaseSemphone(thisH->thisReadSem); gcj_StubCondNotify(thisH->thisReadSem); thisH->isWaitForGprs = 0; } thisH = thisH->next; } gcj_StubReleaseMutex(&netMutex); gcj_TraceOut(0,"j2me: file %s,function %s\n,gcj_IsGprsActived=%d",__FILE__,__FUNCTION__,gcj_IsGprsActived); }
/************************************************************** FUNCTION NAME : SECSETDelFdlRsp(void) PURPOSE : Rsp handler for Delete req. INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void Author : Vanita Jain **************************************************************/ void SECSETDelFdlRsp(void *info ) { MSG_PHB_DELETE_ENTRY_RSP_STRUCT* localPtr; localPtr = (MSG_PHB_DELETE_ENTRY_RSP_STRUCT *)info; if (localPtr->result.flag == 0 /*OK*/) { DisplayPopup((PU8)GetString(STR_GLOBAL_DONE) ,IMG_GLOBAL_ACTIVATED, 1,ST_NOTIFYDURATION,SUCCESS_TONE); } else { DisplayPopup((PU8)GetString(STR_GLOBAL_UNFINISHED) ,IMG_GLOBAL_UNFINISHED, 1,ST_NOTIFYDURATION,ERROR_TONE); } DeleteUptoScrID(SCR_ID_SECSET_FDN_LIST); }
/***************************************************************************** * FUNCTION * csb_frm_show_error_message * DESCRIPTION * shows the error string and NULLs the csb_buffer * PARAMETERS * nIndex [IN] * RETURNS void *****************************************************************************/ void csb_frm_show_error_message(void) { DisplayPopup((PU8) GetString(STR_ID_CSB_SCR_NOT_EXIST_TEXT), IMG_GLOBAL_ERROR, 1, CSB_NOTIFY_DURATION, 0); /* reset the buffer */ memset(csb_buffer, CSB_NULL, MAX_CSB_SCREEN_NAME_LENGTH); DeleteNHistory(1); }
HRESULT CMainFrame::Disconnect() { try{ HRESULT hr=S_OK; /* notify windows of intent to disconnect */ CXTPDockingPaneInfoList& panes = m_paneManager.GetPaneList(); POSITION pos = panes.GetHeadPosition(); for (int i=0;i < panes.GetCount();i++) panes.GetNext(pos)->GetChild()->SendMessage( WM_SN_DISCONNECTING, 0, (LPARAM)this); /* perform disconnection */ if(m_pcontroller->isConnected && SUCCEEDED(hr=m_pcontroller->Disconnect())) { /* notify windows of disconnection */ CXTPDockingPaneInfoList& panes = m_paneManager.GetPaneList(); POSITION pos = panes.GetHeadPosition(); for (int i=0;i < panes.GetCount();i++) panes.GetNext(pos)->GetChild()->SendMessage( WM_SN_DISCONNECTED, 0, (LPARAM)this); DisplayPopup("Disconnected!", "You are now disconnected from the servo controller.", MB_ICONINFORMATION); } return hr; } catch(HRESULT) { m_pcontroller->Release(); return S_OK; } }
/***************************************************************************** * FUNCTION * mmi_opp_scr_recv_obj_ind * DESCRIPTION * This function is to display popup sceren when receiving file * PARAMETERS * cause [IN] * RETURNS * void *****************************************************************************/ void mmi_opp_scr_recv_obj_ind(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ static BOOL previousInVdoApp=0; if (opp_suppress_popup_flag == MMI_TRUE || (isInCall() && !GetWapCallPresent())) { /* * If the applications won't want to show the WAP/MMS popup or * the handset has the voice call, * we return here directly. */ g_NeedRecheckOppRecv = 1; return ; } MMI_OPP_RECV_IND_STR() ; if ((isInCall() != MMI_TRUE) || (IsWapCallPresent()) ||opp_suppress_popup_flag==MMI_FALSE) { #if defined(__MMI_VIDEO_PLAYER__) /* Play warning tone to notify file saved */ if (mmi_vdoply_is_in_app()) { DisplayPopup(mmi_opp_recv_notify_str, IMG_GLOBAL_ACTIVATED, 1, UI_POPUP_NOTIFYDURATION_TIME, WARNING_TONE); g_NeedRecheckOppRecv = 1; previousInVdoApp = 1; } else #endif { if (previousInVdoApp) { previousInVdoApp = 0; mmi_opp_entry_idle_notify_scr(); } else DisplayPopupCallBack(mmi_opp_recv_notify_str, IMG_GLOBAL_ACTIVATED, 1, UI_POPUP_NOTIFYDURATION_TIME, WARNING_TONE,mmi_opp_entry_idle_notify_scr); MMI_OPP_CTX(cur_recv_file_cnt) = 0; } } /* if (g_idle_context.IsOnIdleScreen || GetActiveScreenId() == SCR_OPP_NOTY_FILE_RECV) { EntryIdleScreen(); } else { // mmi_opp_entry_idle_notify_scr(); } */ TurnOnBacklight(1); }
/***************************************************************************** * FUNCTION * mmi_opp_notify_recv_err * DESCRIPTION * This function is to display popup sceren when receiving error * PARAMETERS * cause [IN] * RETURNS * void *****************************************************************************/ void mmi_opp_notify_recv_err(MMI_OPP_NFY_TYPE cause) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ if (cause == MMI_OPP_NFY_DISK_FULL) { DisplayPopup( (PU8) GetString(STR_OPP_RECV_DISK_FULL), IMG_GLOBAL_ERROR, 0, UI_POPUP_NOTIFYDURATION_TIME, (U8) ERROR_TONE); } else if (cause == MMI_OPP_NFY_CONNECTION_DISCONNECTED) { DisplayPopup( (PU8) GetString(STR_OPP_CON_DISCONNECTED), IMG_GLOBAL_ERROR, 0, UI_POPUP_NOTIFYDURATION_TIME, (U8) ERROR_TONE); } else if (cause == MMI_OPP_NFY_CONNECTION_BUSY) { DisplayPopup( (PU8) GetString(STR_OPP_NOTY_CON_BUSY), IMG_GLOBAL_ERROR, 0, UI_POPUP_NOTIFYDURATION_TIME, (U8) ERROR_TONE); } else { DisplayPopup( (PU8) GetString(STR_GLOBAL_UNFINISHED), IMG_GLOBAL_UNFINISHED, 1, UI_POPUP_NOTIFYDURATION_TIME, WARNING_TONE); } }
/************************************************************** FUNCTION NAME : SECSETSetFdlEntryRsp(void) PURPOSE : Rsp fn for getting all FDL entries. INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void Author : Vanita Jain **************************************************************/ void SECSETSetFdlEntryRsp(void * info) { MSG_PHB_SET_ENRTY_RSP_STRUCT* localPtr; localPtr = (MSG_PHB_SET_ENRTY_RSP_STRUCT *)info; if (localPtr->result.flag == 0) { DisplayPopup((PU8)GetString(STR_GLOBAL_DONE) ,IMG_GLOBAL_ACTIVATED, 1,ST_NOTIFYDURATION,SUCCESS_TONE); } else if (localPtr->result.cause == MMI_SIM_EF_RECORD_FULL) { DisplayPopup((PU8)GetString(STR_NOT_SAVED_NUMBER_TOO_LONG), IMG_GLOBAL_ERROR, 1, ST_NOTIFYDURATION, ERROR_TONE); } else { DisplayPopup((PU8)GetString(STR_GLOBAL_UNFINISHED) ,IMG_GLOBAL_UNFINISHED, 1,ST_NOTIFYDURATION,ERROR_TONE); } gpFDLBDLContext->FDNBDNEdit = FALSE; DeleteUptoScrID(SCR_ID_SECSET_FDN_LIST); }
/***************************************************************************** * FUNCTION * mmi_java_display_is_busy_for_pause_mode * DESCRIPTION * Display Java is busy for pause state * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_java_display_is_busy_for_pause_mode(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ DisplayPopup((PU8) GetString(STR_JAVA_BUSY_FOR_PAUSE_MODE), 0, 1, UI_POPUP_NOTIFYDURATION_TIME, WARNING_TONE); }
void i51NewSmsAfter(void) { #ifdef __I51_APP_LANG_EN__ U16 NewSmsStr[]= L"new sms"; #else U16 NewSmsStr[] = { 0x65b0,0x6d88,0x606f,0x0000 }; #endif if( l_InI51 && i51CurrScreenIsI51() ) { DisplayPopup( (U8*)NewSmsStr, 0, 0, 3000, 0 ); } }
/***************************************************************************** * FUNCTION * mmi_vrsi_redial_dial_prompt_message * DESCRIPTION * This function prepare redial prompt message. * PARAMETERS * str_prompt [IN] Prompt string buffer * RETURNS * void *****************************************************************************/ void mmi_vrsi_redial_dial_prompt_message(S8 *str_prompt) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ LOG_CALL *redial_call = NULL; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ /* Append redial type, use first record only */ if (g_vrsi_redial_type == PHB_LND) { redial_call = &chis_p->dialedCalls[0]; mmi_ucs2cpy(str_prompt, GetString(STR_ID_VRSI_REDIAL_DIALED)); } else if (g_vrsi_redial_type == PHB_LNM) { redial_call = &chis_p->missedCalls[0]; mmi_ucs2cpy(str_prompt, GetString(STR_ID_VRSI_REDIAL_MISSED)); } else if (g_vrsi_redial_type == PHB_LNR) { redial_call = &chis_p->recvdCalls[0]; mmi_ucs2cpy(str_prompt, GetString(STR_ID_VRSI_REDIAL_RECEIVED)); } else { DisplayPopup( (U8*) GetString(STR_GLOBAL_ERROR), IMG_GLOBAL_ERROR, TRUE, UI_POPUP_NOTIFYDURATION_TIME, ERROR_TONE); return; } mmi_ucs2cat(str_prompt, (S8*) L" "); /* Append Name or Number */ if (mmi_ucs2strlen(redial_call->pbName)) { mmi_ucs2cat(str_prompt, redial_call->pbName); } else { mmi_ucs2cat(str_prompt, (S8*) redial_call->number); } /* Append dialing string */ mmi_ucs2cat(str_prompt, (S8*) L" "); mmi_ucs2cat(str_prompt, GetString(STR_ID_VRSI_DIALING_PROMPT)); }
HRESULT CMainFrame::Connect() { try{ HRESULT hr=S_OK; if(!m_pcontroller->isConnected && SUCCEEDED(hr=m_pcontroller->Connect(""))) { m_pcontroller->Scan(); CXTPDockingPaneInfoList& panes = m_paneManager.GetPaneList(); POSITION pos = panes.GetHeadPosition(); for (int i=0;i < panes.GetCount();i++) { panes.GetNext(pos)->GetChild()->SendMessage( WM_SN_CONNECTED, 0, (LPARAM)this); } DisplayPopup("Connected!", "You are now connected to the servo controller. An bus scan was performed to search for any servos attached to the controller.", MB_ICONINFORMATION); } return hr; } catch(HRESULT hr) { DisplayPopup("Connect failed!", "An error occured trying to connected to the servo controller.", MB_ICONERROR); return hr; } }
/************************************************************** FUNCTION NAME : CALLSETBarringPassRsp(void ) PURPOSE : function for handling response for call barring change passwd req. INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void **************************************************************/ void CALLSETBarringPassRsp(void *info) { mmi_ss_call_barring_rsp_struct *pMsgBarringRsp = (mmi_ss_call_barring_rsp_struct *) info ; /* change passwd response handling */ DeleteScreenIfPresent(SCR_ID_CALLSET_BARRING_OUT); DeleteScreenIfPresent(SCR_ID_CALLSET_BARRING_IN); DeleteScreenIfPresent(SCR_ID_CALLSET_BARRING_PASS); DeleteScreenIfPresent(SCR_ID_CALLSET_BARRING_OLD_PASS); DeleteScreenIfPresent(SCR_ID_CALLSET_BARRING_OPTION); DeleteScreenIfPresent(SCR_ID_CALLSET_BARRING_NEW_PASS); DeleteScreenIfPresent(SCR_ID_CALLSET_BARRING_CFRM_PASS); if(pMsgBarringRsp->result.flag == 0) { pfnUnicodeStrcpy((PS8)g_callset_cntx_p->SSDisplayBuffer,(PS8)GetString(STR_CHANGE_PSW_SUCCESS_TEXT)); //micha0322 DeleteScreenIfPresent(SCR_ID_CALLSET_GENERAL_SS_RESULT); EntryCALLSETGeneralSSResut(); }else { //micha0616 if ( pMsgBarringRsp->result.cause == CM_SS_ERR_NEGATIVEPW_CHECK ) { DisplayPopup( (PU8) GetString( STR_SETTING_WRONG), IMG_GLOBAL_UNFINISHED, 0, CS_NOTIFYDURATION, ERROR_TONE); } else if (pMsgBarringRsp->result.cause == CM_SS_ERR_NUMBEROFPW_ATTEMPTSVIOLATION) { DisplayPopup( (PU8) GetString( STR_SETTING_BLOCK), IMG_GLOBAL_UNFINISHED, 0, CS_NOTIFYDURATION, ERROR_TONE); } else { DisplayPopup( (PU8) GetString( STR_GLOBAL_NOT_DONE), IMG_GLOBAL_UNFINISHED, 0, CS_NOTIFYDURATION, ERROR_TONE); } //micha0915 RemoveSSReqScr(); } aud_speech_set_mode(KAL_FALSE); //chenhe,070808. for callforward,CM_KB_OUTGOINGCALL is been sent,so have to do so here return; }
/***************************************************************************** * FUNCTION * mmi_java_recv_show_alert_user_req * DESCRIPTION * Handler Function: revoked when receive the request to alert user some warning * PARAMETERS * MsgStruct [IN] Send from Java task * RETURNS * void *****************************************************************************/ void mmi_java_recv_show_alert_user_req(void *MsgStruct) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ mmi_java_show_alert_user_dialog_req_struct *msg; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ msg = (mmi_java_show_alert_user_dialog_req_struct*) MsgStruct; DisplayPopup((PU8) msg->message, IMG_GLOBAL_WARNING, 1, UI_POPUP_NOTIFYDURATION_TIME, (U8) WARNING_TONE); }