Esempio n. 1
0
/*****************************************************************************
 * FUNCTION
 *  mmi_opp_entry_disconnting
 * DESCRIPTION
 *  This function is to entry disconnecting screen.
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_opp_entry_disconnting(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    EntryNewScreen(SCR_OPP_DISCONNECTING, NULL, mmi_opp_entry_disconnting, NULL);

    /* clear all key handlers so as to restrict duplicate reqs */
    ClearKeyHandler(KEY_END, KEY_EVENT_DOWN);
    ClearKeyHandler(KEY_END, KEY_LONG_PRESS);

    MMI_OPP_BUILD_DISCONNCTING_NOTY_STR();

    ShowCategory66Screen(
        STR_OPP_NOTY_DISCONNECTING,
        GetRootTitleIcon(MENU_CONN_BT_MAIN),
        0,
        0,
        0,
        0,
        (U8*) mmi_opp_notify_str,
        IMG_GLOBAL_PROGRESS,
        NULL);

    SetDelScrnIDCallbackHandler(SCR_OPP_DISCONNECTING, mmi_bt_opp_disconnecting_screen_del_cb);
}
Esempio n. 2
0
/*****************************************************************************
 * FUNCTION
 *  jvm_entry_terminating(void)
 * DESCRIPTION
 *  Entry terminating screen
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_java_entry_terminating_internal(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/


    EntryNewScreen(SCR_JAVA_VM_TERMINATING, NULL, mmi_java_entry_terminating_internal, NULL);

    SetDelScrnIDCallbackHandler(SCR_JAVA_VM_TERMINATING,mmi_java_screen_delete_hdlr);

    ShowCategory8Screen(
        STR_JAVA_VM_TERMINATING,
        mmi_java_get_title_icon(),
        0,
        0,
        0,
        0,
        STR_JAVA_WAIT,
        IMG_GLOBAL_PROGRESS,
        NULL);

    ClearAllKeyHandler();
    ClearKeyHandler(KEY_END, KEY_EVENT_UP);
    ClearKeyHandler(KEY_END, KEY_EVENT_DOWN);
    ClearKeyHandler(KEY_END, KEY_LONG_PRESS);
    ClearKeyHandler(KEY_END, KEY_REPEAT);

}
Esempio n. 3
0
/*****************************************************************************
 * FUNCTION
 *  GetGPRSCountersRequest
 * DESCRIPTION
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void GetGPRSCountersRequest(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    /* micha1020 */
#ifdef __MMI_GPRS_FEATURES__
    MYQUEUE Message;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    ClearInputEventHandler(MMI_DEVICE_ALL);
    ClearKeyHandler(KEY_END, KEY_EVENT_UP);
    ClearKeyHandler(KEY_END, KEY_EVENT_DOWN);
    /* micha1020 */
    SetProtocolEventHandler(GetGPRSCountersResponse, PRT_MMI_PS_GET_GPRS_DATA_COUNTER_RSP);
    /* format message to send req for get plmn list */
    Message.oslSrcId = MOD_MMI;
    Message.oslDestId = MOD_L4C;
    /* micha1020 */
    Message.oslMsgId = PRT_MMI_PS_GET_GPRS_DATA_COUNTER_REQ;
    Message.oslDataPtr = NULL;
    Message.oslPeerBuffPtr = NULL;
    OslMsgSendExtQueue(&Message);
    return;
