/***************************************************************************** * FUNCTION * HighlightGPRSCount * DESCRIPTION * * PARAMETERS * void * RETURNS * void *****************************************************************************/ void HighlightGPRSCount(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ #ifdef __MMI_GPRS_UNIT_TEST__ gprsTotalSent = 0; gprsTotalReceived = 1025; gprsLastSent = 1048533; gprsLastReceived = 11048576; SetKeyHandler(EntryScrGPRSCounter, KEY_RIGHT_ARROW, KEY_EVENT_DOWN); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); SetLeftSoftkeyFunction(EntryScrGPRSCounter, KEY_EVENT_UP); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); #else /* __MMI_GPRS_UNIT_TEST__ */ SetKeyHandler(GetGPRSCountersRequest, KEY_RIGHT_ARROW, KEY_EVENT_DOWN); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); SetLeftSoftkeyFunction(GetGPRSCountersRequest, KEY_EVENT_UP); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); #endif /* __MMI_GPRS_UNIT_TEST__ */ return; }
/***************************************************************************** * FUNCTION * HighlightBMIMenu * DESCRIPTION * Highlight handler of BMI menu item. * Register key handlers. * PARAMETERS * None. * RETURNS * None. * GLOBALS AFFECTED * None *****************************************************************************/ void HighlightBMIMenu(void) { #if 0 SetLeftSoftkeyFunction(EntryBMIWelcomeScreen,KEY_EVENT_UP); SetKeyHandler(EntryBMIWelcomeScreen,KEY_RIGHT_ARROW,KEY_EVENT_DOWN); #else SetLeftSoftkeyFunction(EntryBMIInputScreen ,KEY_EVENT_UP); SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP); SetKeyHandler(EntryBMIInputScreen,KEY_RIGHT_ARROW,KEY_EVENT_DOWN); #endif }
/************************************************************** FUNCTION NAME : HighlightCHISTDeleteAllLogs PURPOSE : Call list option Delete All handler INPUT PARAMETERS : void OUTPUT PARAMETERS : nil RETURNS : void **************************************************************/ void HighlightCHISTDeleteAllLogs( void ) { /* Check if the number of dialed calls is zero or not */ if( chis_p->nDialedCalls != 0 ) { chis_p->isDeleteAll = TRUE; /* dialed calls count is non zero */ /* Change left soft key icon and label */ ChangeLeftSoftkey( STR_GLOBAL_OK, IMG_GLOBAL_OK ); /*3 Register function for left soft key */ SetLeftSoftkeyFunction( EntryCHISTDeleteAllDialedConfirm, KEY_EVENT_UP ); } else if ( chis_p->nMissedCalls != 0 ) { chis_p->isDeleteAll = TRUE; /* missed calls count is non zero */ /* Change left soft key icon and label */ ChangeLeftSoftkey( STR_GLOBAL_OK, IMG_GLOBAL_OK ); /*3 Register function for left soft key */ SetLeftSoftkeyFunction( EntryCHISTDeleteAllMissedConfirm, KEY_EVENT_UP ); } else if ( chis_p->nRecvdCalls != 0 ) { /* recd calls count is non zero */ /* Change left soft key icon and label */ ChangeLeftSoftkey( STR_GLOBAL_OK, IMG_GLOBAL_OK ); /*3 Register function for left soft key */ SetLeftSoftkeyFunction( EntryCHISTDeleteAllRecvdConfirm, KEY_EVENT_UP ); } else if ( chis_p->nRejectedCalls != 0) { /* recd calls count is non zero */ /* Change left soft key icon and label */ ChangeLeftSoftkey( STR_GLOBAL_OK, IMG_GLOBAL_OK ); /*3 Register function for left soft key */ SetLeftSoftkeyFunction( EntryCHISTDeleteAllRejectedConfirm, KEY_EVENT_UP ); } else { /* dialed calls count is zero then disable left soft key */ ChangeLeftSoftkey( 0, 0); } /* Change right soft key icon and label */ ChangeRightSoftkey( STR_GLOBAL_BACK, IMG_GLOBAL_BACK ); /* Register function for right soft key */ SetRightSoftkeyFunction( GoBackHistory, KEY_EVENT_UP ); return; }
void game_simu_highlight(void) { SetLeftSoftkeyFunction(EntryRomList, KEY_EVENT_UP); SetKeyHandler(EntryRomList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN); SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); }
/***************************************************************************** * FUNCTION * mmi_brw_address_list_entry_enter_url * DESCRIPTION * Entry function for full screen editor to enter the url. * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_brw_address_list_entry_enter_url(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ U8 *guiBuffer; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ EntryNewScreen(SCR_ID_BRW_ENTER_URL, NULL, mmi_brw_address_list_entry_enter_url, NULL); guiBuffer = GetCurrGuiBuffer(SCR_ID_BRW_ENTER_URL); /*it saves the current screen as the browser top most screen*/ mmi_brw_set_top_screen_id(); SetHiliteHandler(MENU_ID_BRW_EDITOR_OPTION_DONE, mmi_brw_address_list_enter_url_editor_done_option_highlight_hdlr); ShowCategory5Screen( STR_ID_BRW_ENTER_ADDRESS, GetRootTitleIcon(SERVICES_WAP_MENU_ID), STR_GLOBAL_OPTIONS, 0, STR_GLOBAL_BACK, 0, INPUT_TYPE_ALPHANUMERIC_LOWERCASE | INPUT_TYPE_OVERRIDE_DEFAULT | INPUT_TYPE_USE_ONLY_ENGLISH_MODES, (U8*) g_brw_hist_selected_url, BRW_ADDRESS_LIST_URL_LENGTH, guiBuffer); SetLeftSoftkeyFunction(mmi_brw_editor_entry_option, KEY_EVENT_UP); SetCategory5RightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); }
/***************************************************************************** * FUNCTION * mmi_brw_address_list_scr_highlight_hdlr * DESCRIPTION * Highlight handler for the enter address screen * PARAMETERS * index [IN] * RETURNS * void *****************************************************************************/ void mmi_brw_address_list_scr_highlight_hdlr(S32 index) { g_brw_cntx.index_highlighted_item = index; if(index == 0) { ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); SetLeftSoftkeyFunction(mmi_brw_address_list_pre_entry_enter_url, KEY_EVENT_UP); } else { ChangeLeftSoftkey(STR_GLOBAL_OPTIONS, IMG_GLOBAL_OPTIONS); SetLeftSoftkeyFunction(mmi_brw_address_list_entry_options, KEY_EVENT_UP); SetKeyHandler(mmi_brw_address_list_entry_options, KEY_RIGHT_ARROW, KEY_EVENT_DOWN); } }
/***************************************************************************** * FUNCTION * mmi_SSC_handle_hardware_version * DESCRIPTION * Execute the sofeware version dispaly * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_SSC_handle_hardware_version(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ CHAR strHWVersionNo[(MAX_SW_VER_LEN + 1) * ENCODING_LENGTH]; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ memset(strHWVersionNo, 0, sizeof(strHWVersionNo)); #ifdef __ASCII strcpy(strHWVersionNo, (CHAR*) release_hw_ver()); #endif #ifdef __UCS2_ENCODING mmi_asc_n_to_ucs2(strHWVersionNo, (CHAR*) release_hw_ver(), MAX_SW_VER_LEN); #endif EntryNewScreen(SCR_ENTER_HW_VERSION, NULL, mmi_SSC_handle_hardware_version, NULL); ShowCategory7Screen(SSC_SCR_HW_VERSION_CAPTION_ID, 0, STR_GLOBAL_OK, 0, 0, 0, (PU8) strHWVersionNo, NULL); SetLeftSoftkeyFunction(mmi_idle_display, KEY_EVENT_UP); }
/************************************************************** FUNCTION NAME : EntryCALLSETBarringPass(void) PURPOSE : entry function for call barring passwd INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void **************************************************************/ void EntryCALLSETBarringPass(void ) { U8* guiBuffer; // U8* inputBuffer; EntryNewScreen(SCR_ID_CALLSET_BARRING_PASS, NULL, EntryCALLSETBarringPass, NULL); /* Get current screen info into gui buffer for history purposes*/ guiBuffer = GetCurrGuiBuffer(SCR_ID_CALLSET_BARRING_PASS); // inputBuffer = GetCurrInputBuffer(SCR_ID_CALLSET_BARRING_PASS); if(guiBuffer==NULL) memset( g_callset_cntx_p->SSBarPassOld, 0, sizeof(g_callset_cntx_p->SSBarPassOld)); // else // pfnUnicodeStrcpy((S8*)g_callset_cntx_p->SSBarPassOld, ( S8*)inputBuffer); /* Register input validation function*/ RegisterInputBoxValidationFunction(ScrBarringPasswordaValidation); /* Display Category Screen */ ShowCategory111Screen(STR_GLOBAL_OK, IMG_GLOBAL_OK, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, STR_BARRING_PASSWORD_CAP,INPUT_TYPE_NUMERIC_PASSWORD, (PU8)g_callset_cntx_p->SSBarPassOld, BARR_SIM_PASS_LEN+1, NULL, guiBuffer); /* Register function with left/right softkey */ SetLeftSoftkeyFunction(CallBarrOption,KEY_EVENT_UP); SetCategory111RightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP); g_callset_cntx_p->SSBarPassStep = 0; /* Register Exit handler */ return; }
/***************************************************************************** * FUNCTION * mmi_idle_entry_change_dial_mode * DESCRIPTION * * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_idle_entry_change_dial_mode(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ g_idle_context.DigitScreenDialMode = (g_idle_context.DigitScreenDialMode) ? 0 : 1; /* 0: GSM, 1: WLAN */ sprintf(g_idle_context.DialPadCallBuffer, ""); g_idle_context.IdleScreenDigitKeyCode = -1; IdleScreenDigitHandler(); DeleteScreenIfPresent(IDLE_SCREEN_DIGIT_OPTIONS_ID); DeleteScreenIfPresent(IDLE_SCREEN_DIGIT_HANDLER_ID); DeleteScreenIfPresent(SCR_ID_VOIP_CALL_EDITOR); if (mmi_netset_get_active_preferred_mode() == P_WLAN_PREFERRED || mmi_idle_get_dial_mode() == 0) { /* enter VoIP dialer screen first then change dialer mode to digit dialer */ /* restore RSK/LSK handers because they are changed to disable long press */ SetLeftSoftkeyFunction(mmi_idle_entry_dial_pad_option, KEY_EVENT_UP); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); } }
/***************************************************************************** * FUNCTION * HighlightBMIInlineEditor * DESCRIPTION * Highlight handler of inline editor in input screen. * PARAMETERS * None * RETURNS * None * GLOBALS AFFECTED * None *****************************************************************************/ void HighlightBMIInlineEditor(S32 index) { g_bmi_cntx->CurrHilite = (U8)index; ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); SetLeftSoftkeyFunction(BmiComputeResult,KEY_EVENT_UP); return; }
/***************************************************************************** * 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 }
void I51_mmi_menu_highlight (void) { SetLeftSoftkeyFunction (I51_menu_entry,KEY_EVENT_UP); SetKeyHandler (I51_menu_entry,KEY_RIGHT_ARROW,KEY_EVENT_DOWN); SetRightSoftkeyFunction (GoBackHistory, KEY_EVENT_UP); SetKeyHandler (GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); }
/***************************************************************************** FUNCTION NAME : Draw_MobileEdenScreen PURPOSE :draw Level1. INPUT PARAMETERS : void OUTPUT PARAMETERS : void RETURNS : Entry_MobileEden Entry_SP_Level1 SP_Pre_Entry_Level2 | | | | /Level1/ | /Level2/ | Mobile Paradise | | | | | ->New Style World | | ---->Joke -------->Request -------->Price Explanation ... <----- <----- SP_EDEN_GoBackHistory SP_Level1_GoBackHistory ******************************************************************************/ void Draw_MobileEdenScreen(void) { U16 nStrItemList[5]; U16 nTempStrItemList[5]; int i = 0; U16 nNumofItem = 0; /* Stores no of children in the submenu*/ U8* guiBuffer = NULL; /* Buffer holding history data */ mmi_trace(g_sw_SP,"niej Draw_MobileEdenScreen"); EntryNewScreen(SCR_SP_MOBILE_EDEN, NULL, Draw_MobileEdenScreen, NULL); guiBuffer = GetCurrGuiBuffer(SCR_SP_MOBILE_EDEN); GetSequenceStringIds_Ext(MENU_ID_SP_MOBILE_EDEN,nTempStrItemList); /*in the submenu of MENU_ID_SP_MOBILE_EDEN, the first 3 items support China Telecom, the last item support China Unicom*/ if(sp_network_name == SP_NETWORK_CU) { mmi_trace(g_sw_SP,"niej sp_network_name is SP_NETWORK_CU"); nNumofItem = 1; nStrItemList[0] = nTempStrItemList[3]; // SetLeftSoftkeyFunction(Entry_Fun_Interact_CU,KEY_EVENT_UP); } else if (sp_network_name == SP_NETWORK_CT) { mmi_trace(g_sw_SP,"niej sp_network_name is SP_NETWORK_CT nNumofItem[%d]", nNumofItem); nNumofItem = 3; for(i=0; i<nNumofItem; i++) { nStrItemList[i] = nTempStrItemList[i]; mmi_trace(g_sw_SP,"niej nStrItemList[%d]:[%d]",i, nStrItemList[i]); } RegisterHighlightHandler(ExecuteCurrHiliteHandler); } else { mmi_trace(g_sw_SP,"niej sp_network_name[%d] can't support this function", sp_network_name); } SetParentHandler(MENU_ID_SP_MOBILE_EDEN); mmi_trace(g_sw_SP,"niej ShowCategory52Screen "); ShowCategory52Screen(STR_MOBILE_EDEN,MAIN_MENU_TITLE_FUNANDGAMES_ICON, STR_GLOBAL_OK, IMG_GLOBAL_OK, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, nNumofItem,nStrItemList,(PU16)gIndexIconsImageList, NULL, 0,0,guiBuffer); if(sp_network_name == SP_NETWORK_CU) { SetLeftSoftkeyFunction(Entry_Fun_Interact_CU,KEY_EVENT_UP); } SetRightSoftkeyFunction(SP_EDEN_GoBackHistory,KEY_EVENT_UP); SetKeyHandler(SP_EDEN_GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); }
/***************************************************************************** FUNCTION NAME : void Entry_SP_Level1(void) PURPOSE : From level1 go to next screen . The association between entry function and menu as following Entry_MobileEden Entry_SP_Level1 SP_Pre_Entry_Level2 | | | | /Level1/ | /Level2/ | Mobile Paradise | | | ->New Style World | ---->Joke -------->Request -------->Price Explanation ... <----- <----- SP_EDEN_GoBackHistory SP_Level1_GoBackHistory eg. when into Mobile Paradise ->New Style World->, this function will be called. INPUT PARAMETERS : void OUTPUT PARAMETERS : void RETURNS : void ******************************************************************************/ void Entry_SP_Level1(void) { U16 nStrItemList[SP_MAX_SUB_MENUS]; /* Stores the strings id of submenus returned */ U16 nNumofItem; /* Stores no of children in the submenu*/ U8* guiBuffer; /* Buffer holding history data */ mmi_trace(g_sw_SP,"niej Entry_SP_Level1 sp_level1_scr.sp_scr_id[%d],sp_level1_scr.sp_menu_id[%d]", sp_level1_scr.sp_scr_id, sp_level1_scr.sp_menu_id); EntryNewScreen(sp_level1_scr.sp_scr_id, NULL, Entry_SP_Level1, NULL); guiBuffer = GetCurrGuiBuffer(sp_level1_scr.sp_scr_id); nNumofItem = GetNumOfChild(sp_level1_scr.sp_menu_id); GetSequenceStringIds_Ext(sp_level1_scr.sp_menu_id, nStrItemList); SetParentHandler(sp_level1_scr.sp_menu_id); RegisterHighlightHandler (SP_Level_2_Get_Index); ShowCategory52Screen(GetStringIdOfItem(sp_level1_scr.sp_menu_id), MAIN_MENU_TITLE_FUNANDGAMES_ICON, STR_GLOBAL_OK, IMG_GLOBAL_OK, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, nNumofItem,nStrItemList,(PU16)gIndexIconsImageList, NULL, 0,0,guiBuffer); SetLeftSoftkeyFunction (SP_Pre_Entry_Level2, KEY_EVENT_UP); SetKeyHandler (SP_Pre_Entry_Level2, KEY_RIGHT_ARROW, KEY_EVENT_DOWN); SetRightSoftkeyFunction(SP_Level1_GoBackHistory,KEY_EVENT_UP); SetKeyHandler(SP_Level1_GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); }
/***************************************************************************** FUNCTION NAME : SP_Entry_Make_Call PURPOSE :when the sp service is IVR, question call or don't call. INPUT PARAMETERS : void OUTPUT PARAMETERS : void RETURNS : ******************************************************************************/ void SP_Entry_Make_Call (void) { S8 textbuf[SP_CODE_LENGTH*ENCODING_LENGTH]; SP_SMS_Service_Code_Struct sp_level2_service_code; mmi_trace(g_sw_SP,"niej SP_Entry_Make_Call"); SP_Get_Level2_Service_Code(sp_level1_scr.sp_menu_id, sp_level1_scr.sp_menu_id+sp_level_2_index+1, &sp_level2_service_code); EntryNewScreen(SCR_ID_MSG_CONFIRMATION, Sp_Exit_Make_Call, NULL, NULL); memset(textbuf, 0, SP_CODE_LENGTH*ENCODING_LENGTH); memset(g_msg_cntx.smsPhoneNumber, 0, (MAX_DIGITS+1)*ENCODING_LENGTH); AnsiiToUnicodeString(textbuf, (S8*)sp_level2_service_code.Code_Subscribe); mmi_trace(g_sw_SP, "niej Code_Subscribe[%s]", sp_level2_service_code.Code_Subscribe); pfnUnicodeStrcpy(g_msg_cntx.smsPhoneNumber, textbuf); mmi_trace(1, "g_msg_cntx.smsPhoneNumber[%s]", g_msg_cntx.smsPhoneNumber); ShowCategory154Screen(0, 0, STR_GLOBAL_YES, IMG_SMS_COMMON_NOIMAGE, STR_GLOBAL_NO, IMG_SMS_COMMON_NOIMAGE, (PU8)get_string_lang (STR_GLOBAL_DIAL, SSC_SCHINESE), (PU8)g_msg_cntx.smsPhoneNumber, IMG_GLOBAL_QUESTION, NULL); SetLeftSoftkeyFunction (Sp_Make_Call, KEY_EVENT_UP); SetRightSoftkeyFunction (GoBackHistory, KEY_EVENT_UP); playRequestedTone(WARNING_TONE); }
void HightlightShowMTPNPHelpInfo(void) { change_left_softkey(STR_GLOBAL_OK, 0); redraw_left_softkey(); SetLeftSoftkeyFunction(EntryShowMTPNPHelpInfo, KEY_EVENT_UP); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); }
/************************************************************** FUNCTION NAME : EntryCALLSETBarringNewPass(void ) PURPOSE : entry function for call barring new passwd screen INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void **************************************************************/ void EntryCALLSETBarringNewPass(void) { U8* guiBuffer; // U8 * inputBuffer; EntryNewScreen(SCR_ID_CALLSET_BARRING_NEW_PASS, NULL, EntryCALLSETBarringNewPass, NULL); /* Get current screen info into gui buffer for history purposes*/ guiBuffer = GetCurrGuiBuffer(SCR_ID_CALLSET_BARRING_NEW_PASS); // inputBuffer = GetCurrInputBuffer(SCR_ID_CALLSET_BARRING_NEW_PASS); if( guiBuffer == NULL) memset( g_callset_cntx_p->SSBarPassNew, 0, sizeof(g_callset_cntx_p->SSBarPassNew)); // else // pfnUnicodeStrcpy((S8*)g_callset_cntx_p->SSBarPassNew, ( S8*)inputBuffer); /* Register input validation function*/ RegisterInputBoxValidationFunction(ScrBarringPasswordaValidation); /* display the corresponding screen */ ShowCategory111Screen(STR_GLOBAL_OK, IMG_GLOBAL_OK, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, STR_NEW_BARRINGPASS_CAP, INPUT_TYPE_NUMERIC_PASSWORD, (PU8)g_callset_cntx_p->SSBarPassNew, BARR_SIM_PASS_LEN+1, NULL, guiBuffer); g_callset_cntx_p->SSBarPassStep = 2; /* Set the left/right soft key funtions */ SetLeftSoftkeyFunction(EntryCALLSETBarringCfrmPass,KEY_EVENT_UP); SetCategory111RightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP); return; }
/***************************************************************************** * FUNCTION * DESCRIPTION * PARAMETERS * RETURNS *****************************************************************************/ void mmi_java_entry_cb_terminate_dialog_internal(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ U8 *guiBuffer; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ EntryNewScreen(SCR_JAVA_TERMINATE_DIALOG2, NULL, mmi_java_entry_cb_terminate_dialog_internal, NULL); guiBuffer = GetCurrGuiBuffer(SCR_JAVA_TERMINATE_DIALOG2); ShowCategory74Screen( STR_SCR_JAVA_CAPTION, mmi_java_get_title_icon(), STR_GLOBAL_YES, IMG_GLOBAL_YES, STR_GLOBAL_NO, IMG_GLOBAL_NO, (PU8) cb_terminate_string, mmi_ucs2strlen((PS8) cb_terminate_string), NULL); SetLeftSoftkeyFunction(mmi_java_cb_terminate_dialog_yes_hdlr, KEY_EVENT_UP); SetRightSoftkeyFunction(mmi_java_cb_terminate_dialog_no_hdlr, KEY_EVENT_UP); }
/***************************************************************************** * FUNCTION * mmi_java_entry_reset_rms_res * DESCRIPTION * Reset RMS Confirm screen Entry Function * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_java_entry_reset_rms_res(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ U8 *guiBuffer; U8 *str; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ EntryNewScreen(SCR_JAVA_RESET_RMS_CONFIRM, NULL, mmi_java_entry_reset_rms_res, NULL); /* playRequestedTone(WARNING_TONE); */ guiBuffer = GetCurrGuiBuffer(SCR_JAVA_RESET_RMS_CONFIRM); //mmi_asc_to_ucs2 ((PS8)gJavaPrintableStr, //"Do you want the new version application to be able to use the information stored by the old version application?"); str = (U8*) get_string(STR_JAVA_RESET_RMS_ASK); ShowCategory74Screen( STR_JAVA_KEEP_RMS, mmi_java_get_title_icon(), STR_GLOBAL_YES, IMG_GLOBAL_YES, STR_GLOBAL_NO, IMG_GLOBAL_NO, (PU8) str, mmi_ucs2strlen((PS8) str), NULL); SetLeftSoftkeyFunction(mmi_java_send_reset_rms_res_yes, KEY_EVENT_UP); SetRightSoftkeyFunction(mmi_java_send_reset_rms_res_no, KEY_EVENT_UP); }
/***************************************************************************** * FUNCTION * mmi_java_entry_force_terminate_dialog * DESCRIPTION * The entry function to ask if user real want to terminate java? (can not pause) * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_java_entry_force_terminate_dialog(void) /* called by JAVA adaptor, also in mmi task */ { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ EntryNewScreen(SCR_JAVA_FORCE_TERMINATE_DIALOG, NULL, mmi_java_entry_force_terminate_dialog, NULL); ShowCategory74Screen( STR_JAVA_TERMINATE, mmi_java_get_title_icon(), STR_GLOBAL_YES, IMG_GLOBAL_YES, STR_GLOBAL_NO, IMG_GLOBAL_NO, (PU8) GetString(STR_JAVA_FORCE_TERMINATE), mmi_ucs2strlen(GetString(STR_JAVA_FORCE_TERMINATE)), NULL); SetLeftSoftkeyFunction(mmi_java_force_terminate_dialog_yes_hdlr, KEY_EVENT_UP); SetRightSoftkeyFunction(mmi_java_force_terminate_dialog_no_hdlr, KEY_EVENT_UP); }
/***************************************************************************** * FUNCTION * HighlightCHISTDeleteAllRecvd * DESCRIPTION * Recd call list option Delete All handler * NA * * PARAMETERS * void * RETURNS * void *****************************************************************************/ void HighlightCHISTDeleteAllRecvd(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ chis_p->isDeleteAll = FALSE; /* Check if the number of received calls is zero or not */ if (chis_p->nRecvdCalls != 0) { /* received calls count is non zero */ /* Change left soft key icon and label */ ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); /* Register function for left soft key */ SetLeftSoftkeyFunction(EntryCHISTDeleteAllRecvdConfirm, KEY_EVENT_UP); } else { /* received calls count is zero then disable left soft key */ ChangeLeftSoftkey(0, 0); } /* Change right soft key icon and label */ ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK); /* Register function for right soft key */ SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); return; }
void EmPingStart(S8 *AscAddr ) { U32 i; EntryNewScreen(EM_GPRS_PING_MENUID, ExitEmPingRspPage, NULL, NULL); EmPingCnt=0; memset( subMenuData, 0, sizeof(subMenuData)); for(i=0; i<MAX_SUB_MENUS; i++) subMenuDataPtrs[i] = subMenuData[i]; ShowCategory6Screen (EM_GPRS_PING_TEXT, (U16)0, (U16)NULL, (U16)0, STR_GLOBAL_BACK, (U16)0, 0, (PU8*)subMenuDataPtrs,NULL, 0, NULL); SetLeftSoftkeyFunction (NULL, KEY_EVENT_UP); SetRightSoftkeyFunction (EmPingStop, KEY_EVENT_UP); EmPingStartAct(AscAddr); #ifdef MMI_ON_HARDWARE_P SetProtocolEventHandler( EmPingSocNotify, MSG_ID_APP_SOC_NOTIFY_IND ); #endif }
void mmi_snowfish_profile_highlight_app(void) { SetLeftSoftkeyFunction(mmi_snowfish_profile_entry_app_screen,KEY_EVENT_UP); SetKeyHandler(mmi_snowfish_profile_entry_app_screen, KEY_RIGHT_ARROW,KEY_EVENT_DOWN); SetKeyHandler(GoBackHistory,KEY_LEFT_ARROW,KEY_EVENT_DOWN); SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP); }
void Highlight_SP_MenuItem(void (*func)(void)) { ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); ChangeRightSoftkey(STR_GLOBAL_BACK,IMG_GLOBAL_BACK); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); SetLeftSoftkeyFunction(func,KEY_EVENT_UP); SetKeyHandler(func, KEY_RIGHT_ARROW,KEY_EVENT_DOWN); SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP); }
/************************************************************** FUNCTION NAME : HighlightCHISTResetCallLog PURPOSE : Function called when reset is highlited INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void **************************************************************/ void HighlightCHISTResetCallLog( void ) { /* Set the left/right arrow key functions */ SetKeyHandler( EntryCHISTResetCallLog,KEY_RIGHT_ARROW, KEY_EVENT_DOWN); /* Set the left and right soft key functions */ SetLeftSoftkeyFunction( EntryCHISTResetCallLog, KEY_EVENT_UP ); SetRightSoftkeyFunction( GoBackHistory, KEY_EVENT_UP ); return; }
/************************************************************** 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; }
void mmiapi_inputBox_highlighthanlder (S32 index) { switch(index) { case 0: SetLeftSoftkeyFunction (CancelGotoJavaSreen, KEY_EVENT_UP ) ; break; case 1: SetLeftSoftkeyFunction (CancelGotoJavaSreen, KEY_EVENT_UP ) ; break; case 2: SetLeftSoftkeyFunction (JavaEntryInputMethodScreen, KEY_EVENT_UP ) ; break ; } }
/************************************************************** FUNCTION NAME : EntrySECSETFDNDelConfirm(void) PURPOSE : Entry fn for Confirmation of Delete. INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void Author : Vanita Jain **************************************************************/ void EntrySECSETFDNDelConfirm() { DisplayConfirm( STR_GLOBAL_YES, IMG_GLOBAL_YES, STR_GLOBAL_NO, IMG_GLOBAL_NO, get_string(STR_DELETE_QUERY_MSG),IMG_GLOBAL_QUESTION, WARNING_TONE); g_SecuritySetupContext.VerifyPassSuccessCallBack = SECSETDelFdlReq; SetLeftSoftkeyFunction (SECSETGetPIN2StatusReq,KEY_EVENT_UP); SetRightSoftkeyFunction (GoToFDLList,KEY_EVENT_UP); }
/************************************************************** 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); }
void HighlightCALLSETCallBarringIncoming(void) { /* Change right soft key icon and label */ SetLeftSoftkeyFunction (EntryCALLSETBarringIn,KEY_EVENT_UP); SetRightSoftkeyFunction (GoBackHistory,KEY_EVENT_UP); /* set the left/right arrow key function handlers */ SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN); SetKeyHandler(EntryCALLSETBarringIn, KEY_RIGHT_ARROW, KEY_EVENT_DOWN); return; }