JBrowserMMIRecentPages.c
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:20k
源码类别:

MTK

开发平台:

C/C++

  1. /*****************************************************************************
  2. *  Copyright Statement:
  3. *  --------------------
  4. *  This software is protected by Copyright and the information contained
  5. *  herein is confidential. The software may not be copied and the information
  6. *  contained herein may not be used or disclosed except with the written
  7. *  permission of MediaTek Inc. (C) 2005
  8. *
  9. *  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
  10. *  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
  11. *  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
  12. *  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
  13. *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
  14. *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
  15. *  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
  16. *  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
  17. *  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
  18. *  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
  19. *  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
  20. *  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
  21. *
  22. *  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
  23. *  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
  24. *  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
  25. *  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
  26. *  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
  27. *
  28. *  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
  29. *  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
  30. *  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
  31. *  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
  32. *  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
  33. *
  34. *****************************************************************************/
  35. /*****************************************************************************
  36.  *
  37.  * Filename:
  38.  * ---------
  39.  * JBrowserMMIRecentPages.c
  40.  *
  41.  * Project:
  42.  * --------
  43.  *   MAUI
  44.  *
  45.  * Description:
  46.  * ------------
  47.  *   This file is intends for recent pages implementation.
  48.  *
  49.  * Author:
  50.  * -------
  51.  * -------
  52.  *
  53.  *============================================================================
  54.  *             HISTORY
  55.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  56.  *------------------------------------------------------------------------------
  57.  * removed!
  58.  *
  59.  * removed!
  60.  * removed!
  61.  * removed!
  62.  * removed!
  63.  * removed!
  64.  *
  65.  * removed!
  66.  * removed!
  67.  * removed!
  68.  *
  69.  * removed!
  70.  * removed!
  71.  * removed!
  72.  *
  73.  *------------------------------------------------------------------------------
  74.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  75.  *============================================================================
  76.  ****************************************************************************/
  77. #ifndef _MMI_JBROWSERMMIRECENTPAGES_C
  78. #define _MMI_JBROWSERMMIRECENTPAGES_C
  79. /*  Include: MMI header file */
  80. #include "MMI_features.h"
  81. #if defined (JATAAYU_SUPPORT) && defined (WAP_SUPPORT)
  82. #include "PixtelDataTypes.h"
  83. #include "Unicodexdcl.h"
  84. #include "HistoryGprot.h"
  85. #include "GlobalDefs.h"
  86. #include "SettingProfile.h"
  87. #include "DebugInitDef.h"
  88. #include "CommonScreens.h"
  89. #include "EventsGprot.h"
  90. #include "wgui_inputs.h"
  91. #include "wgui_categories.h"
  92. #include "wgui_categories_inputs.h"
  93. #include "OrganizerDef.h"
  94. #include "DateTimeGprot.h"
  95. #include "TimerEvents.h"
  96. #include "wgui_categories_popup.h"
  97. #include "settingGprots.h"
  98. #include "JBrowserMMIDefs.h"
  99. #include "JBrowserMMIProts.h"
  100. #include "JBrowserMMITypes.h"
  101. #include "JBrowserMMIGprots.h"
  102. /*  Include: NVRAM header file */
  103. #include "NVRAMType.h"
  104. #include "NVRAMProt.h"
  105. #include "NVRAMEnum.h"
  106. /*  Include: Jataayu header file */
  107. #include "ddl.h"
  108. #include "jcal.h"
  109. #include "jdd_memapi.h"
  110. #include "browserlayout.h"
  111. #include "jdi_servicehandler.h"
  112. #include "jdi_browserinterface.h"
  113. #include "fsm.h"
  114. /*****************************************************************************
  115.  * FUNCTION
  116.  *  mmi_brw_entry_recent_page_list
  117.  * DESCRIPTION
  118.  *  Entry function for recent page list
  119.  * PARAMETERS
  120.  *  void
  121.  * RETURNS
  122.  *  void
  123.  *****************************************************************************/
  124. void mmi_brw_entry_recent_page_list(void)
  125. {
  126.     /*----------------------------------------------------------------*/
  127.     /* Local Variables                                                */
  128.     /*----------------------------------------------------------------*/
  129.     U8 *guiBuffer;
  130.     JC_UINT32 brw_rpl_count;
  131.     /*----------------------------------------------------------------*/
  132.     /* Code Body                                                      */
  133.     /*----------------------------------------------------------------*/
  134.     jdi_BrowserGetHistoryCount(pBrowserCtxt, &brw_rpl_count);
  135.     /* Display 'Enter Address' if no address history items are present */
  136.     if ((brw_rpl_count) == 0)
  137.     {
  138.         /* added by tk */
  139.         if (GetCurrScrnId() == SCR_ID_BRW_RECENT_PAGES)
  140.         {
  141.             DeleteNHistory(1);
  142.         }
  143.         DisplayPopup((PU8) GetString(STR_GLOBAL_EMPTY), IMG_GLOBAL_EMPTY, 1, JBROWSER_POPUP_TIME, EMPTY_LIST_TONE);
  144.     }
  145.     else
  146.     {
  147.         EntryNewScreen(SCR_ID_BRW_RECENT_PAGES, NULL, mmi_brw_entry_recent_page_list, NULL);
  148.         guiBuffer = GetCurrGuiBuffer(SCR_ID_BRW_RECENT_PAGES);
  149.         //              SetParentHandler(0);//comment by tk
  150.         //              RegisterHighlightHandler(ExecuteCurrHiliteHandler);//comment by tk
  151.         ShowCategory184Screen(
  152.             STR_ID_BRW_RECENT_PAGES,
  153.             GetRootTitleIcon(SERVICES_WAP_MENU_ID),
  154.             STR_GLOBAL_OPTIONS,
  155.             0,
  156.             STR_GLOBAL_BACK,
  157.             0,
  158.             brw_rpl_count,
  159.             mmi_brw_recent_pages_list_get_item,
  160.             0,
  161.             0,
  162.             guiBuffer);
  163.         SetLeftSoftkeyFunction(mmi_brw_highlighted_recent_page, KEY_EVENT_UP);
  164.         SetKeyHandler(mmi_brw_highlighted_recent_page, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  165.         SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  166.         SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  167.     }
  168. }
  169. /*****************************************************************************
  170.  * FUNCTION
  171.  *  mmi_brw_recent_pages_list_get_item
  172.  * DESCRIPTION
  173.  *  Item call back function for dynamic list of recent pages
  174.  * PARAMETERS
  175.  *  item_index          [IN]        Highlighted item index
  176.  *  str_buff            [IN]        Buffer to be shown
  177.  *  img_buff_p          [?]         [?]         image to be shown
  178.  *  str_img_mask        [IN]        
  179.  * RETURNS
  180.  *  void
  181.  *****************************************************************************/
  182. pBOOL mmi_brw_recent_pages_list_get_item(S32 item_index, UI_string_type str_buff, PU8 *img_buff_p, U8 str_img_mask)
  183. {
  184.     /*----------------------------------------------------------------*/
  185.     /* Local Variables                                                */
  186.     /*----------------------------------------------------------------*/
  187.     JC_URL_HISTORY brw_rpl_list_p;
  188. S8 pOutBuffer[8];
  189.     /*----------------------------------------------------------------*/
  190.     /* Code Body                                                      */
  191.     /*----------------------------------------------------------------*/
  192.     jdi_BrowserGetHistoryByIndex(pBrowserCtxt, item_index, &brw_rpl_list_p);
  193. /* Display URL if settings option is set as 'Show history by URL'*/
  194. if (g_brw_cntx.show_history_as_url)
  195. {
  196.         if (pfnUnicodeStrlen((S8*) brw_rpl_list_p.pmURL) > MAX_SUBMENU_CHARACTERS)
  197. {
  198.             pfnUnicodeStrncpy((S8*) str_buff, (S8*) brw_rpl_list_p.pmURL, BRW_MAX_VISIBLE_URL_LENGTH - 1);
  199. AnsiiToUnicodeString(pOutBuffer, (S8*) "...");
  200. pfnUnicodeStrcat((S8*) str_buff, (S8*) pOutBuffer);
  201. }
  202. else
  203. {
  204. pfnUnicodeStrcpy((S8*) str_buff, (S8*) brw_rpl_list_p.pmURL);
  205. }
  206. }
  207. else  /* Display Title if settings option is set as 'Show history by title'*/
  208. {
  209. if (pfnUnicodeStrlen((S8*) brw_rpl_list_p.pmTitle) != 0)
  210. {
  211. if(pfnUnicodeStrlen((S8*) brw_rpl_list_p.pmTitle) > MAX_SUBMENU_CHARACTERS)
  212.             {
  213.                 pfnUnicodeStrncpy((S8*) str_buff, (S8*) brw_rpl_list_p.pmTitle, BRW_MAX_VISIBLE_URL_LENGTH - 1);
  214.                 AnsiiToUnicodeString(pOutBuffer, (S8*) "...");
  215.                 pfnUnicodeStrcat((S8*) str_buff, (S8*) pOutBuffer);
  216.             }
  217.             else
  218.             {
  219.                 pfnUnicodeStrcpy((S8*) str_buff, (S8*) brw_rpl_list_p.pmTitle);
  220.             }
  221.     }
  222.     else
  223.     {
  224.             if (pfnUnicodeStrlen((S8*) brw_rpl_list_p.pmURL) > MAX_SUBMENU_CHARACTERS)
  225.             {
  226.                 pfnUnicodeStrncpy((S8*) str_buff, (S8*) brw_rpl_list_p.pmURL, BRW_MAX_VISIBLE_URL_LENGTH - 1);
  227.                 AnsiiToUnicodeString(pOutBuffer, (S8*) "...");
  228.                 pfnUnicodeStrcat((S8*) str_buff, (S8*) pOutBuffer);
  229.     }
  230.     else
  231.     {
  232.     pfnUnicodeStrcpy((S8*) str_buff, (S8*) brw_rpl_list_p.pmURL);
  233.     }
  234.     }
  235. }
  236.     *img_buff_p = get_image(gIndexIconsImageList[item_index]);
  237.     return TRUE;
  238. }
  239. /*****************************************************************************
  240.  * FUNCTION
  241.  *  mmi_brw_highlighted_recent_page
  242.  * DESCRIPTION
  243.  *  Function to get the highlighted item and call appropriate function.
  244.  * PARAMETERS
  245.  *  void
  246.  * RETURNS
  247.  *  void
  248.  *****************************************************************************/
  249. void mmi_brw_highlighted_recent_page(void)
  250. {
  251.     /*----------------------------------------------------------------*/
  252.     /* Local Variables                                                */
  253.     /*----------------------------------------------------------------*/
  254.     /*----------------------------------------------------------------*/
  255.     /* Code Body                                                      */
  256.     /*----------------------------------------------------------------*/
  257.     g_brw_cntx.index_highlighted_item = (U8) GetHighlightedItem();
  258.     mmi_brw_entry_recent_page_options();
  259. }
  260. /*****************************************************************************
  261.  * FUNCTION
  262.  *  mmi_brw_entry_recent_page_options
  263.  * DESCRIPTION
  264.  *  Entry function for recent page options screen.
  265.  * PARAMETERS
  266.  *  void
  267.  * RETURNS
  268.  *  void
  269.  *****************************************************************************/
  270. void mmi_brw_entry_recent_page_options(void)
  271. {
  272.     /*----------------------------------------------------------------*/
  273.     /* Local Variables                                                */
  274.     /*----------------------------------------------------------------*/
  275.     U16 UC_list_of_items[3];
  276.     U8 *guiBuffer;
  277.     S32 num_of_items;
  278.     /*----------------------------------------------------------------*/
  279.     /* Code Body                                                      */
  280.     /*----------------------------------------------------------------*/
  281.     EntryNewScreen(SCR_ID_BRW_RECENT_PAGE_OPTIONS, NULL, mmi_brw_entry_recent_page_options, NULL);
  282.     guiBuffer = GetCurrGuiBuffer(SCR_ID_BRW_RECENT_PAGE_OPTIONS);
  283.     num_of_items = GetNumOfChild(MENU_ID_BRW_RECENT_PAGE_OPTIONS);
  284.     GetSequenceStringIds(MENU_ID_BRW_RECENT_PAGE_OPTIONS, UC_list_of_items);
  285.     SetParentHandler(MENU_ID_BRW_RECENT_PAGE_OPTIONS);
  286.     RegisterHighlightHandler(ExecuteCurrHiliteHandler);
  287.     ShowCategory15Screen(
  288.         STR_ID_BRW_OPTION,
  289.         GetRootTitleIcon(SERVICES_WAP_MENU_ID),
  290.         STR_GLOBAL_OPTIONS,
  291.         0,
  292.         STR_GLOBAL_BACK,
  293.         0,
  294.         num_of_items,
  295.         UC_list_of_items,
  296.         (U16*) gIndexIconsImageList,
  297.         LIST_MENU,
  298.         0,
  299.         guiBuffer);
  300.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  301.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  302. }
  303. /*****************************************************************************
  304.  * FUNCTION
  305.  *  mmi_brw_confirm_delete_recent_page
  306.  * DESCRIPTION
  307.  *  This function displays the confirmation screen for deletion of currently selected recent page.
  308.  * PARAMETERS
  309.  *  void
  310.  * RETURNS
  311.  *  void
  312.  *****************************************************************************/
  313. void mmi_brw_confirm_delete_recent_page(void)
  314. {
  315.     /*----------------------------------------------------------------*/
  316.     /* Local Variables                                                */
  317.     /*----------------------------------------------------------------*/
  318. // U16 stringID = 0;
  319. U8 *guiBuffer;
  320.     JC_INT8 unicodeBuf[100] = {0, };
  321.     /*----------------------------------------------------------------*/
  322.     /* Code Body                                                      */
  323.     /*----------------------------------------------------------------*/
  324. if(IsScreenPresent(SCR_ID_BRW_JBROWSER_MAIN))
  325. {
  326. // stringID = STR_ID_BRW_DELETE_RECENT_PAGE_ENTRY;
  327.         EntryNewScreen(SCR_ID_BRW_DELETE_RECENT_PAGE_SCREEN, NULL, NULL, NULL);
  328.         guiBuffer = GetCurrGuiBuffer(SCR_ID_BRW_RECENT_PAGES);
  329. pfnUnicodeStrcpy(unicodeBuf, GetString(STR_ID_BRW_DELETE_RECENT_PAGE_ENTRY));
  330. ShowCategory74Screen(
  331. STR_GLOBAL_DELETE,
  332. GetRootTitleIcon(SERVICES_WAP_MENU_ID),
  333. STR_GLOBAL_YES,
  334. IMG_GLOBAL_YES,
  335. STR_GLOBAL_NO,
  336. IMG_GLOBAL_NO,
  337. (PU8) unicodeBuf,
  338. pfnUnicodeStrlen(unicodeBuf),
  339. guiBuffer);
  340. mmi_brw_clear_key_handler(KEY_VOL_UP);
  341. mmi_brw_clear_key_handler(KEY_VOL_DOWN);
  342. }
  343. else
  344. {
  345. //stringID = STR_GLOBAL_DELETE;
  346.     DisplayConfirm(
  347.         STR_GLOBAL_YES,
  348.         IMG_GLOBAL_YES,
  349.         STR_GLOBAL_NO,
  350.         IMG_GLOBAL_NO,
  351. get_string(STR_GLOBAL_DELETE),
  352.         IMG_GLOBAL_QUESTION,
  353.         WARNING_TONE);
  354. }
  355.     SetLeftSoftkeyFunction(mmi_brw_delete_recent_page, KEY_EVENT_UP);
  356.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);   /* added by tk */
  357. }
  358. /*****************************************************************************
  359.  * FUNCTION
  360.  *  mmi_brw_delete_recent_page
  361.  * DESCRIPTION
  362.  *  Deletes the selected recent page from the list
  363.  * PARAMETERS
  364.  *  void
  365.  * RETURNS
  366.  *  void
  367.  *****************************************************************************/
  368. void mmi_brw_delete_recent_page(void)
  369. {
  370.     /*----------------------------------------------------------------*/
  371.     /* Local Variables                                                */
  372.     /*----------------------------------------------------------------*/
  373.     /*----------------------------------------------------------------*/
  374.     /* Code Body                                                      */
  375.     /*----------------------------------------------------------------*/
  376.     jdi_BrowserClearHistoryByIndex(pBrowserCtxt, g_brw_cntx.index_highlighted_item);
  377.     jdi_BrowserHistorySave(pBrowserCtxt);
  378.     DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, JBROWSER_POPUP_TIME, SUCCESS_TONE);
  379.     /* DeleteUptoScrID(SCR_ID_BRW_INTERNET_SERVICES); */
  380.     DeleteUptoScrID(SCR_ID_BRW_RECENT_PAGES);   /* added by tk */
  381. }
  382. /*****************************************************************************
  383.  * FUNCTION
  384.  *  mmi_brw_confirm_delete_all_recent_pages
  385.  * DESCRIPTION
  386.  *  This function displays the confirmation screen for deletion of entire recent page list
  387.  * PARAMETERS
  388.  *  void
  389.  * RETURNS
  390.  *  void
  391.  *****************************************************************************/
  392. void mmi_brw_confirm_delete_all_recent_pages(void)
  393. {
  394.     /*----------------------------------------------------------------*/
  395.     /* Local Variables                                                */
  396.     /*----------------------------------------------------------------*/
  397. // U16 stringID = 0;
  398. U8 *guiBuffer;
  399.     JC_INT8 unicodeBuf[100] = {0, };
  400.     /*----------------------------------------------------------------*/
  401.     /* Code Body                                                      */
  402.     /*----------------------------------------------------------------*/
  403. if(IsScreenPresent(SCR_ID_BRW_JBROWSER_MAIN))
  404. {
  405. // stringID = STR_ID_BRW_DELETE_ALL_RECENT_PAGE_ENTRY;
  406.         EntryNewScreen(SCR_ID_BRW_DELETE_RECENT_PAGE_SCREEN, NULL, NULL, NULL);
  407.         guiBuffer = GetCurrGuiBuffer(SCR_ID_BRW_RECENT_PAGES);
  408. pfnUnicodeStrcpy(unicodeBuf, GetString(STR_ID_BRW_DELETE_ALL_RECENT_PAGE_ENTRY));
  409. ShowCategory74Screen(
  410. STR_GLOBAL_DELETE_ALL,
  411. GetRootTitleIcon(SERVICES_WAP_MENU_ID),
  412. STR_GLOBAL_YES,
  413. IMG_GLOBAL_YES,
  414. STR_GLOBAL_NO,
  415. IMG_GLOBAL_NO,
  416. (PU8) unicodeBuf,
  417. pfnUnicodeStrlen(unicodeBuf),
  418. guiBuffer);
  419. mmi_brw_clear_key_handler(KEY_VOL_UP);
  420. mmi_brw_clear_key_handler(KEY_VOL_DOWN);
  421. }
  422. else
  423. {
  424. // stringID = STR_GLOBAL_DELETE_ALL;
  425.     DisplayConfirm(
  426.         STR_GLOBAL_YES,
  427.         IMG_GLOBAL_YES,
  428.         STR_GLOBAL_NO,
  429.         IMG_GLOBAL_NO,
  430. get_string(STR_GLOBAL_DELETE_ALL),
  431.         IMG_GLOBAL_QUESTION,
  432.         WARNING_TONE);
  433. }
  434.     SetLeftSoftkeyFunction(mmi_brw_delete_all_recent_pages, KEY_EVENT_UP);
  435.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);   /* added by tk */
  436. }
  437. /*****************************************************************************
  438.  * FUNCTION
  439.  *  mmi_brw_delete_all_recent_pages
  440.  * DESCRIPTION
  441.  *  Deletes the entire recent page list
  442.  * PARAMETERS
  443.  *  void
  444.  * RETURNS
  445.  *  void
  446.  *****************************************************************************/
  447. void mmi_brw_delete_all_recent_pages(void)
  448. {
  449.     /*----------------------------------------------------------------*/
  450.     /* Local Variables                                                */
  451.     /*----------------------------------------------------------------*/
  452.     /*----------------------------------------------------------------*/
  453.     /* Code Body                                                      */
  454.     /*----------------------------------------------------------------*/
  455.     jdi_BrowserClearHistory(pBrowserCtxt);
  456.     jdi_BrowserHistorySave(pBrowserCtxt);
  457.     DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, JBROWSER_POPUP_TIME, SUCCESS_TONE);
  458.     /* DeleteUptoScrID(SCR_ID_BRW_INTERNET_SERVICES); */
  459.     DeleteUptoScrID(SCR_ID_BRW_RECENT_PAGES);   /* added by tk */
  460. }
  461. /*****************************************************************************
  462.  * FUNCTION
  463.  *  mmi_brw_goto_highlighted_recent_page
  464.  * DESCRIPTION
  465.  *  This function fetches the current url
  466.  * PARAMETERS
  467.  *  void
  468.  * RETURNS
  469.  *  void
  470.  *****************************************************************************/
  471. void mmi_brw_goto_highlighted_recent_page(void)
  472. {
  473.     /*----------------------------------------------------------------*/
  474.     /* Local Variables                                                */
  475.     /*----------------------------------------------------------------*/
  476.     JC_URL_HISTORY brw_rpl_list_p;
  477.     /*----------------------------------------------------------------*/
  478.     /* Code Body                                                      */
  479.     /*----------------------------------------------------------------*/
  480.     jdi_BrowserGetHistoryByIndex(pBrowserCtxt, g_brw_cntx.index_highlighted_item, &brw_rpl_list_p);
  481. #if 0
  482. /* under construction !*/
  483. /* under construction !*/
  484. /* under construction !*/
  485. /* under construction !*/
  486. /* under construction !*/
  487. /* under construction !*/
  488. /* under construction !*/
  489. /* under construction !*/
  490. /* under construction !*/
  491. #endif /* 0 */ 
  492.     /* added by tk to set the current fetch url */
  493.     mmi_brw_set_current_url((S8*) brw_rpl_list_p.pmURL);
  494.     /* jdi call to fetch the url */
  495.     mmi_brw_pre_entry_goto_url();
  496. }
  497. #endif /* defined (JATAAYU_SUPPORT) && defined (WAP_SUPPORT) */ 
  498. #endif /* _MMI_JBROWSERMMIRECENTPAGES_C */