/***************************************************************************** * 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_java_is_in_voice_call * DESCRIPTION * this function use to detect taht current have voice call or not * PARAMETERS * void * RETURNS * MMI_TRUE or MMI_FALSE *****************************************************************************/ BOOL mmi_java_is_in_voice_call(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ if( AlmIsTonePlaying()) { return MMI_TRUE; } if ( isInCall() == MMI_TRUE ) { /* wap call connecting => true wap call connected => false other call connecting/connected => true */ if( GetWapCallPresent() ) { return MMI_FALSE; } else { return MMI_TRUE; } } else { if (GetActiveScreenId()==GetCmMarkerScrnID() || IsScreenPresent(GetCmMarkerScrnID())) { /* special case here, sometimes CM change state too early but still have call marker in the history */ return MMI_TRUE; } return MMI_FALSE; } }