Beispiel #1
0
/**************************************************************

	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;
}
Beispiel #2
0
/*****************************************************************************
 * 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;
}
Beispiel #3
0
/**************************************************************

	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;
}