#endif /* __MMI_GPRS_FEATURES__ */ 
}
Esempio n. 4
0
/*****************************************************************************
* FUNCTION
*	EntryBMIWelcomeScreen
* DESCRIPTION
*   Display welcome screen of BMI application
* PARAMETERS
*	None
* RETURNS
*	None
* GLOBALS AFFECTED
*	None
*****************************************************************************/
void EntryBMIWelcomeScreen(void) 
{
	U8 *guiBuffer;

	EntryNewScreen(SCR_BMI_WELCOME, NULL, EntryBMIWelcomeScreen, NULL);
	guiBuffer = GetCurrGuiBuffer(SCR_BMI_WELCOME);

	if(g_bmi_cntx == NULL)
		g_bmi_cntx = OslMalloc(sizeof(bmi_context_struct));
	
	memset(g_bmi_cntx, 0, sizeof(bmi_context_struct));

	ShowCategory129Screen((U8*)get_string(STR_BMI_WELCOME_CAPTION), GetRootTitleIcon(ORGANIZER_HEALTH_MENU), 
					STR_GLOBAL_OK, IMG_GLOBAL_OK, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, 
					IMG_BMI_WELCOME_SCREEN, guiBuffer);
	
	SetLeftSoftkeyFunction(EntryBMIInputScreen ,KEY_EVENT_UP);
	SetRightSoftkeyFunction(BmiFreeMemAndGoBack,KEY_EVENT_UP);
	
	#ifdef __MMI_NOKIA_STYLE_N800__
        ClearKeyHandler( KEY_LSK,  KEY_EVENT_DOWN);
        ClearKeyHandler( KEY_RSK,  KEY_EVENT_DOWN);
        SetKeyHandler(EntryBMIInputScreen , KEY_LSK,  KEY_EVENT_UP);
        SetKeyHandler(BmiFreeMemAndGoBack , KEY_RSK,  KEY_EVENT_UP);
	#endif
}
Esempio n. 5
0
void EntrySECSETFDNBDNDeleting(void)
{
	EntryNewScreen(SCR_ID_SECSET_FDNBDN_DELETING, NULL, EntrySECSETFDNBDNDeleting, NULL);

	ShowCategory66Screen(STR_SCR9000_SETTINGS_CAPTION,IMG_SCR_PBOOK_CAPTION, 0, 0, 0, 0, (PU8)GetString(STR_PHB_DELETING), IMG_GLOBAL_DELETED, NULL);
	ClearAllKeyHandler();
	ClearKeyHandler(KEY_END, KEY_EVENT_UP);
	ClearKeyHandler(KEY_END, KEY_EVENT_DOWN);
	ClearKeyHandler(KEY_END, KEY_LONG_PRESS);
	ClearKeyHandler(KEY_END, KEY_REPEAT);
}
Esempio n. 6
0
/**************************************************************

	FUNCTION NAME		: EntrySECSETFDNBDNSaving(void)
  	PURPOSE				: Show progress screen for Settings.
	INPUT PARAMETERS	: nil
	OUTPUT PARAMETERS	: nil
	RETURNS				: void
  	Author				: Vanita Jain
 

**************************************************************/
void EntrySECSETFDNBDNSaving(void)
{
	EntryNewScreen(SCR_ID_SECSET_FDNBDN_SAVING, NULL, EntrySECSETFDNBDNSaving, NULL);
	
//micha1020
	ShowCategory66Screen(STR_SCR9002_SECURITY_CAPTION,IMG_SCR_PBOOK_CAPTION, 0, 0, 0, 0, (PU8)GetString(STR_GLOBAL_SAVING), IMG_GLOBAL_SAVE, NULL);
	ClearAllKeyHandler();
	ClearKeyHandler(KEY_END, KEY_EVENT_UP);
	ClearKeyHandler(KEY_END, KEY_EVENT_DOWN);
	ClearKeyHandler(KEY_END, KEY_LONG_PRESS);
	ClearKeyHandler(KEY_END, KEY_REPEAT);
}
Esempio n. 7
0
/*****************************************************************************
 * FUNCTION
 *  ResetGPRSCounterReq
 * DESCRIPTION
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void ResetGPRSCounterReq(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
#ifdef __MMI_GPRS_UNIT_TEST__

    gprsTotalSent = 0;
    gprsTotalReceived = 0;
    gprsLastSent = 0;
    gprsLastReceived = 0;
    DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, CS_NOTIFYDURATION, SUCCESS_TONE);
    DeleteUptoScrID(SCR8004_GPRS_COUNTER);

#else /* __MMI_GPRS_UNIT_TEST__ */ 

    /* micha1020 */
#ifdef __MMI_GPRS_FEATURES__

    MYQUEUE Message;

    ClearInputEventHandler(MMI_DEVICE_ALL);
    ClearKeyHandler(KEY_END, KEY_EVENT_UP);
    ClearKeyHandler(KEY_END, KEY_EVENT_DOWN);
    /* micha1020 */
    SetProtocolEventHandler(ResetGPRSCounterRsp, PRT_MMI_PS_RESET_GPRS_DATA_COUNTER_RSP);
    /* format message to send req for get plmn list */
    Message.oslSrcId = MOD_MMI;
    Message.oslDestId = MOD_L4C;
    /* micha1020 */
    Message.oslMsgId = PRT_MMI_PS_RESET_GPRS_DATA_COUNTER_REQ;
    Message.oslDataPtr = NULL;
    Message.oslPeerBuffPtr = NULL;
    OslMsgSendExtQueue(&Message);

