static U32 srv_fmgri_types_menu_to_bitmask(S32 menu_id) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ U32 bitmask; U16 count, i; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ if(menu_id <= 0) return 0; bitmask = 0; count = GetNumOfChild((U16)menu_id); if(count > 32) count = 32; for(i=0;i<count;i++) { if(!mmi_frm_test_menu_item_hide(GetSeqItemId((U16)menu_id, i))) bitmask |= (1<<i); } return bitmask; }
/************************************************************** 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 NAME : Entry_SP_Level2 PURPOSE : From level2 go to next screen . SP_Pre_Entry_Level2 will do some preparation for SP_Pre_Entry_Level2. 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 Entry_SP_Level2(void) { U16 nStrItemList[SP_MAX_SUB_MENUS]; /* Stores the strings id of submenus returned */ U16 nNumofItem = 0; /* Stores no of children in the submenu*/ U8* guiBuffer = NULL; /* Buffer holding history data */ U16 ScrId = sp_level1_scr.sp_scr_id+sp_level_2_index+1; U16 MenuId = sp_level1_scr.sp_menu_id+sp_level_2_index+1; EntryNewScreen(ScrId, NULL, Entry_SP_Level2, NULL); guiBuffer = GetCurrGuiBuffer(ScrId); nNumofItem = GetNumOfChild(MenuId); GetSequenceStringIds_Ext(MenuId, nStrItemList); SetParentHandler(MenuId); RegisterHighlightHandler(ExecuteCurrHiliteHandler); ShowCategory52Screen(GetStringIdOfItem(MenuId), 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); SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP); SetKeyHandler(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 * 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 NAME : SP_Pre_Entry_Level2 PURPOSE : From level2 go to next screen . SP_Pre_Entry_Level2 will do some preparation for SP_Pre_Entry_Level2. if you want go to the next screen from Mobile Paradise->New Style World->Joke, this function will be used. 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 SP_Pre_Entry_Level2(void) { mmi_trace(g_sw_SP,"niej Entry_SP_Level2"); U16 nNumofItem; U16 MenuId = sp_level1_scr.sp_menu_id+sp_level_2_index+1; nNumofItem = GetNumOfChild(MenuId); if(nNumofItem>0) { Entry_SP_Level2(); } else { SP_Entry_Make_Call(); } }
/************************************************************** FUNCTION NAME : EntrySECSETFDNDetails(void) PURPOSE : Entry screen to add FDL entry. INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void Author : Vanita Jain **************************************************************/ void EntrySECSETFDNDetails(void) { U16 nNumofItem; /* Stores no of children in the submenu*/ //micha1229 // U16 nDispAttribute; /* Stores display attribue */ U8* guiBuffer; /* Buffer holding history data */ U16 ItemIcons[2]; U8* inputBuffer; //added for inline edit history U16 inputBufferSize; //added for inline edit history mmi_trace(1, TSTXT("EntrySECSETFDNDetails")); if((gpFDLBDLContext->FDNBDNCount == (U16)gpFDLBDLContext->MaxFDL ||gpFDLBDLContext->FDNBDNCount == MAX_SIM_ENTRIES) &&( gpFDLBDLContext->FDNBDNEdit == FALSE)) { DisplayPopup((U8*)GetString(STR_SETTING_STORAGE_FULL),IMG_GLOBAL_WARNING,0,ST_NOTIFYDURATION,(U8)WARNING_TONE); } else { EntryNewScreen(SCR_ID_SECSET_FDN_DETAILS, ExitSECSETFDNDetails, NULL, NULL); guiBuffer = GetCurrGuiBuffer(SCR_ID_SECSET_FDN_DETAILS); inputBuffer = GetCurrNInputBuffer ( SCR_ID_SECSET_FDN_DETAILS, &inputBufferSize ); //added for inline edit history nNumofItem = GetNumOfChild(MENU8234_FDL_VIEW_OPTIONS_ADD); // nDispAttribute = GetDispAttributeOfItem(MENU8234_FDL_VIEW_OPTIONS_ADD); GetSequenceImageIds(MENU8234_FDL_VIEW_OPTIONS_ADD,ItemIcons); InitializeCategory57Screen(); RegisterHighlightHandler(mmi_EntrySECSETFDNDetails_hdlr); FillFdlInlineEditStruct(); if(inputBuffer!=NULL) //added for inline edit history SetCategory57Data(gpFDLBDLContext->FDLBDLInlineDisplay, nNumofItem, inputBuffer);//sets the data ShowCategory57Screen(STR_SETTING_FDL_EDIT_ENTRY,MAIN_MENU_TITLE_SETTINGS_ICON, STR_EDIT,IMG_GLOBAL_OK, STR_DONE, IMG_GLOBAL_BACK, nNumofItem,ItemIcons,gpFDLBDLContext->FDLBDLInlineDisplay, 0,guiBuffer); #if defined(__MMI_GB__) mmi_frm_set_highlight_handler(); GBSetInputboxLSKFunction(EntryScrForInputMethodAndDone); #endif SetCategory57RightSoftkeyFunctions( PreNewFdlEntryReq, GoBackHistory); mmi_trace(1, TSTXT("SCR_ID_SECSET_FDN_DETAILS")); } }
static S32 srv_fmgri_types_option_prepare(mmi_menu_id parent_opt_id, const WCHAR* filepath, const srv_fmgr_fileinfo_struct* fileinfo) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ S32 num_of_child; mmi_menu_id child_opt_id; filetypes_option_enabler_func_ptr enabler; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ /* unhide all menuitem */ srv_fmgri_types_option_reset(parent_opt_id); /* check enabler of parent*/ enabler = srv_fmgri_types_option_get_enabler(parent_opt_id); if(enabler) enabler(parent_opt_id, filepath, fileinfo); else if(g_srv_fmgr_option_enabler) g_srv_fmgr_option_enabler(parent_opt_id, filepath, fileinfo); FMGR_TRACE3(TGL2, TRC_SRV_FMGR_9FB5453EC67E48AEB74843AEF21945AB, "[SRV_FMGR] > Types > enabler(%d): %x,%x", parent_opt_id, enabler, srv_fmgri_types_menu_to_bitmask(parent_opt_id)); /* check enabler of all child */ num_of_child = GetNumOfChild(parent_opt_id); while(num_of_child) { child_opt_id = GetSeqItemId(parent_opt_id, (U16)(num_of_child-1)); if(!mmi_frm_test_menu_item_hide(child_opt_id)) { enabler = srv_fmgri_types_option_get_enabler(child_opt_id); if(enabler) enabler(child_opt_id, filepath, fileinfo); else if(g_srv_fmgr_option_enabler) g_srv_fmgr_option_enabler(child_opt_id, filepath, fileinfo); FMGR_TRACE3(TGL2, TRC_SRV_FMGR_9FB5453EC67E48AEB74843AEF21945AB, "[SRV_FMGR] > Types > enabler(%d): %x,%x", child_opt_id, enabler, srv_fmgri_types_menu_to_bitmask(parent_opt_id)); } num_of_child--; } /* if there is still any available */ return GetNumOfChild_Ext(parent_opt_id); }
/***************************************************************************** * 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); }
static void srv_fmgri_types_option_reset(mmi_menu_id parent_menu_id) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ S32 num_of_child; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ /* unhide all menu under the parent */ num_of_child = GetNumOfChild(parent_menu_id); if(!num_of_child) return; while(num_of_child) { mmi_frm_unhide_menu_item(GetSeqItemId(parent_menu_id, (U16)(num_of_child-1))); num_of_child--; } }
/***************************************************************************** * 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); }