/************************************************************** FUNCTION NAME : EntryCALLSETBarringOption(void) PURPOSE : entry function for call barring option menu INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void **************************************************************/ void EntryCALLSETBarringOption(void) { //micha1229 // U16 nDispAttribute; /* Stores display attribue */ U8* guiBuffer; /* Buffer holding history data */ U16 nNumofItem; U16 nStrItemList[MAX_SUB_MENUS]; EntryNewScreen(SCR_ID_CALLSET_BARRING_OPTION, NULL, EntryCALLSETBarringOption, NULL); /* Get current screen info into gui buffer for history purposes*/ guiBuffer = GetCurrGuiBuffer(SCR_ID_CALLSET_BARRING_OPTION); /* Retrieve no of child of menu item to be displayed */ nNumofItem = GetNumOfChild(MENU_BARRING_OPTION); /* Get attribute of menu to be displayed */ // nDispAttribute = GetDispAttributeOfItem(MENU_BARRING_OPTION); /* Retrieve string ids in sequence of given menu item to be displayed */ GetSequenceStringIds(MENU_BARRING_OPTION, nStrItemList); /* Set current parent id*/ SetParentHandler(MENU_BARRING_OPTION ); /* Register highlight handler to be called in menu screen */ RegisterHighlightHandler(ExecuteCurrHiliteHandler); /* Display Category Screen */ ShowCategory15Screen( STR_MENU_BARRING_OPTION, MAIN_MENU_TITLE_SETTINGS_ICON, STR_GLOBAL_OK, IMG_GLOBAL_OK, STR_GLOBAL_BACK, IMG_GLOBAL_BACK,nNumofItem, nStrItemList, (U16 *)gIndexIconsImageList,1,0,guiBuffer); /* Register function with right softkey */ SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN); /* Register Exit handler */ return; }
/***************************************************************************** * FUNCTION * mmi_netset_entry_user_ctrl_plmn_options * DESCRIPTION * * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_netset_entry_user_ctrl_plmn_options(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ PU8 guiBuffer; U16 nStrItemList[2]; /* Stores the strings id of submenus returned */ U16 nNumofItem; /* Stores no of children in the submenu */ U16 ItemIcons[2]; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ EntryNewScreen(SCR_ID_NETSET_USER_CTRL_PLMN_OPTIONS, NULL, mmi_netset_entry_user_ctrl_plmn_options, NULL); guiBuffer = GetCurrGuiBuffer(SCR_ID_NETSET_USER_CTRL_PLMN_OPTIONS); nNumofItem = GetNumOfChild(MENU_ID_NETSET_USER_CTRL_PLMN_OPTIONS); ItemIcons[0] = IMG_GLOBAL_L1; ItemIcons[1] = IMG_GLOBAL_L2; GetSequenceStringIds(MENU_ID_NETSET_USER_CTRL_PLMN_OPTIONS, nStrItemList); SetParentHandler(MENU_ID_NETSET_USER_CTRL_PLMN_OPTIONS); RegisterHighlightHandler(mmi_netset_exec_options_highlight_handler); if (gUserCtrlPlmnList.PlmnListSize == 0) { nNumofItem = 1; } else if (gUserCtrlPlmnList.PlmnListSize == MAX_USER_CTRL_PLMN) { nNumofItem = 1; nStrItemList[0] = nStrItemList[1]; } else { /* keep 2 items */ } ShowCategory15Screen( STR_GLOBAL_OPTIONS, MAIN_MENU_TITLE_SETTINGS_ICON, STR_GLOBAL_OK, IMG_GLOBAL_OK, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, nNumofItem, nStrItemList, ItemIcons, LIST_MENU, 0, guiBuffer); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); }
/***************************************************************************** * FUNCTION * EntryScrGPRSCounter * DESCRIPTION * * PARAMETERS * void * RETURNS * void *****************************************************************************/ void EntryScrGPRSCounter(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ U16 nStrItemList[MAX_SUB_MENUS]; /* Stores the strings id of submenus returned */ U8 *guiBuffer; /* Buffer holding history data */ U16 nNumofItem; /* Stores no of children in the submenu */ // U16 nDispAttribute; /* Stores display attribue */ U8 *u8GPRSCount[MAX_SUB_MENUS]; /* sms counters for display hint popups */ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ /* Call Exit Handler */ EntryNewScreen(SCR8004_GPRS_COUNTER, NULL, EntryScrGPRSCounter, NULL); /* Get current screen to gui buffer for history purposes */ guiBuffer = GetCurrGuiBuffer(SCR8004_GPRS_COUNTER); /* Retrieve no of child of menu item to be displayed */ nNumofItem = GetNumOfChild(MENU_CALL_HISTORY_GPRSCOUNTER); /* Get attribute of menu to be displayed */ /* nDispAttribute = GetDispAttributeOfItem( MENU_CALL_HISTORY_GPRSCOUNTER ); */ /* Retrieve string ids in sequence of given menu item to be displayed */ GetSequenceStringIds(MENU_CALL_HISTORY_GPRSCOUNTER, nStrItemList); /* Set current parent id */ SetParentHandler(MENU_CALL_HISTORY_GPRSCOUNTER); /* Register highlight handler to be called in menu screen */ RegisterHighlightHandler(ExecuteCurrHiliteHandler); /* construct hint popups for the menu items */ ConstructHintsList(MENU_CALL_HISTORY_GPRSCOUNTER, u8GPRSCount); /* Display Category52 Screen */ ShowCategory52Screen( STR_GPRS_CAPTION, IMG_SCR8056_CAPTION, 0, 0, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, nNumofItem, nStrItemList, (U16*) gIndexIconsImageList, u8GPRSCount, 0, 0, guiBuffer); /* Register left arrow key */ SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); /* Register function with left/right softkey */ SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); return; }
/************************************************************** FUNCTION NAME : EntryCHISTResetCallLog PURPOSE : Entry function of reset calls. INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void **************************************************************/ void EntryCHISTResetCallLog( void ) { //U16 nDispAttribute; /* Stores display attribue */ U8* guiBuffer; /* Buffer holding history data */ U16 nStrItemList[MAX_SUB_MENUS];/* Stores the strings id of submenus returned */ U16 nNumofItem; /* Stores no of children in the submenu*/ U16 ItemIcons[MAX_SUB_MENUS]; U8* PopUpList[MAX_SUB_MENUS]; /* Call Exit Handler*/ #ifdef __MMI_CH_NUMERIC_LIST_ICON__ EntryNewScreen(SCR_CALLHISTORY_RESETCALL, wgui_restore_list_menu_slim_style, EntryCHISTResetCallLog, NULL); #else EntryNewScreen(SCR_CALLHISTORY_RESETCALL, NULL, EntryCHISTResetCallLog, NULL); #endif /* Get current screen to gui buffer for history purposes*/ guiBuffer = GetCurrGuiBuffer( SCR_CALLHISTORY_RESETCALL); /* Retrieve no of child of menu item to be displayed */ nNumofItem = GetNumOfChild( MENU8113_CALLHISTORY_RESETCALL ); /* Get attribute of menu to be displayed */ //nDispAttribute = GetDispAttributeOfItem( MENU8113_CALLHISTORY_RESETCALL ); /* Retrieve string ids in sequence of given menu item to be displayed */ GetSequenceStringIds( MENU8113_CALLHISTORY_RESETCALL, nStrItemList ); GetSequenceImageIds( MENU8113_CALLHISTORY_RESETCALL, ItemIcons ); /* Set current parent id*/ SetParentHandler( MENU8113_CALLHISTORY_RESETCALL ); /* Register highlight handler to be called in menu screen */ RegisterHighlightHandler( ExecuteCurrHiliteHandler ); /* Construct the hint handler for the menu items */ ConstructHintsList(MENU8113_CALLHISTORY_RESETCALL, PopUpList); #ifdef __MMI_CH_NUMERIC_LIST_ICON__ wgui_override_list_menu_slim_style(WGUI_LIST_MENU_SLIM_STYLE_NUMBER); #endif /* Display the screen for the reset call logs */ ShowCategory52Screen( STR_MENU8113_CALLHISTORY_RESETCALL, IMG_SCR8056_CAPTION, STR_GLOBAL_OK, IMG_GLOBAL_OK, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, nNumofItem, nStrItemList, ItemIcons, ( U8 * * ) PopUpList, 0, 0,guiBuffer ); /* Register function with right softkey */ SetKeyHandler( GoBackHistory,KEY_LEFT_ARROW, KEY_EVENT_DOWN); SetRightSoftkeyFunction( GoBackHistory, KEY_EVENT_UP ); return; }
/***************************************************************************** * FUNCTION * mmi_brw_address_list_entry_options * DESCRIPTION * Entry function for Enter Address Options screen. * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_brw_address_list_entry_options(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ U16* UC_list_of_items; U8 *guiBuffer; S32 num_of_items; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ EntryNewScreen(SCR_ID_BRW_ENTER_ADDRESS_OPTIONS, NULL, mmi_brw_address_list_entry_options, NULL); guiBuffer = GetCurrGuiBuffer(SCR_ID_BRW_ENTER_ADDRESS_OPTIONS); /*it saves the current screen as the browser top most screen*/ mmi_brw_set_top_screen_id(); num_of_items = GetNumOfChild(MENU_ID_BRW_ENTER_ADR_OPTIONS); UC_list_of_items = OslMalloc(sizeof(U16)*num_of_items); GetSequenceStringIds(MENU_ID_BRW_ENTER_ADR_OPTIONS, UC_list_of_items); SetParentHandler(MENU_ID_BRW_ENTER_ADR_OPTIONS); RegisterHighlightHandler(ExecuteCurrHiliteHandler); ShowCategory15Screen( STR_GLOBAL_OPTIONS, GetRootTitleIcon(SERVICES_WAP_MENU_ID), STR_GLOBAL_OPTIONS, 0, STR_GLOBAL_BACK, 0, num_of_items, UC_list_of_items, (U16*) gIndexIconsImageList, LIST_MENU, 0, guiBuffer); ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); OslMfree(UC_list_of_items); }
/***************************************************************************** * FUNCTION * mmi_brw_recent_pages_sorting_method_set_hilite_index * DESCRIPTION * This function displays the confirmation screen for deletion of complete * trusted certificates list * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_brw_recent_pages_sorting_method_set_hilite_index(U32 *hilited_index) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ U16 nStrItemList[MAX_SUB_MENUS]; S8* menuStr_p; S32 num_of_items; U32 index; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ GetSequenceStringIds(MENU_ID_BRW_RECENT_PAGE_SORT, nStrItemList); num_of_items = GetNumOfChild(MENU_ID_BRW_RECENT_PAGE_SORT); if(g_brw_cntx.sorting_method == WAP_BAM_RECENT_PAGE_SORT_OPTION_LAST) { menuStr_p = GetString(STR_ID_BRW_SORT_BY_LAST_VISITED); } else if(g_brw_cntx.sorting_method == WAP_BAM_RECENT_PAGE_SORT_OPTION_FREQ) { menuStr_p = GetString(STR_ID_BRW_SORT_BY_MOST_VISITED); } else if(g_brw_cntx.sorting_method == WAP_BAM_RECENT_PAGE_SORT_OPTION_HOST) { menuStr_p = GetString(STR_ID_BRW_SORT_BY_SITE); } else { menuStr_p = GetString(STR_ID_BRW_SORT_BY_LAST_VISITED); } for(index=0; index<num_of_items; index++) { if(!mmi_ucs2cmp(GetString(nStrItemList[index]), menuStr_p)) { *hilited_index = index; break; } } }
/************************************************************** FUNCTION NAME : EntrySECSETFDNOption(void) PURPOSE : Entry screen of FDL list Options, when list is not empty. INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void Author : Vanita Jain **************************************************************/ void EntrySECSETFDNOption() { U16 nStrItemList[MAX_SUB_MENUS];/* Stores the strings id of submenus returned */ U16 nNumofItem; /* Stores no of children in the submenu*/ //micha1229 // U16 nDispAttribute; /* Stores display attribue */ U8* guiBuffer; /* Buffer holding history data */ EntryNewScreen(SCR_ID_SECSET_FDN_OPTION, NULL, EntrySECSETFDNOption, NULL); /* 2 Get current screen to gui buffer for history purposes*/ guiBuffer = GetCurrGuiBuffer(SCR_ID_SECSET_FDN_OPTION); /* 3. Retrieve no of child of menu item to be displayed */ nNumofItem = GetNumOfChild(MENU8234_FDL_VIEW_OPTIONS_MAIN ); /* 4. Get attribute of menu to be displayed */ // nDispAttribute = GetDispAttributeOfItem(MENU8234_FDL_VIEW_OPTIONS_MAIN ); /* 5. Retrieve string ids in sequence of given menu item to be displayed */ GetSequenceStringIds(MENU8234_FDL_VIEW_OPTIONS_MAIN , nStrItemList); /* 6 Set current parent id*/ SetParentHandler(MENU8234_FDL_VIEW_OPTIONS_MAIN ); /* 7 Register highlight handler to be called in menu screen */ RegisterHighlightHandler(ExecuteCurrHiliteHandler); /* 8 Display Category15 Screen */ ShowCategory15Screen(STR_GLOBAL_OPTIONS, MAIN_MENU_TITLE_SETTINGS_ICON, STR_GLOBAL_OK, IMG_GLOBAL_OK, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, nNumofItem, nStrItemList, (PU16)gIndexIconsImageList, LIST_MENU, 0, guiBuffer); /* 9.Register function with right softkey */ SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP); }
/***************************************************************************** * FUNCTION * mmi_brw_entry_service_inbox_options * DESCRIPTION * Entry function for service inbox options screen. * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_brw_entry_service_inbox_options(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ U16 UC_list_of_items[3]; U8 *guiBuffer; S32 num_of_items; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ EntryNewScreen(SCR_ID_BRW_SERVICE_INBOX_OPTIONS, NULL, mmi_brw_entry_service_inbox_options, NULL); guiBuffer = GetCurrGuiBuffer(SCR_ID_BRW_SERVICE_INBOX_OPTIONS); num_of_items = GetNumOfChild(MENU_ID_BRW_PUSH_MSG_OPTIONS); GetSequenceStringIds(MENU_ID_BRW_PUSH_MSG_OPTIONS, UC_list_of_items); SetParentHandler(MENU_ID_BRW_PUSH_MSG_OPTIONS); RegisterHighlightHandler(ExecuteCurrHiliteHandler); ShowCategory15Screen( STR_ID_BRW_OPTION, GetRootTitleIcon(SERVICES_WAP_MENU_ID), STR_GLOBAL_OK, 0, STR_GLOBAL_BACK, 0, num_of_items, UC_list_of_items, (U16*) gIndexIconsImageList, LIST_MENU, 0, guiBuffer); SetRightSoftkeyFunction(mmi_brw_entry_service_inbox_options_back, KEY_EVENT_UP); SetKeyHandler(mmi_brw_entry_service_inbox_options_back, KEY_LEFT_ARROW, KEY_EVENT_DOWN); }