/************************************************************** 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 * mmi_vrsdscut_entry_tag_option * DESCRIPTION * This function is just for template. * PARAMETERS * void * a(?) [IN/OUT] First variable, used as returns * b(?) [IN] Second variable * RETURNS * the description of return value, if any.(?) *****************************************************************************/ void mmi_vrsdscut_entry_tag_option(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ U8 *guiBuffer; U16 nStrItemList[4]; U16 nNumofItem; U32 HideItemId = -1; U32 maskingByte = -1; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ EntryNewScreen(SCR_ID_VRSD_SHORTCUT_OPTION, NULL, mmi_vrsdscut_entry_tag_option, NULL); guiBuffer = GetCurrGuiBuffer(SCR_ID_VRSD_SHORTCUT_OPTION); SetParentHandler(MENU_ID_VRSD_SHORTCUT_MAIN_MENU); RegisterHighlightHandler(ExecuteCurrHiliteHandler); /* Register all highlight handler again, because RsetBit() may change the highlight handler when hide menu. */ mmi_vrsdscut_init_highlight_handler(); mmi_frm_unhide_menu_item(MENU_ID_VRSD_SHORTCUT_MAIN_ADD); /* Display Change and Delete. */ if (mmi_vrsd_util_get_tag_id(MMI_VRSD_APP_SHORTCUT, g_vrsdscut_highlight) != 0xffff) { mmi_frm_hide_menu_item(MENU_ID_VRSD_SHORTCUT_MAIN_ADD); } nNumofItem = GetNumOfChild_Ext(MENU_ID_VRSD_SHORTCUT_MAIN_MENU); GetSequenceStringIds_Ext(MENU_ID_VRSD_SHORTCUT_MAIN_MENU, nStrItemList); if (mmi_vrsd_util_get_tag_id(MMI_VRSD_APP_SHORTCUT, g_vrsdscut_highlight) == 0xffff) { nNumofItem = 1; /* Display add only */ } ShowCategory15Screen( STR_ID_VRSD_SHORTCUT, MAIN_MENU_TITLE_MULTIMEDIA_ICON, STR_GLOBAL_OK, IMG_GLOBAL_OK, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, nNumofItem, nStrItemList, (U16*) gIndexIconsImageList, LIST_MENU, 0, guiBuffer); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); }
/***************************************************************************** * FUNCTION * mmi_idle_entry_dial_pad_option * DESCRIPTION * Entry function of dial pad screen option menu (only available for __MMI_UCM__) * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_idle_entry_dial_pad_option(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ PU8 guiBuffer; U16 nNumofItem; #if defined(__MMI_WLAN_FEATURES__) && defined(__MMI_VOIP__) U16 nStrItemList[4]; /* dial, save, input method, and change dial mode */ #else U16 nStrItemList[2]; /* dial and save */ #endif historyNode *History; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ EntryNewScreen(IDLE_SCREEN_DIGIT_OPTIONS_ID, NULL, mmi_idle_entry_dial_pad_option, NULL); guiBuffer = GetCurrGuiBuffer(IDLE_SCREEN_DIGIT_OPTIONS_ID); nNumofItem = GetNumOfChild_Ext(MENU_ID_DIALER_SCREEN_OPTIONS); GetSequenceStringIds_Ext(MENU_ID_DIALER_SCREEN_OPTIONS, nStrItemList); SetParentHandler(MENU_ID_DIALER_SCREEN_OPTIONS); RegisterHighlightHandler(ExecuteCurrHiliteHandler); ShowCategory15Screen( STR_GLOBAL_OPTIONS, 0, STR_GLOBAL_OK, IMG_GLOBAL_OK, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, nNumofItem, nStrItemList, (PU16) gIndexIconsImageList, LIST_MENU, 0, guiBuffer); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); /* reset the guiBuffer to enable long press after go back to the digit dialer screen */ if (GetHistoryScrID(IDLE_SCREEN_DIGIT_HANDLER_ID, &History) == ST_SUCCESS) { if (History->guiBuffer != NULL) { OslMfree(History->guiBuffer); History->guiBuffer = NULL; } } }
void EntryCALLSETBarringIn(void) { //micha1229 // U16 nDispAttribute; /* Stores display attribue */ U8* guiBuffer; /* Buffer holding history data */ U16 nNumofItem; U16 nStrItemList[MAX_SUB_MENUS]; /*U32 maskingByte=0xFFFFFFFF; U32 menuItemId=0xFFFFFFFF;*/ EntryNewScreen(SCR_ID_CALLSET_BARRING_IN, NULL, EntryCALLSETBarringIn, NULL); /* Get current screen info into gui buffer for history purposes*/ guiBuffer = GetCurrGuiBuffer(SCR_ID_CALLSET_BARRING_IN); /* Retrieve no of child of menu item to be displayed */ nNumofItem = GetNumOfChild_Ext(MENU_CALL_BARRING_INCOMING); /* Get attribute of menu to be displayed */ // nDispAttribute = GetDispAttributeOfItem(MENU8237_SCR8093_MNGCALL_MENU_BARRING); /* Retrieve string ids in sequence of given menu item to be displayed */ GetSequenceStringIds_Ext(MENU_CALL_BARRING_INCOMING, nStrItemList); /* Set current parent id*/ SetParentHandler(MENU_CALL_BARRING_INCOMING); /* Register highlight handler to be called in menu screen */ RegisterHighlightHandler(ExecuteCurrHiliteHandler); #if 0 /* under construction !*/ /* under construction !*/ /* under construction !*/ /* under construction !*/ /* under construction !*/ /* under construction !*/ /* under construction !*/ #endif /* 0 */ /* Display Category Screen */ ShowCategory15Screen(STR_MENU_BARRING_INCOMING_MAIN, 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); /* Register Exit handler */ 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 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); }
/***************************************************************************** * FUNCTION * mmi_vrsdscut_entry_list * DESCRIPTION * This function is just for template. * PARAMETERS * void * a(?) [IN/OUT] First variable, used as returns * b(?) [IN] Second variable * RETURNS * the description of return value, if any.(?) *****************************************************************************/ void mmi_vrsdscut_entry_list(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ U8 i; U8 *guiBuffer; U16 ShctCandList[SHCT_MAX_CANDI_LIST]; /* All shortcut candidate */ U16 ImageList[SHCT_MAX_CANDI_LIST]; vrsd_tag_struct tag_list[MMI_VRSD_MAX_TAG]; S16 pError; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ EntryNewScreen(SCR_ID_VRSD_SHORTCUT_LIST, NULL, mmi_vrsdscut_entry_list, NULL); guiBuffer = GetCurrGuiBuffer(SCR_ID_VRSD_SHORTCUT_LIST); /* Read Voice Tag List */ ReadRecord(NVRAM_EF_VRSD_TAG_LID, 1, (void*)tag_list, MMI_VRSD_MAX_TAG * sizeof(vrsd_tag_struct), &pError); /* Assign shortcut string and image */ for (i = 0; i < g_shct_cntx.NumCandShct; i++) { ShctCandList[i] = ShctGetStringID(g_shct_cntx.CandShctList[i]); /* Check if shortcut item has voice tag */ if (mmi_vrsd_util_get_tag_id_in_list(MMI_VRSD_APP_SHORTCUT, i, tag_list) != 0xffff) { ImageList[i] = IMG_ID_VRSD_APP; } else { ImageList[i] = IMG_ID_VRSD_SHORTCUT; } } if (guiBuffer == NULL) { g_vrsdscut_highlight = 0; } RegisterHighlightHandler(mmi_vrsdscut_list_highlight_hdlr); ShowCategory15Screen( STR_ID_VRSD_SHORTCUT, MAIN_MENU_TITLE_MULTIMEDIA_ICON, STR_GLOBAL_OPTIONS, IMG_GLOBAL_OPTIONS, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, g_shct_cntx.NumCandShct, ShctCandList, (U16*) ImageList, LIST_MENU, g_vrsdscut_highlight, guiBuffer); SetLeftSoftkeyFunction(mmi_vrsdscut_entry_tag_option, KEY_EVENT_UP); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); SetKeyHandler(mmi_vrsdscut_entry_tag_option, KEY_RIGHT_ARROW, KEY_EVENT_DOWN); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); }