Example #1
0
/*****************************************************************************
 * 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;
    }
}
Example #2
0
/*****************************************************************************
 * FUNCTION
 
 * DESCRIPTION
 *  
 * PARAMETERS
 *  scrn_id: current screen ID,
 *  func_ptr: current entry new screen function
 * RETURNS
 *  void
 *****************************************************************************/
static void mmi_opp_add_history_before_cm_marker(U16 scrn_id, FuncPtr func_ptr)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    history_t Scr;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    Scr.scrnID = scrn_id;
    Scr.entryFuncPtr = func_ptr;
    UCS2Strcpy((S8*) Scr.inputBuffer, (S8*) L"");

    InsertHistoryBeforeThisScrn(GetCmMarkerScrnID(), Scr);
}