#endif /* __MMI_GPRS_FEATURES__ */ 

#endif /* __MMI_GPRS_UNIT_TEST__ */ 

    return;
}
Esempio n. 8
0
/**************************************************************

	FUNCTION NAME		: HighlightCALLSETCallBarringQuery(void)

  	PURPOSE				: hightlight handler for call barring query status

	INPUT PARAMETERS	: nil

	OUTPUT PARAMETERS	: nil

	RETURNS				: void

 

**************************************************************/
void HighlightCALLSETCallBarringQuery(void)
{
	/* set the left/right soft key functions handlers */	
	SetLeftSoftkeyFunction (SendBarrQuery,KEY_EVENT_UP);
//micha0529
	ClearKeyHandler(KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
	SetRightSoftkeyFunction (GoBackHistory,KEY_EVENT_UP);
	return;
}
Esempio n. 9
0
/**************************************************************

	FUNCTION NAME		: HighLightDeleteFDL(void)
  	PURPOSE				: Highlight Delete Option.
	INPUT PARAMETERS	: nil
	OUTPUT PARAMETERS	: nil
	RETURNS				: void
  	Author				: Vanita Jain
 

**************************************************************/
void HighLightDeleteFDL()
{
//micha0811
//	SetKeyHandler(EntrySECSETFDNDelConfirm, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
	ClearKeyHandler(KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
	SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);

	SetLeftSoftkeyFunction(EntrySECSETFDNDelConfirm,KEY_EVENT_UP);
	SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
}
Esempio n. 10
0
void jWap_PopupCallBack()
{
	INT	 iErr ;
	ST_BE_PAGE_CONTENT 	 stPageCont ;

	jc_memset (&stPageCont, 0, sizeof (ST_BE_PAGE_CONTENT)) ;

	mmi_trace (1, "JDD_LOG: jWap_PopupCallBack starts") ;
	
	if((!isInWapApp())||isInCall())
	{
		GoBackHistory();
		mmi_trace (1, "JDD_LOG: go back screen ignoring") ;
		return;
	}
	
	if (E_WAP_EXIT_KEY_END == g_pstJWapAppInfo->stWapState.eWapExitKeyPressed)
	{
		mmi_trace (1, "JDD_LOG: aborting screen ignoring") ;
		return;
	}
	
	iErr = jdi_BEGetPageContent (g_pstJWapAppInfo->hBECore, &stPageCont) ;

	if (iErr)
	{
		// There is no content displayed on Primary MMI
		jWap_options_quit_handler () ;
	}
	else
	{
		if (!jWap_isBack ())
		{
			//ChangeRightSoftkey (STR_GLOBAL_QUIT, 0) ;
			//This is the first page. Remove RSK
			ClearKeyHandler (KEY_RSK, KEY_EVENT_DOWN) ;
		}
		else
		{
			// There are more than 1 page. Set to "Back"
			ChangeRightSoftkey (STR_GLOBAL_BACK, 0) ;
			SetRightSoftkeyFunction (jWap_back, KEY_EVENT_UP) ;
		}		
				
		ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0) ;
		SetLeftSoftkeyFunction (jWap_options_handler, KEY_EVENT_UP) ;

		ChangeTitleIcon (IMG_ID_JATAAYU_WAP_END_ANIMATION_GIF) ;
		//setup_scrolling_title () ;
		draw_title () ;
		jmms_goto_primaryMMI();		
	}
	mmi_trace (1, "@@@ jWap_PopupCallBack end @@@") ;
}
Esempio n. 11
0
/**************************************************************

	FUNCTION NAME		: HighlightCALLSETCallBarringCancelAll(void)

  	PURPOSE				: highlight handler for call barring cancel all application

	INPUT PARAMETERS	: nil

	OUTPUT PARAMETERS	: nil

	RETURNS				: void

 

**************************************************************/
void HighlightCALLSETCallBarringCancelAll(void)
{
	/* storing the menu item selected */
	g_callset_cntx_p->SSBarAction = BARRING_CANCEL_ALL;
	/* set the left/right soft key functions handlers */	
	SetLeftSoftkeyFunction (EntryCALLSETBarringPass,KEY_EVENT_UP);
//micha0529
	SetKeyHandler(EntryCALLSETBarringPass, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
	SetRightSoftkeyFunction (GoBackHistory,KEY_EVENT_UP);
	/* set the left/right arrow key function handlers */
	ClearKeyHandler(KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
	return;
}
Esempio n. 12
0
/*****************************************************************************
 * FUNCTION
 *  mmi_opp_entry_fmgr_fwd
 * DESCRIPTION
 *  This function is the handler for showing the progress of transfer
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_opp_entry_fmgr_fwd(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    /* Call Exit Handler */
    EntryNewScreen(SCR_OPP_SENDING, mmi_opp_exit_fmgr_fwd, mmi_opp_entry_fmgr_fwd, NULL);
#if 0
/* under construction !*/
#endif
    /* clear all key handlers so as to restrict duplicate reqs */
    ClearKeyHandler(KEY_END, KEY_EVENT_DOWN);
    ClearKeyHandler(KEY_END, KEY_LONG_PRESS);

    /* Show Sending screen */
    OPP_UDPADE_STR();
    ShowCategory66Screen(
        STR_OPP_SEND,
        GetRootTitleIcon(MENU_CONN_BT_MAIN),
        0,
        0,
        STR_GLOBAL_CANCEL,
        0,
        (U8*) opp_fmgr_send_str_buf,
        IMG_GLOBAL_PROGRESS,
        NULL);

    /* Set Right softkey function to abort sending */    
    SetRightSoftkeyFunction(mmi_bt_opp_snd_abort, KEY_EVENT_UP);
    
    SetKeyHandler(mmi_opp_end_key_press_hdler, KEY_END, KEY_EVENT_DOWN);
    SetDelScrnIDCallbackHandler(SCR_OPP_SENDING, (HistoryDelCBPtr) mmi_opp_sending_screen_del_cb);

    StartTimer(FMGR_PROG_UPDATE_TIMER, OPP_PROG_UPD_DUR, mmi_opp_update_prog_tohdlr);
}
Esempio n. 13
0
/*****************************************************************************
 * FUNCTION
 *  mmi_opp_entry_abort_fwd
 * DESCRIPTION
 *  This function is the handler for showing the aborting screen
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_opp_entry_abort_fwd(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    /* Call Exit Handler */
    EntryNewScreen(SCR_OPP_ABORTING, mmi_opp_stop_req_timer, mmi_opp_entry_abort_fwd, NULL);

    /* clear all key handlers so as to restrict duplicate reqs */
    ClearKeyHandler(KEY_END, KEY_EVENT_DOWN);
    ClearKeyHandler(KEY_END, KEY_LONG_PRESS);

    MMI_OPP_BUILD_ABORTING_NOTY_STR();

    ShowCategory66Screen(STR_BT_CANCELLING, GetRootTitleIcon(MENU_CONN_BT_MAIN), 0, 0, 0, 0, (U8*) mmi_opp_idle_notify_str, IMG_GLOBAL_PROGRESS, NULL);

    SetDelScrnIDCallbackHandler(SCR_OPP_ABORTING, (HistoryDelCBPtr) mmi_opp_aborting_screen_del_cb);
    /* While COOLSAND BT, no need to send disconnect because OBEX stack will guard this */
}
Esempio n. 14
0
void EntryFdlList(void)
{
	if((gSimReady[gSecSetupMenuSimID] == FALSE) ||!is_phb_init_Finishi())
        {
        	DisplayPopup((PU8)GetString(SAT_WAIT_STRING_ID), IMG_GLOBAL_ERROR, 0, ST_NOTIFYDURATION, ERROR_TONE);
        	return;	
        }
	
	ClearAllKeyHandler();
	ClearKeyHandler(KEY_END, KEY_EVENT_UP);
	ClearKeyHandler(KEY_END, KEY_EVENT_DOWN);
	ClearKeyHandler(KEY_END, KEY_LONG_PRESS);
	ClearKeyHandler(KEY_END, KEY_REPEAT);
	
	//if(g_phb_cntx.phb_ready)
	{
		g_FixedInit[gSecSetupMenuSimID] = FALSE;
		gpFDLBDLContext->FDNBDNCount =0;
		SECSETGetFdlEntriesReq();
	}
	#if 0
	else
	{
Esempio n. 15
0
void SpofEntryPwrOffInd(void)
{
	mmi_trace(1," SpofEntryPwrOffInd ");
	
	TurnOnBacklight(1);
	
	EntryNewScreen(SCR_ID_SPOF_PWROFF_IND, NULL, SpofEntryPwrOffInd, NULL);

	ClearAllKeyHandler();
	ClearKeyHandler( KEY_END, KEY_EVENT_DOWN );
	ClearKeyHandler( KEY_END, KEY_LONG_PRESS );
	/*modify the right softkey caption from "Back" to "Cancel" by liuxl on 20090626*/
	ShowCategory66Screen(  SPOF_MAIN_TITLE_STRINGID,
                                            #if defined(__PROJECT_GALLITE_C01__)
							NULL,
                                            #else
							SPOF_TYPEPOWEROFF_IMAGEID,
                                            #endif
							STR_GLOBAL_OK, 0, 
							STR_GLOBAL_CANCEL, 0, 
							(PU8)GetString(SPOF_POWER_OFF_CONFIRM), 
                                            #if defined(__PROJECT_GALLITE_C01__)
							NULL,
                                            #else
							SPOF_TYPEPOWEROFF_IMAGEID,
                                            #endif 
							NULL);

	SetLeftSoftkeyFunction(ShutdownSystemOperation, KEY_EVENT_UP);
	//wangzl: 090912 modify for 14334
	//SetRightSoftkeyFunction(QuitPwrOffIndBackToIdleScreen, KEY_EVENT_UP);
	SetRightSoftkeyFunction(QuitPwrOffIndBack, KEY_EVENT_UP);
	//wangzl: 090912 modify end

	StartTimer(SYSTEM_SHUTDOWN, 10*1000, ShutdownSystemOperation);
}
Esempio n. 16
0
INT jWap_beginDispHandler ()
{
	/* Disable LSK when fetching is in progress */	
	if(GetActiveScreenId() == SCR_ID_WAP_HOMEPAGE_SCREEN)
	{
		ClearKeyHandler (KEY_LSK, KEY_EVENT_DOWN) ;
		ChangeLeftSoftkey (0, 0) ;

		/* Set RSK to cancel */
		ChangeRightSoftkey (STR_GLOBAL_CANCEL, KEY_EVENT_UP) ;
		SetRightSoftkeyFunction (jWap_priMmi_cancel_handler, KEY_EVENT_UP) ;

		ChangeTitleIcon (IMG_ID_JATAAYU_WAP_ANIMATION_GIF) ;
		draw_title();
	}	
	return (JC_OK) ;
}
Esempio n. 17
0
/*!
 * \brief 清除按键回调
 * \param type 
 * \return 
 */
GBIMELOCAL void GBInputBox_ClearKeyHandler(GBU16 type)
{
#if __MTK__ > 0
	static const struct {
		U16 key;
		U16 type;
	} validKeys[] = 
	{
		{KEY_0, gbKeyNum},
		{KEY_1, gbKeyNum},
		{KEY_2, gbKeyNum},
		{KEY_3, gbKeyNum},
		{KEY_4, gbKeyNum},
		{KEY_5, gbKeyNum},
		{KEY_6, gbKeyNum},
		{KEY_7, gbKeyNum},
		{KEY_8, gbKeyNum},
		{KEY_9, gbKeyNum},
		{KEY_STAR,		gbKeyStar},
		{KEY_POUND,		gbKeyPound},
		{KEY_UP_ARROW,	gbKeyArrow},
		{KEY_DOWN_ARROW,gbKeyArrow},
		{KEY_RIGHT_ARROW,gbKeyArrow},
		{KEY_LEFT_ARROW,gbKeyArrow},
		{KEY_ENTER,		gbKeyOK},
	};

	int i;
	U16 keyType;
	
    for(i = 0; i < sizeof(validKeys) / sizeof(validKeys[0]); i++)
	{
		if(validKeys[i].type & type)
		{
			for(keyType = 0; keyType < MAX_KEY_TYPE; keyType++)
			{
				ClearKeyHandler(validKeys[i].key, keyType);
			}
		}
	}
#endif
}
Esempio n. 18
0
 /***************************************************************************
 * All Local Function Definitions
 ***************************************************************************/
void jWap_endDispHandler (ST_BE_END_PAGE_INFO* pstCallbackInfo)
{
	mmi_trace (1, "JDD_LOG: jWap_endDispHandler rCode [%X], eStatus [%d], rPageStatusCode [%X], bRequestPending [%d]",
		-pstCallbackInfo->rCode, pstCallbackInfo->eStatus,
		-pstCallbackInfo->rPageStatusCode, pstCallbackInfo->bRequestPending) ;

	/* See whether Authorization Info is set */
	if (g_pstJWapAppInfo->pstFetchReq)
	{
		DisplayPopupCallBack((PU8)GetString(STR_ID_WAP_AUTHORIZATION), IMG_GLOBAL_INFO, 1, \
				3000, 1, jWap_showAuthUserNameScreen); //Last argument is tone id. 1 = ERROR tone
	}
	else if (!pstCallbackInfo->stNavg.bBackNavigation && GetActiveScreenId() == SCR_ID_WAP_HOMEPAGE_SCREEN)
	{		
		/* This is the first page. Remove LSK */
		ClearKeyHandler (KEY_RSK, KEY_EVENT_DOWN) ;
		ChangeRightSoftkey (0, 0) ;

		ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0) ;
		SetLeftSoftkeyFunction (jWap_options_handler, KEY_EVENT_UP) ;
		
		ChangeTitleIcon (IMG_ID_JATAAYU_WAP_END_ANIMATION_GIF) ;
		draw_title () ;
	}
	else if(GetActiveScreenId() == SCR_ID_WAP_HOMEPAGE_SCREEN)
	{
		/* There are more than 1 page. Set to "Back"  */
		ChangeRightSoftkey (STR_GLOBAL_BACK, 0) ;
		SetRightSoftkeyFunction (jWap_back, KEY_EVENT_UP);

		ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0) ;
		SetLeftSoftkeyFunction (jWap_options_handler, KEY_EVENT_UP) ;		
		
		ChangeTitleIcon (IMG_ID_JATAAYU_WAP_END_ANIMATION_GIF) ;
		draw_title () ;
	}	
}
Esempio n. 19
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
	}
}
Esempio n. 20
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_new_push_msg_ind_on_idlescreen
 * DESCRIPTION
 *  Entry Function to display screen for push message arrived indication
 *  on idle-screen.
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_new_push_msg_ind_on_idlescreen(void)   /* added by puneet */
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    S8 buf[4] = {0};
    S8 pOutBuffer[8] = {0};
    S8 message_string[40] = {0};
    U32 brw_total_msg_count = 0;
    U32 brw_unread_msg_count = 0;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    mmi_brw_get_push_statistics(&brw_total_msg_count, &brw_unread_msg_count);

    if (SCR_ID_BRW_NEW_PUSH_MESSAGE_IND == GetActiveScreenId())
    {
        DeleteNHistory(1);
    }

    if (0 == brw_unread_msg_count)
    {
        DisplayIdleScreen();
        return;
    }

    if (brw_unread_msg_count < 10)
    {
        sprintf(buf, "%01d", brw_unread_msg_count);
    }
    else
    {
        sprintf(buf, "%02d", brw_unread_msg_count);
    }

    mmi_asc_to_ucs2(pOutBuffer, buf);
    mmi_ucs2cpy((S8*) message_string, pOutBuffer);
    mmi_ucs2cat((S8*) message_string, " ");
    mmi_ucs2cat((S8*) message_string, GetString(STR_ID_BRW_SERVICE_MESSAGE_RCVD));

    EntryNewScreen(SCR_ID_BRW_NEW_PUSH_MESSAGE_IND, NULL, mmi_brw_new_push_msg_ind_on_idlescreen, NULL);
    ShowStatusIcon(STATUS_ICON_WAP);

    if (0 == g_keylock_context.gKeyPadLockFlag)
    {
        /*
         * ShowCategory154Screen(
         * 0,
         * 0,
         * STR_ID_BRW_READ,
         * IMG_GLOBAL_YES,
         * STR_GLOBAL_BACK,
         * IMG_GLOBAL_BACK,
         * (PU8) message_string,
         * 0,
         * IMG_NEW_MESSAGE_NOTIFICATION_MSG,
         * NULL);
         */

        /* Modified by vikas lal - 29032007 Category 154 will be replaced(By Category 66) here for text wraping */
        ShowCategory66Screen(
            0,
            0,
            STR_ID_BRW_READ,
            IMG_GLOBAL_YES,
            STR_GLOBAL_BACK,
            IMG_GLOBAL_BACK,
            (PU8) message_string,
            IMG_NEW_MESSAGE_NOTIFICATION_MSG,
            NULL);

        g_mmi_brw_cntx.push_msg_rcvd_flag = MMI_FALSE;

        if (1 == brw_unread_msg_count)
        {
            SetLeftSoftkeyFunction(mmi_brw_read_arrived_push_message, KEY_EVENT_UP);
        }
        else
        {
            SetLeftSoftkeyFunction(mmi_brw_entry_service_inbox, KEY_EVENT_UP);
        }

        SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
    }
    else    /* Keypad is locked */
    {
        extern void EntryScrAfterPessingRSK(void);

#if defined(__MMI_KEYPAD_LOCK_PROMPT_TEXT__)
        extern void EntryScrKeyPadLockOnPessingAnyKey(void);
#endif

        /*
         * ShowCategory154Screen(
         * 0,
         * 0,
         * g_keylock_context.KeyLockLSKStringID,
         * g_keylock_context.KeyLockLSKIconID,
         * g_keylock_context.KeyLockRSKStringID,
         * g_keylock_context.KeyLockRSKIconID,
         * (PU8) message_string,
         * 0,
         * IMG_NEW_MESSAGE_NOTIFICATION_MSG,
         * NULL);
         */
        /* Modified by vikas lal - 29032007 Category 154 will be replaced(By Category 66) here for text wraping */
        ShowCategory66Screen(
            0,
            0,
            g_keylock_context.KeyLockLSKStringID,
            g_keylock_context.KeyLockLSKIconID,
            g_keylock_context.KeyLockRSKStringID,
            g_keylock_context.KeyLockRSKIconID,
            (PU8) message_string,
            IMG_NEW_MESSAGE_NOTIFICATION_MSG,
            NULL);

#if defined(__MMI_KEYPAD_LOCK_PROMPT_TEXT__)
        SetGroupKeyHandler(
            EntryScrKeyPadLockOnPessingAnyKey,
            (PU16) PresentAllKeys,
            (U8) TOTAL_KEYS,
            (U16) KEY_EVENT_DOWN);
#endif /* defined(__MMI_KEYPAD_LOCK_PROMPT_TEXT__) */

#ifdef __MMI_TOUCH_SCREEN__

#ifdef __MMI_KEYPAD_LOCK_PROMPT_TEXT__
#ifdef __MMI_KEYPAD_LOCK_PATTERN_1__
        SetRightSoftkeyFunction(EntryScrKeyPadLockOnPessingAnyKey, KEY_EVENT_DOWN);
#endif
#ifdef __MMI_KEYPAD_LOCK_PATTERN_2__
        SetLeftSoftkeyFunction(EntryScrKeyPadLockOnPessingAnyKey, KEY_EVENT_DOWN);
#endif
#else /* __MMI_KEYPAD_LOCK_PROMPT_TEXT__ */
        ClearKeyHandler(KEY_LSK, KEY_EVENT_DOWN);
        ClearKeyHandler(KEY_LSK, KEY_EVENT_UP);
        ClearKeyHandler(KEY_RSK, KEY_EVENT_DOWN);
        ClearKeyHandler(KEY_RSK, KEY_EVENT_UP);
#endif /* __MMI_KEYPAD_LOCK_PROMPT_TEXT__ */
        SetKeyHandler(EntryScrAfterPessingRSK, KEY_SEND, KEY_EVENT_DOWN);

#else /* __MMI_TOUCH_SCREEN__ */

#ifdef __MMI_KEYPAD_LOCK_PATTERN_1__
        SetRightSoftkeyFunction(EntryScrAfterPessingRSK, KEY_EVENT_DOWN);
#endif
#ifdef __MMI_KEYPAD_LOCK_PATTERN_2__
        SetLeftSoftkeyFunction(EntryScrAfterPessingRSK, KEY_EVENT_DOWN);
#endif

#endif /* __MMI_TOUCH_SCREEN__ */

        ClearKeyHandler(KEY_END, KEY_EVENT_DOWN);
#ifdef __MMI_TOUCH_SCREEN__
        mmi_idle_pen_block();
#endif
    }
}