Beispiel #1
0
/*****************************************************************************
 * FUNCTION
 *  mmi_vrsi_entry_redial_dial_prompt
 * DESCRIPTION
 *  This function is entry function of redial prompt
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_vrsi_entry_redial_dial_prompt(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    S8 str_prompt[MMI_VRSI_MAX_PROMPT_STR * ENCODING_LENGTH];

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    mmi_vrsi_redial_dial_prompt_message(str_prompt);

    TurnOnBacklight(1);

    EntryNewScreen(SCR_ID_VRSI_REDIAL_PROMPT, mmi_vrsi_exit_redial_dial_prompt, NULL, NULL);

    ShowCategory66Screen(
        STR_ID_VRSI_APP,
        MAIN_MENU_TITLE_MULTIMEDIA_ICON,
        STR_GLOBAL_DIAL,    /* LSK STR */
        0,                  /* LSK IMG */
        STR_GLOBAL_ABORT,   /* RSK STR */
        0,                  /* RSK IMG */
        (U8*) str_prompt,   /* message id */
        0,                  /* icon id */
        NULL);

    SetLeftSoftkeyFunction(mmi_vrsi_redial_dial_number, KEY_EVENT_UP);
    SetRightSoftkeyFunction(mmi_vrsi_rcg_abort, KEY_EVENT_UP);
#ifdef __MMI_DUAL_SIM_MASTER__
    MTPNP_PFAL_CC_HandleSendKeys(mmi_vrsi_redial_dial_number,KEY_EVENT_UP);
#else   /* __MMI_DUAL_SIM_MASTER__ */
    SetKeyHandler(mmi_vrsi_redial_dial_number, KEY_SEND, KEY_EVENT_UP);
#endif  /* __MMI_DUAL_SIM_MASTER__ */

    /* Play prompt TTS */
    mmi_vrsi_util_play_tts((U16*) str_prompt, mmi_vrsi_redial_dial_number);

}
Beispiel #2
0
/**************************************************************

	FUNCTION NAME		: EntrySECSETFDNList(void)
  	PURPOSE				: Entry screen to view FDl list
	INPUT PARAMETERS	: nil
	OUTPUT PARAMETERS	: nil
	RETURNS				: void
  	Author				: Vanita Jain
 

**************************************************************/
void EntrySECSETFDNList()
{

	U8 *pstfdlist[MAX_SIM_ENTRIES],*fdlHint[MAX_SIM_ENTRIES];
	U16 index;
	U8* guiBuffer;
	U16 fdlimagelist[MAX_SIM_ENTRIES];
	
	EntryNewScreen(SCR_ID_SECSET_FDN_LIST, NULL, EntrySECSETFDNList, NULL);
	
	guiBuffer = GetCurrGuiBuffer(SCR_ID_SECSET_FDN_LIST);		/* Getting the Index from history */

	for(index = 0; index < gpFDLBDLContext->FDNBDNCount; index++) 
	{
		if(gpFDLBDLContext->FDLBDLEntries[index].alpha_id.name[0] != '\0')
		{
			pstfdlist[index] = (U8*)gpFDLBDLContext->FDLBDLEntries[index].alpha_id.name;
			fdlHint[index] = (U8*)gpFDLBDLContext->FDLBDLEntries[index].tel.number;
		}
		else
		{
			pstfdlist[index] = (U8*)gpFDLBDLContext->FDLBDLEntries[index].tel.number;
			fdlHint[index] = NULL;
		}
		fdlimagelist[index]= IMG_STORAGE_SIM;
	}

	RegisterHighlightHandler(GetActiveIndex);

	if( guiBuffer != NULL)
	{
		memset( (void *) guiBuffer, 0, 2);
	}

	if (( gpFDLBDLContext->HighlightedFDN >= gpFDLBDLContext->FDNBDNCount) && (gpFDLBDLContext->FDNBDNCount > 0)) 
		gpFDLBDLContext->HighlightedFDN = gpFDLBDLContext->FDNBDNCount-1;

	
	if(gpFDLBDLContext->FDNBDNCount == 0)
	{
		pstfdlist[0] = (U8*)GetString(STR_GLOBAL_EMPTY_LIST);
		fdlimagelist[0]= 0;
		fdlHint[0] = NULL;
		ShowCategory6Screen(STR_SCR8054_CALL_FDL_CAPTION, MAIN_MENU_TITLE_SETTINGS_ICON, 
							STR_GLOBAL_ADD, IMG_GLOBAL_OPTIONS, 
							STR_GLOBAL_BACK, IMG_GLOBAL_BACK, 1, 
							pstfdlist, NULL,0, guiBuffer);
		gpFDLBDLContext->FDNBDNEdit = FALSE ;
		memset(gpFDLBDLContext->FDLBDLName,0,(MAX_NAME_LEN_FSB_LIST+1)*ENCODING_LENGTH);
		memset(gpFDLBDLContext->FDLBDLNumber,0,(MAX_NUMBER_LEN_FSB_LIST+1+1)*ENCODING_LENGTH);
		SetLeftSoftkeyFunction(EntrySECSETFDNDetails,KEY_EVENT_UP);
//micha0529
		SetKeyHandler(EntrySECSETFDNDetails, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
		SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
		SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
		SetKeyHandler(0,KEY_SEND,KEY_EVENT_UP);
	}
	else
	{

		ShowCategory53Screen(STR_SCR8054_CALL_FDL_CAPTION, MAIN_MENU_TITLE_SETTINGS_ICON,
//micha0610
						  STR_GLOBAL_OPTIONS, IMG_GLOBAL_OPTIONS,
						  STR_GLOBAL_BACK, IMG_GLOBAL_BACK,
						  gpFDLBDLContext->FDNBDNCount, pstfdlist,fdlimagelist, 
						  fdlHint,0, gpFDLBDLContext->HighlightedFDN, guiBuffer);

		SetLeftSoftkeyFunction(EntrySECSETFDNOption,KEY_EVENT_UP);
//micha0529
		SetKeyHandler(EntrySECSETFDNOption, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
		SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
		SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
		#ifdef __MMI_MULTI_SIM__
		MTPNP_PFAL_CC_HandleSendKeys(FdlMakeCall, KEY_EVENT_DOWN);
#if defined(TGT_GALLITE_G800)||defined(TGT_TD_4SIM)
		ClearKeyHandler( KEY_ENTER,  KEY_EVENT_DOWN);
		SetKeyHandler(EntrySECSETFDNOption,KEY_ENTER,KEY_EVENT_UP );
#endif
		#else
		SetKeyHandler(FdlMakeCall, KEY_SEND, KEY_EVENT_DOWN);
		#endif
	}
}