/***************************************************************************** * 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 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); }
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 @@@") ; }
/***************************************************************************** * FUNCTION * mmi_idle_highlight_dial_pad_option_dial * DESCRIPTION * * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_idle_highlight_dial_pad_option_dial(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ #if defined(__MMI_WLAN_FEATURES__) && defined(__MMI_VOIP__) switch (mmi_netset_get_active_preferred_mode()) { case P_WLAN_ONLY: ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK); SetLeftSoftkeyFunction(mmi_idle_entry_dial_voip_call, KEY_EVENT_UP); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); break; case P_GSM_PREFERRED: case P_WLAN_PREFERRED: ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK); SetLeftSoftkeyFunction(mmi_idle_entry_dial_selection, KEY_EVENT_UP); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); case P_GSM_ONLY: default: MMI_ASSERT(0); /* shall not enter this in GSM only mode */ break; } #else /* defined(__MMI_WLAN_FEATURES__) && defined(__MMI_VOIP__) */ ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK); SetLeftSoftkeyFunction(mmi_idle_entry_dial_selection, KEY_EVENT_UP); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); #endif /* defined(__MMI_WLAN_FEATURES__) && defined(__MMI_VOIP__) */ }
/************************************************************** 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; }
/***************************************************************************** * FUNCTION * mmi_brw_address_list_enter_url_editor_done_option_highlight_hdlr * DESCRIPTION * Highlight handler of Enter Address DeleteAll Menu item. * Register key handlers. * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_brw_address_list_enter_url_editor_done_option_highlight_hdlr(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK); SetLeftSoftkeyFunction(mmi_brw_address_list_add_item, KEY_EVENT_UP); }
/************************************************************** FUNCTION NAME : HighlightCALLSETCallBarring(void) PURPOSE : highlite handler for call barring menu item INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void **************************************************************/ void HighlightCALLSETCallBarring(void) { /* Change left/right soft key icon and label */ ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); ChangeRightSoftkey(STR_GLOBAL_BACK,IMG_GLOBAL_BACK); /* set the left/right soft key functions handlers */ SetLeftSoftkeyFunction (EntryCALLSETBarringMain,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(EntryCALLSETBarringMain, KEY_RIGHT_ARROW, KEY_EVENT_DOWN); return; }
/***************************************************************************** * FUNCTION * mmi_brw_address_list_delete_all_highlight_hdlr * DESCRIPTION * Highlight handler of Enter Address DeleteAll Menu item. * Register key handlers. * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_brw_address_list_delete_all_highlight_hdlr(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK); SetLeftSoftkeyFunction(mmi_brw_address_list_delete_all_confirm, KEY_EVENT_UP); }
/***************************************************************************** * FUNCTION * mmi_brw_address_list_set_as_homepage_highlight_hdlr * DESCRIPTION * Highlight handler of Enter Address set as homepage Menu item. * Register key handlers * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_brw_address_list_set_as_homepage_highlight_hdlr(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK); SetLeftSoftkeyFunction(mmi_brw_address_list_set_as_homepage, KEY_EVENT_UP); }
/***************************************************************************** * FUNCTION * mmi_brw_address_list_send_address_highlight_hdlr * DESCRIPTION * Highlight handler of Enter Address to send the URL to some other device * Register key handlers * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_brw_address_list_send_address_highlight_hdlr(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK); SetLeftSoftkeyFunction(mmi_brw_address_list_pre_entry_send_address, KEY_EVENT_UP); SetKeyHandler(mmi_brw_address_list_pre_entry_send_address, KEY_RIGHT_ARROW, KEY_EVENT_DOWN); }
/*************************************************************************** * 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 () ; } }
/************************************************************** FUNCTION NAME : HighlightScrEditFDL(void) PURPOSE : Highlight Edit option INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void Author : Vanita Jain **************************************************************/ void HighlightScrEditFDL() { ChangeLeftSoftkey(STR_GLOBAL_OK, 0); ChangeRightSoftkey(STR_GLOBAL_BACK,0); SetKeyHandler(EntrySECSETFDNDetails, KEY_RIGHT_ARROW, KEY_EVENT_DOWN); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); SetLeftSoftkeyFunction(EntrySECSETFDNDetails,KEY_EVENT_UP); SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP); pfnUnicodeStrcpy((S8*)gpFDLBDLContext->FDLBDLName,(S8*)gpFDLBDLContext->FDLBDLEntries[gpFDLBDLContext->HighlightedFDN].alpha_id.name); pfnUnicodeStrcpy((S8*)gpFDLBDLContext->FDLBDLNumber,(S8*)gpFDLBDLContext->FDLBDLEntries[gpFDLBDLContext->HighlightedFDN].tel.number); gpFDLBDLContext->FDNBDNEdit = TRUE ; }
/***************************************************************************** * FUNCTION * mmi_netset_highlight_user_ctrl_plmn * DESCRIPTION * * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_netset_highlight_user_ctrl_plmn(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK); SetLeftSoftkeyFunction(mmi_netset_show_user_ctrl_plmn_list, KEY_EVENT_UP); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); SetKeyHandler(mmi_netset_show_user_ctrl_plmn_list, KEY_RIGHT_ARROW, KEY_EVENT_DOWN); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); }
/************************************************************** FUNCTION NAME : HighlightInputMehtodSetting PURPOSE : highlight handler for input method selection INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void **************************************************************/ void HighlightInputMehtodSetting(void) { /*1 Change left soft key icon and label */ ChangeLeftSoftkey(STR_GLOBAL_OK, 0); /*2 Change right soft key icon and label */ ChangeRightSoftkey(STR_GLOBAL_BACK,0); /* set the left/right soft key functions handlers */ SetLeftSoftkeyFunction(EntryScrPreferedInputMethodList,KEY_EVENT_UP); SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP); /* set the left/right arrow key function handlers */ SetKeyHandler(EntryScrPreferedInputMethodList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); return; }
/************************************************************** FUNCTION NAME : HighlighSrcAddFDL(void) PURPOSE : add option INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void Author : Vanita Jain **************************************************************/ void HighlighSrcAddFDL() { /*1 Change left soft key icon and label */ ChangeLeftSoftkey(STR_GLOBAL_OK, 0); /*2 Change right soft key icon and label */ ChangeRightSoftkey(STR_GLOBAL_BACK,0); SetKeyHandler(EntrySECSETFDNDetails, KEY_RIGHT_ARROW, KEY_EVENT_DOWN); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); SetLeftSoftkeyFunction(EntrySECSETFDNDetails,KEY_EVENT_UP); SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP); 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); }
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) ; }
/***************************************************************************** * FUNCTION * mmi_umms_highlight_save_image_object * DESCRIPTION * Highlight Handler for the Image Option in Save Objects * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_umms_highlight_save_image_object(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ mmi_umms_set_menu_id(MENU_ID_UMMS_SAVE_OBJECT_OPTIONS_SAVE_IMAGE_AS); ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); SetLeftSoftkeyFunction(mmi_umms_entry_save_media_as, KEY_EVENT_UP); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); SetKeyHandler(mmi_umms_entry_save_media_as, KEY_RIGHT_ARROW, KEY_EVENT_DOWN); }
/***************************************************************************** * FUNCTION * mmi_idle_highlight_dial_pad_option_input * DESCRIPTION * * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_idle_highlight_dial_pad_option_input(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ /* change left and right soft key */ ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK); /* set left and right soft key handler */ SetLeftSoftkeyFunction(EntryAPRequiredInputMethodScreen, KEY_EVENT_UP); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); RegisterInputMethodScreenCloseFunction(mmi_voip_go_back_2_history); }
/***************************************************************************** * FUNCTION * mmi_idle_highlight_dial_pad_option_mode * DESCRIPTION * * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_idle_highlight_dial_pad_option_mode(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ /* change left and right soft key */ ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK); /* set left and right soft key handler */ SetLeftSoftkeyFunction(mmi_netset_entry_change_dial_mode, KEY_EVENT_UP); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); /* set key handler for left and right arrow key */ SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); }
/***************************************************************************** * FUNCTION * mmi_nfc_entry_main_menu * DESCRIPTION * This function is Main menu hilight handler * PARAMETERS * void * * * RETURNS * void *****************************************************************************/ void mmi_nfc_main_hilight_handler(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); SetLeftSoftkeyFunction(mmi_nfc_entry_main_menu, KEY_EVENT_UP); ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK); //SetRightSoftkeyFunction(mmi_frm_scrn_close_active_id, KEY_EVENT_UP); ChangeCenterSoftkey(0, IMG_GLOBAL_COMMON_CSK); SetCenterSoftkeyFunction(mmi_nfc_entry_main_menu, KEY_EVENT_UP); }