Res_Setting.c
上传用户:dengyu
上传日期:2022-05-01
资源大小:153k
文件大小:390k
源码类别:

MTK

开发平台:

C/C++

  1.     ADD_APPLICATION_STRING2(STR_ID_NETSET_PREFERRED_MODE_WLAN_ONLY, "WLAN Only", "WLAN Only");
  2.     ADD_APPLICATION_STRING2(STR_ID_NETSET_PREFERRED_MODE_GSM_PREFERRED, "GSM Preferred", "GSM Preferred");
  3.     ADD_APPLICATION_STRING2(STR_ID_NETSET_PREFERRED_MODE_WLAN_PREFERRED, "WLAN Preferred", "WLAN Preferred");
  4. #endif /* __MMI_WLAN_FEATURES__ */
  5.     ADD_APPLICATION_MENUITEM((MENU9186_SELECTION_MODE, MENU9185_NETWORK_SETUP,
  6. #ifdef __MANUAL_MODE_NW_SEL__
  7.                               1+
  8. #endif
  9. #ifdef __MMI_WLAN_FEATURES__
  10.                               1+
  11. #endif
  12.                               2,
  13.                               MENU9186_SELECTION_MODE_AUTOMATIC,
  14.                               MENU9186_SELECTION_MODE_MANUAL,
  15. #ifdef __MANUAL_MODE_NW_SEL__
  16.                               MENU9186_SELECTION_MODE_CHOICE,
  17. #endif
  18. #ifdef __MMI_WLAN_FEATURES__
  19.                               MENU9187_PREFERRED_NETWORKS,
  20. #endif
  21.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_NETSET_MITEM9186, NULL));
  22.     ADD_APPLICATION_MENUITEM((MENU9186_SELECTION_MODE_MANUAL, MENU9186_SELECTION_MODE, 0,
  23.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST,
  24. #ifdef __MANUAL_MODE_NW_SEL__
  25.                               STR_ID_NETSET_SELECTION_SELECT_NETWORK,
  26. #else
  27.                               STR_GLOBAL_MANUAL,
  28. #endif
  29.                               NULL));
  30.     ADD_APPLICATION_MENUITEM((MENU9186_SELECTION_MODE_AUTOMATIC, MENU9186_SELECTION_MODE, 0,
  31.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST,
  32. #ifdef __MANUAL_MODE_NW_SEL__
  33.                               STR_ID_NETSET_SELECTION_NEW_SEARCH,
  34. #else
  35.                               STR_GLOBAL_AUTOMATIC,
  36. #endif
  37.                               NULL));
  38. #ifdef __MANUAL_MODE_NW_SEL__
  39.     ADD_APPLICATION_MENUITEM((MENU9186_SELECTION_MODE_CHOICE, MENU9186_SELECTION_MODE, 0,
  40.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_NETSET_SELECTION_MODE_CHOICE, NULL));
  41.     ADD_APPLICATION_STRING2(STR_ID_NETSET_SELECTION_MODE_CHOICE, "Selection Mode", "Network Selection Mode");
  42.     ADD_APPLICATION_STRING2(STR_ID_NETSET_SELECTION_NEW_SEARCH, "New Search", "New Search");
  43.     ADD_APPLICATION_STRING2(STR_ID_NETSET_SELECTION_SELECT_NETWORK, "Select Network", "Select Network");
  44. #endif /* __MANUAL_MODE_NW_SEL__ */
  45.     ADD_APPLICATION_MENUITEM((MENU9187_PREFERRED_NETWORKS, MENU9185_NETWORK_SETUP, 0,
  46.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_NETSET_MITEM9187, NULL));
  47.     ADD_APPLICATION_MENUITEM((MENU9188_BAND_SELECTION, MENU9185_NETWORK_SETUP, 0,
  48.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_NETSET_MITEM9188, NULL));
  49. #if defined(__GSM_RAT__) && defined(__WCDMA_RAT__)
  50. /* under construction !*/
  51. /* under construction !*/
  52. /* under construction !*/
  53. /* under construction !*/
  54. /* under construction !*/
  55. /* under construction !*/
  56. /* under construction !*/
  57. /* under construction !*/
  58. /* under construction !*/
  59. /* under construction !*/
  60. /* under construction !*/
  61. /* under construction !*/
  62. /* under construction !*/
  63. #ifdef __MMI_NETSET_3G_ENHANCE__
  64. /* under construction !*/
  65. /* under construction !*/
  66. /* under construction !*/
  67. /* under construction !*/
  68. /* under construction !*/
  69. /* under construction !*/
  70. /* under construction !*/
  71. /* under construction !*/
  72. /* under construction !*/
  73. /* under construction !*/
  74. /* under construction !*/
  75. /* under construction !*/
  76. /* under construction !*/
  77. /* under construction !*/
  78. /* under construction !*/
  79. /* under construction !*/
  80. /* under construction !*/
  81. /* under construction !*/
  82. /* under construction !*/
  83. #endif /* __MMI_NETSET_3G_ENHANCE__ */
  84. #endif /* defined(__GSM_RAT__) && defined(__WCDMA_RAT__) */ 
  85. #if defined(__OP12__) && defined(__NBR_CELL_INFO__)
  86.     ADD_APPLICATION_MENUITEM((MENU_ID_NETSET_IDLE_CELL_INFO, MENU9185_NETWORK_SETUP, 0,
  87.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_IND_NETSET_IDLE_CELL_INFO, NULL));
  88.                               
  89.     ADD_APPLICATION_STRING2(STR_IND_NETSET_IDLE_CELL_INFO, "Cell information status", "Idle cell information");
  90. #endif /* #if defined(__OP12__) && defined(__NBR_CELL_INFO__) */
  91.     ADD_APPLICATION_STRING2(STR_ID_NETSET_ITEM_WCDMA, "WCDMA", "Menu item string for WCDMA");
  92.     ADD_APPLICATION_STRING2(STR_ID_NETSET_ITEM_GSM, "GSM/GPRS", "Menu item string for GSM");
  93.     ADD_APPLICATION_STRING2(STR_ID_NETSET_ITEM_ALL, "Dual Mode", "Menu item string for Dual Mode");
  94.     ADD_APPLICATION_STRING2(STR_ID_NETSET_MITEM9185, "Network Setup", "Menu item string for Network Setup");
  95.     ADD_APPLICATION_STRING2(STR_ID_NETSET_MITEM9186, "Network Selection", "Menu item string for Selection Mode");
  96.     ADD_APPLICATION_STRING2(STR_ID_NETSET_MITEM9187, "Preferred Networks", "Menu item string for Preferred Networks");
  97.     ADD_APPLICATION_STRING2(STR_ID_NETSET_MITEM9188, "Band Selection", "Menu item string for Band Selection");
  98.     ADD_APPLICATION_STRING2(STR_ID_NETSET_OPERATOR, "OPERATOR", "text of network information");
  99.     ADD_APPLICATION_STRING2(STR_ID_NETSET_SERVICE, "SERVICE", "text of network information");
  100.     ADD_APPLICATION_STRING2(STR_ID_NETSET_NETWORK_STATUS, "STATUS", "text of network information");
  101.     ADD_APPLICATION_STRING2(STR_ID_NETSET_FULL_SERVICE, "FULL SERVICE", "text of network information");
  102. ADD_APPLICATION_STRING2(STR_ID_NETSET_LIMITED_SERVICE, "LIMITED SERVICE", "text of network information");
  103.     
  104.     ADD_APPLICATION_IMAGE2(
  105.         IMG_ID_NETSET_MITEM9185,
  106.         CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
  107.         "Menu item image for Network Setup");
  108.     ADD_APPLICATION_IMAGE2(
  109.         IMG_ID_NETSET_MITEM9186_MANUAL,
  110.         CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
  111.         "Menu item image for Selection Mode->Manual");
  112.     ADD_APPLICATION_IMAGE2(
  113.         IMG_ID_NETSET_MITEM9186_AUTOMATIC,
  114.         CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
  115.         "Menu item image for Selection Mode->Automatic");
  116.     ADD_APPLICATION_STRING2(STR_ID_NETSET_SCR9185_CAPTION, "Network Setup", "Title string for Network Setup menu");
  117.     ADD_APPLICATION_STRING2(STR_ID_NETSET_SCR9186_CAPTION, "Network Selection", "Title string for Selection Mode menu");
  118.     ADD_APPLICATION_STRING2(STR_ID_NETSET_SCR9188_CAPTION, "Band Selection", "Title string for Band Selection menu");
  119.     ADD_APPLICATION_IMAGE2(
  120.         IMG_ID_NETSET_ABORT_LSK,
  121.         CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
  122.         "LSK image for Searching Network screen");
  123.     ADD_APPLICATION_STRING2(
  124.         STR_ID_NETSET_SCR_SELECT_NETWORK_CAPTION,
  125.         "Network List",
  126.         "Title string for Select Network screen");
  127.     ADD_APPLICATION_STRING2(STR_ID_NETSET_BAND_900, "900", "Band Selection sub menu 900");
  128.     ADD_APPLICATION_STRING2(STR_ID_NETSET_BAND_1800, "1800", "Band Selection sub menu 1800");
  129.     ADD_APPLICATION_STRING2(STR_ID_NETSET_BAND_DUAL, "Dual Band", "Band Selection sub menu Dual Band");
  130.     ADD_APPLICATION_STRING2(STR_ID_NETSET_BAND_850, "850", "Band Selection sub menu 850");
  131.     ADD_APPLICATION_STRING2(STR_ID_NETSET_BAND_1900, "1900", "Band Selection sub menu 1900");
  132.     ADD_APPLICATION_STRING2(STR_ID_NETSET_BAND_850_1900, "850/1900", "Band Selection sub menu 850/1900");
  133.     ADD_APPLICATION_STRING2(STR_ID_NETSET_BAND_AUTO, "Auto", "Band Selection sub menu auto");
  134.     ADD_APPLICATION_STRING2(STR_ID_NETSET_BAND_850_1800, "850/1800", "Band Selection sub menu 850/1800");
  135.     ADD_APPLICATION_STRING2(STR_ID_NETSET_REGISTERING_NW, "Registering", "Registering Network Message.");
  136.     ADD_APPLICATION_STRING2(STD_ID_NETSET_NW_SELECT_FAIL, "Fail to register!", "Fail to register!");
  137.     ADD_APPLICATION_STRING2(STR_ID_NETSET_NW_LIST_FAIL, "Fail to search network!", "Fail to search network!");
  138.     ADD_APPLICATION_STRING2(STR_ID_NETSET_SET_BAND_FAIL, "Fail to set band!", "Fail to set band!");
  139.     ADD_APPLICATION_STRING2(STRING_MTPNP_NETSET_SIM1_INVALID, "not available for invalid sim1", "not allowed for invalid sim1")
  140.     ADD_APPLICATION_STRING2(STR_SIM_INVALID_SIM_SELECT_NETWORK, "not available for invalid sim", "not available for invalid sim");
  141.     ADD_APPLICATION_STRING2(STR_ID_SETTING_DELETE_ASK, "Delete?", "setting delete ask");
  142.     ADD_APPLICATION_STRING2(STR_ID_SETTING_SAVING, "Saving", "setting saving");
  143.     ADD_APPLICATION_STRING2(STR_ID_SETTING_DELETING, "Deleting", "setting deleting");    
  144. #ifdef __MMI_SLIM_PROGRESS_ANIMATION__
  145.     ADD_APPLICATION_IMAGE2(
  146.         IMG_ID_NETSET_NW_SEARCH,
  147.         CUST_IMG_PATH "\\MainLCD\\UIElement\\Progress\\PROGRESS"__MMI_RES_TYPE_POPUP_SCREEN__,
  148.         "Progress Image");
  149. #else /* __MMI_SLIM_PROGRESS_ANIMATION__ */ 
  150.     ADD_APPLICATION_IMAGE2(
  151.         IMG_ID_NETSET_NW_SEARCH,
  152.         CUST_IMG_PATH "\\MainLCD\\Active\\Searching\\SEARCH"__MMI_RES_TYPE_POPUP_SCREEN__,
  153.         "Img Associated with Network Search Screen.");
  154. #endif /* __MMI_SLIM_PROGRESS_ANIMATION__ */ 
  155.     PopulatePrefNwk();
  156. }
  157. /*****************************************************************************
  158.  * FUNCTION
  159.  *  PopulatePhoneSetupMenuRes
  160.  * DESCRIPTION
  161.  *  
  162.  * PARAMETERS
  163.  *  void
  164.  * RETURNS
  165.  *  void
  166.  *****************************************************************************/
  167. void PopulatePhoneSetupMenuRes(void)
  168. {
  169.     /*----------------------------------------------------------------*/
  170.     /* Local Variables                                                */
  171.     /*----------------------------------------------------------------*/
  172.     /*----------------------------------------------------------------*/
  173.     /* Code Body                                                      */
  174.     /*----------------------------------------------------------------*/  
  175. #if 1   /* phonesetup.c */
  176. #ifdef __MMI_SET_DEF_ENCODING_TYPE__
  177.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_DEF_ENCODING_TYPE, HighlightPhnsetDefEncoding);
  178.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_DEF_ENCODING_TYPE, HintPhnsetDefEncoding);
  179. #endif /* __MMI_SET_DEF_ENCODING_TYPE__ */    
  180.     
  181. #ifdef __MMI_DISP_SETUP_LEVEL_UP__
  182.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_DISP_SETUP, HighlightDispSetup);
  183. #endif 
  184.     
  185.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_SCHEDULE_POWER, HighlightSPOF);
  186.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_IDLE_SCR_DISP, HighlightPhnsetIdleScrDisp);
  187.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_SHOW_OWN_NUMBER, HighlightPhnsetShowOwnNo);
  188. #ifdef __MMI_VUI_HOMESCREEN__
  189. ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_VUI_PHNSET_HOMESCREEN, mmi_highlight_phnset_vui_homescreen);
  190. ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_VUI_PHNSET_HOMESCREEN, mmi_hint_phnset_vui_homescreen);
  191. #endif /* __MMI_VUI_HOMESCREEN__ */
  192. #ifdef __MMI_VUI_MAINMENU__
  193. ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_VUI_PHNSET_MAINMENU_EFFECT, mmi_highlight_phnset_vui_mainmenu_effect);
  194. ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_VUI_PHNSET_MAINMENU_EFFECT, mmi_hint_phnset_vui_mainmenu_effect);
  195. #endif /* __MMI_VUI_MAINMENU__ */
  196. #ifdef __MMI_CALENDAR_ON_IDLE_SCREEN__
  197.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_CALENDAR_IDLESCREEN, HighlightPhnsetCalendarIdleScreen);
  198. #endif /* __MMI_CALENDAR_ON_IDLE_SCREEN__ */
  199. #if defined(__MMI_OPERATOR_NAME_MENU__)
  200.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_SHOW_OPN, HighlightPhnsetShowOPN);
  201. #endif 
  202.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_SHOW_DT_TIME, HighlightPhnsetShowDtTime);
  203.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_LANGUAGE, HighlightPhnsetLang);
  204.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9146_WELCOME_TEXT, HighlightPhnsetWelcomeText);
  205.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_SCR_SVR, HighlightPhnsetScreenSaver);
  206.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_WALLPAPER, HighlightPhnsetMainWallpaper);
  207. #ifdef __MMI_SUB_WALLPAPER__
  208.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_WALLPAPER_SUB, HighlightPhnsetSubWallpaper);
  209. #endif 
  210. #ifdef __MMI_MAINMENU_STYLE_CHANGE_EN__
  211.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_MAINMENU_STYLE, HintPhnsetMainMenuStyle);
  212.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_MAINMENU_STYLE, HighlightPhnsetMainMenuStyle);
  213. #endif /* __MMI_MAINMENU_STYLE_CHANGE_EN__ */ 
  214. #ifdef __MMI_MOTION_DIAL__
  215.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_DIAL_STYLE, HintPhnsetDialStyle);
  216.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_DIAL_STYLE, HighlightPhnsetDialStyle);
  217. #endif  /* __MMI_MOTION_DIAL__ */
  218. #if defined(__MMI_UI_TECHNO_IDLESCREEN_BAR__)
  219.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_IDLE_CLOCK_TYPE, HintPhnsetIdleClockType);
  220.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_IDLE_CLOCK_TYPE, HighlightPhnsetIdleClockType);
  221. #endif /* defined(__MMI_UI_TECHNO_IDLESCREEN_BAR__) */ 
  222. #ifndef __MMI_HIDE_HOMECITY__
  223.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9142_SETHOMECITY, HighlightPhnsetSetHomeCity);
  224. #endif 
  225. #ifdef __MMI_DUAL_CLOCK__
  226. ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9142_SETFOREIGNCITY, HighlightPhnsetSetForeignCity);
  227. #endif
  228. /* Set highlight and hint function of UART setup */
  229. #ifdef __MMI_DUAL_SIM_MASTER__
  230. ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_UART_SETUP, HighlightPhnsetUARTSetup);
  231. ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_UART_SETUP, HintPhnsetUARTSetup);
  232. #endif /* __MMI_DUAL_SIM_MASTER__ */
  233. #ifndef __MMI_SEPARATE_DT_SETTING__
  234.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9143_SETTIMEANDDATE, HighlightPhnsetSetDT);
  235.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9144_SETTIMEANDDATEFORMAT, HighlightPhnsetSetFormat);
  236. #else /* __MMI_SEPARATE_DT_SETTING__ */ 
  237.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_SETTING_DATEANDFORMAT, HighlightPhnsetSetDateAndFormat);
  238.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_SETTING_TIMEANDFORMAT, HighlightPhnsetSetTimeAndFormat);
  239. #endif /* __MMI_SEPARATE_DT_SETTING__ */ 
  240. #ifdef __MMI_TIMEZONE_CHANGE_DATETIME__
  241.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_TZ_CHANGE_DATETIME, HighlightPhnsetDateTimeUpdateStatus);
  242. ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_TZ_CHANGE_DATETIME, HintPhnsetDateTimeUpdateStatus);
  243. #endif /* __MMI_TIMEZONE_CHANGE_DATETIME__ */
  244. #ifdef __FLIGHT_MODE_SUPPORT__
  245. #ifndef __MMI_DUAL_SIM_MASTER__
  246.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_FLIGHT_MODE, HighlightPhnsetFlightMode);
  247. #endif  /* __MMI_DUAL_SIM_MASTER__ */
  248. #endif 
  249. #ifndef __MMI_HIDE_HOMECITY__
  250.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU9142_SETHOMECITY, HintPhnsetTimeAndDate);
  251. #endif 
  252. #ifdef __MMI_DUAL_CLOCK__
  253. ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU9142_SETFOREIGNCITY, HintPhnsetTimeAndDate);
  254. #endif
  255.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU9146_WELCOME_TEXT, HintPhnsetWelcomeText);
  256.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_LANGUAGE, HintPhnsetLanguage);
  257.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_SHOW_OWN_NUMBER, HintPhnsetOwnerNum);
  258. #ifdef __MMI_CALENDAR_ON_IDLE_SCREEN__
  259.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_CALENDAR_IDLESCREEN, HintPhnsetCalendarIdleScreen);
  260. #endif
  261. #ifdef __MMI_DUAL_CLOCK__
  262. #ifndef __MMI_VUI_HOMESCREEN_DUALCLOCK__
  263.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_DUAL_CLOCK_IDLESCREEN, HintPhnsetDualClockIdleScreen);
  264. ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_DUAL_CLOCK_IDLESCREEN, HighlightPhnsetDualClockIdleScreen);
  265. #endif
  266. #endif
  267. #ifdef __MMI_OP11_HOMESCREEN__
  268. /* under construction !*/
  269. /* under construction !*/
  270. #endif /* __MMI_OP11_HOMESCREEN__ */
  271. #ifdef __MMI_OP12_TOOLBAR__
  272.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_TOOLBAR, HintPhnsetToolBarStatus);
  273.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_TOOLBAR, HighlightPhnsetToolBarStatus);
  274. #endif /* __MMI_OP12_TOOLBAR__ */
  275. #ifdef __MMI_SCREEN_SWITCH_EFFECT__
  276.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_SCRSWITCH_EFFECT, HintPhnsetScreenSwitchEffectStatus);
  277.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_SCRSWITCH_EFFECT, HighlightPhnsetScreenSwitchEffectStatus);
  278. #endif /* __MMI_SCREEN_SWITCH_EFFECT__ */
  279. #if defined(__MMI_OPERATOR_NAME_MENU__)
  280.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_SHOW_OPN, HintPhnsetOPN);
  281. #endif 
  282.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_SHOW_DT_TIME, HintPhnsetShowDateTime);
  283.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_WALLPAPER, HintPhnsetWallpaper);
  284. #ifdef __MMI_SUB_WALLPAPER__
  285.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_WALLPAPER_SUB, HintPhnsetSubWallpaper);
  286. #endif 
  287.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_SCR_SVR, HintPhnsetScreenSaver);
  288. #ifdef __DAILY_WALLPAPER__
  289.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_WALLPAPER_FIX, HighlightPhnsetWallpaperFix);
  290.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_WALLPAPER_ROTATE, HintPhnsetWallpaperRotate);
  291. #endif /* __DAILY_WALLPAPER__ */ 
  292. #ifdef __MMI_NITZ__
  293.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU9145_SETTIMEANDDATENITZ, HintPhnsetNITZ);
  294.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9145_SETTIMEANDDATENITZ, HighlightPhnsetNITZ);
  295. #endif /* __MMI_NITZ__ */ 
  296. #ifdef __MMI_PREFER_INPUT_METHOD__
  297.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_PREFERED_INPUT_METHOD, HintPhnsetPreferedInputMethod);
  298. #endif 
  299. #if defined(__MMI_PREFER_WRITING_LANG__) || defined(__MMI_MIXED_LANG_SUPPORT__)
  300.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_PREFERED_WRITING_LANG, mmi_phnset_highlight_prefered_writing_lang);
  301. #if defined(__MMI_MIXED_LANG_SUPPORT__)
  302.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_PREFERED_WRITING_LANG_MAIN, mmi_phnset_hint_writing_lang);
  303.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_PREFERED_WRITING_LANG_MAIN, mmi_phnset_writing_lang_highlight_main);
  304.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_PREFERED_WRITING_LANG_SUB, mmi_phnset_writing_lang_hint_sub);
  305.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_PREFERED_WRITING_LANG_SUB, mmi_phnset_writing_lang_highlight_sub);
  306. #else
  307.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_PREFERED_WRITING_LANG, mmi_phnset_hint_writing_lang);
  308. #endif /* defined(__MMI_MIXED_LANG_SUPPORT__) */ 
  309. #endif /* defined(__MMI_PREFER_WRITING_LANG__) || defined(__MMI_MIXED_LANG_SUPPORT__) */ 
  310. #if defined(__WIFI_WIZARD_SUPPORT__) && !defined(__MMI_BI_DEGREE_MAIN_MENU_STYLE__) && !defined(__DISABLE_SHORTCUTS_MENU__)
  311. ADD_APPLICATION_MENUITEM_HILITE_HANDLER(EXTRA_SHORTCUTS_MENUID, mmi_highlight_shortcuts);
  312. #endif
  313. #if defined(__MMI_DEDICATED_KEY_SHORTCUTS__) && !defined(__DISABLE_SHORTCUTS_IMPL__)
  314.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_DEDICATED_KEYS, HighlightDedicatedKeys);
  315. #endif 
  316. #if defined(__MMI_TOUCH_SCREEN__)
  317. #if !defined(__MMI_NO_HANDWRITING__)
  318.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_HANDWRITING, HighlightHandwritingSetting);
  319. #endif    
  320.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_CALIBRATION, HighlightCalibrationSetting);
  321. #endif /* __MMI_TOUCH_SCREEN__ */ 
  322. #ifdef __MMI_POWER_ON_OFF_DISPLAY__
  323.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_POWER_ON_DISPLAY, HighlightPhnsetPowerOn);
  324.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_POWER_ON_DISPLAY, HintPhnsetPwrOnDisplay);
  325.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_POWER_OFF_DISPLAY, HighlightPhnsetPowerOff);
  326.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_POWER_OFF_DISPLAY, HintPhnsetPwrOffDisplay);
  327. #endif /* __MMI_POWER_ON_OFF_DISPLAY__ */ 
  328.     /* Cylen 2005/08/23 GPIO Setting */
  329. #ifdef __MMI_CHANGABLE_FONT__
  330.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_FONT_SIZE, HighlightPhnsetFontSize);
  331.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_FONT_SIZE, HintPhnsetFontSize);
  332.     //PhnsetReadFontSize();   /* __USB_IN_NORMAL_MODE__ */
  333. #endif /* __MMI_CHANGABLE_FONT__ */ 
  334.     /* diamond, 2005/07/05 Flight mode */
  335. #ifdef __FLIGHT_MODE_SUPPORT__
  336. #ifndef __MMI_DUAL_SIM_MASTER__
  337.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_FLIGHT_MODE, HintPhnsetFlightMode);
  338. #endif  /* __MMI_DUAL_SIM_MASTER__ */
  339. #endif 
  340.     /* end, diamond */
  341. #ifdef __MMI_TVOUT__
  342.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_SETTING_TVOUT, mmi_phnset_highlight_tvout);
  343.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_SETTING_TVOUT_SETTING, mmi_phnset_highlight_tvout_setting);
  344.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_SETTING_TVOUT_ADJUST, mmi_phnset_highlight_tvout_adjust);
  345. #endif /* __MMI_TVOUT__ */ 
  346. #endif /* 1 */
  347. #if 1   /* screensaver.c */
  348.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_SS_SETTING, HintPhnsetScrSvrSetting);
  349.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_SS_SELECT, HintPhnsetScrSvrSelect);
  350.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_SS_SETTING, HighlightPhnsetScrSvrSetting);
  351.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_SS_SELECT, HighlightPhnsetScrSvrSelect);
  352. #if defined(__MMI_FILE_MANAGER__)
  353.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SELECT_SS_SELECT_SYSTEM, HighlightPhnsetScrSvrSystem);
  354.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MEUN_SELECT_SS_SELECT_DOWNLOAD, HighlightPhnsetScrSvrFmgr);
  355. #ifdef __MMI_AVATAR__
  356.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_SS_SELECT_AVATAR, mmi_phnset_ss_avatar_highlight_hdlr);
  357. #endif /* __MMI_AVATAR__ */
  358. #endif /* __MMI_FILE_MANAGER__ */ 
  359. #endif /* 1 */
  360. #ifdef __MMI_INNERVATION_WORLD__
  361. ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_INNERVATION_WORLD, HighlightInnerWorld);
  362. #ifdef __MMI_TV_PLAYER__
  363. ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_TV_FULLSCREEN_SWITCH, HighlightTVFullScreen);
  364. #endif
  365. ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_VDO_FULLSCREEN_SWITCH, HighlightVDOFullScreen);
  366. ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_CALLIN_MODE, HighlightCallinSilent);
  367. ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_ROCK_SONG_SWITCH, HighlightRockSong);
  368. ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_DYNAMIC_WALLPAPER, HighlightDyWallSetting);
  369. ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_DYNAMIC_WALLPAPER_INSTRUCTIONS, HighlightDyWallInstru);
  370. ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_LAZYBOOTS_CLOCK, HighlightLazyClock);
  371. ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_FMCHNL_SWITCH, HighlightFMChnlSwitch);
  372. ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_DYNAMIC_WALLPAPER, HintDyWallSetting);
  373. #ifdef __MMI_TV_PLAYER__
  374. ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_TV_FULLSCREEN_SWITCH, HintTVFullScreen);
  375. #endif
  376. ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_VDO_FULLSCREEN_SWITCH, HintVDOFullScreen);
  377. ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_ROCK_SONG_SWITCH, HintRockSong);
  378. ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_CALLIN_MODE, HintCallinSilent);
  379. ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_LAZYBOOTS_CLOCK, HintLazyClock);
  380. ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_FMCHNL_SWITCH, HintFMChnlSwitchScreen);
  381. #endif 
  382. #ifdef __MMI_FREETYPE_SETTING_SUPPORT__
  383.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_FREETYPE_SETTING, HintFreeTypeSetting);
  384.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_FREETYPE_SETTING, HighlightFreeTypeSetting);
  385. #endif /* __MMI_FREETYPE_SETTING_SUPPORT__ */
  386. }
  387. /*****************************************************************************
  388.  * FUNCTION
  389.  *  PopulatePhoneSetupResData
  390.  * DESCRIPTION
  391.  *  
  392.  * PARAMETERS
  393.  *  void
  394.  * RETURNS
  395.  *  void
  396.  *****************************************************************************/
  397. void PopulatePhoneSetupResData(void)
  398. {
  399.     /*----------------------------------------------------------------*/
  400.     /* Local Variables                                                */
  401.     /*----------------------------------------------------------------*/
  402.     /*----------------------------------------------------------------*/
  403.     /* Code Body                                                      */
  404.     /*----------------------------------------------------------------*/
  405.     ADD_APPLICATION_MENUITEM((MENU_IDLE_SCR_DISP, MENU9102_INITIAL_SETUP, DISPCHAR_MENU_ITEM_COUNT,     /* menu account */
  406.                               MENU_SETTING_WALLPAPER,   /* menu list */
  407. #ifdef __MMI_SUB_WALLPAPER__
  408.                               MENU_SETTING_WALLPAPER_SUB,
  409. #endif 
  410.                               MENU_SETTING_SCR_SVR,
  411. #if defined(__MMI_POWER_ON_OFF_DISPLAY__)&&!defined(__R301__)
  412.                               MENU_SETTING_POWER_ON_DISPLAY, MENU_SETTING_POWER_OFF_DISPLAY,
  413. #endif 
  414. #if defined(__MMI_MAINMENU_STYLE_CHANGE_EN__)&&!defined(__R301__)
  415.                               MENU_SETTING_MAINMENU_STYLE,
  416. #endif 
  417. #ifdef __MMI_MOTION_DIAL__
  418.                               MENU_SETTING_DIAL_STYLE,
  419. #endif /* __MMI_MOTION_DIAL__ */
  420. #ifdef __MMI_VUI_HOMESCREEN__
  421.   MENU_ID_VUI_PHNSET_HOMESCREEN,
  422. #endif
  423. #ifdef __MMI_VUI_MAINMENU__
  424.   MENU_ID_VUI_PHNSET_MAINMENU_EFFECT,
  425. #endif
  426. #ifdef __MMI_CALENDAR_ON_IDLE_SCREEN__
  427.                               MENU_ID_PHNSET_CALENDAR_IDLESCREEN,
  428. #endif /* __MMI_CALENDAR_ON_IDLE_SCREEN__ */
  429. #ifdef __MMI_DUAL_CLOCK__
  430. #ifndef __MMI_VUI_HOMESCREEN_DUALCLOCK__
  431.                               MENU_ID_PHNSET_DUAL_CLOCK_IDLESCREEN,
  432. #endif /* __MMI_VUI_HOMESCREEN_DUALCLOCK__ */
  433. #endif /* __MMI_DUAL_CLOCK__ */
  434. #ifdef __MMI_OP11_HOMESCREEN__
  435. /* under construction !*/
  436. #endif /* __MMI_OP11_HOMESCREEN__ */
  437. #ifdef __MMI_OP12_TOOLBAR__
  438.                               MENU_ID_PHNSET_TOOLBAR,
  439. #endif /* __MMI_OP12_TOOLBAR__ */
  440.                               MENU_SETTING_SHOW_DT_TIME,
  441.                               /* begin: zhangclc modified at: 2009-12-08 */
  442.                           #if 0
  443.                           #ifndef __MMI_DUAL_SIM_MASTER__
  444.                               MENU_SETTING_SHOW_OWN_NUMBER,
  445.                           #else /* __MMI_DUAL_SIM_MASTER__ */
  446.                               MENU_MTPNP_DM_SHOW_OWNER_NUMBER,
  447.                           #endif /* __MMI_DUAL_SIM_MASTER__ */
  448.                           #endif
  449.                             /* end: zhangclc modified at: 2009-12-08 */
  450. #ifdef __MMI_SCREEN_SWITCH_EFFECT__
  451.                               MENU_ID_PHNSET_SCRSWITCH_EFFECT,
  452. #endif /* __MMI_SCREEN_SWITCH_EFFECT__ */
  453. #if defined(__MMI_OPERATOR_NAME_MENU__)
  454.                               MENU_SETTING_SHOW_OPN,
  455. #endif 
  456. #if defined(__MMI_UI_TECHNO_IDLESCREEN_BAR__)
  457.                               MENU_SETTING_IDLE_CLOCK_TYPE,
  458. #endif 
  459.                               SHOW, NONMOVEABLE, DISP_LIST, STR_IDLE_SCR_DISP, 0));
  460.     ADD_APPLICATION_MENUITEM((MENU_SETTING_SHOW_DT_TIME, MENU_IDLE_SCR_DISP, 0,
  461.                               SHOW, NONMOVEABLE, DISP_LIST, STR_SETTING_SHOW_DT_TIME, 0));
  462. #if defined(__MMI_FILE_MANAGER__)
  463. #ifdef __DAILY_WALLPAPER__      /* Wallpaper daily change */
  464.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER, MENU_IDLE_SCR_DISP, 2,
  465.                               MENU_SETTING_WALLPAPER_FIX,
  466.                               MENU_SETTING_WALLPAPER_ROTATE, SHOW, SHORTCUTABLE, DISP_LIST, STR_SETTING_WALLPAPER, 0));
  467.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_FIX, MENU_SETTING_WALLPAPER, 2,
  468.                               MENU_SETTING_WALLPAPER_SYSTEM,
  469.                               MENU_SETTING_WALLPAPER_DOWNLOAD, SHOW, SHORTCUTABLE, DISP_LIST, STR_WALLPAPER_FIX, 0));
  470.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_ROTATE, MENU_SETTING_WALLPAPER, 0,
  471.                               SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_ROTATE, 0));
  472.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_SYSTEM, MENU_SETTING_WALLPAPER, 0,
  473.                               SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_SYSTEM, 0));
  474.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_DOWNLOAD, MENU_SETTING_WALLPAPER, 0,
  475.                               SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_DOWNLOAD, 0));
  476. #ifdef __MMI_SUB_WALLPAPER__
  477.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_SUB, MENU_IDLE_SCR_DISP, 2,
  478.                               MENU_SETTING_WALLPAPER_FIX,
  479.                               MENU_SETTING_WALLPAPER_ROTATE,
  480.                               SHOW, SHORTCUTABLE, DISP_LIST, STR_SETTING_WALLPAPER_SUB, 0));
  481.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_FIX, MENU_SETTING_WALLPAPER_SUB, 2,
  482.                               MENU_SETTING_WALLPAPER_SYSTEM,
  483.                               MENU_SETTING_WALLPAPER_DOWNLOAD, SHOW, SHORTCUTABLE, DISP_LIST, STR_WALLPAPER_FIX, 0));
  484.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_ROTATE, MENU_SETTING_WALLPAPER_SUB, 0,
  485.                               SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_ROTATE, 0));
  486.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_SYSTEM, MENU_SETTING_WALLPAPER_SUB, 0,
  487.                               SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_SYSTEM, 0));
  488.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_DOWNLOAD, MENU_SETTING_WALLPAPER_SUB, 0,
  489.                               SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_DOWNLOAD, 0));
  490. #endif /* __MMI_SUB_WALLPAPER__ */ 
  491. #else /* __DAILY_WALLPAPER__ */ /* No wallpaper daily change, normal case */
  492.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER, MENU_IDLE_SCR_DISP,
  493.                               DISPSEL_MENU_TOTAL, MENU_SETTING_WALLPAPER_SYSTEM,
  494. #ifndef __MMI_DISPLAY_CHAR_HIDE_MENU_FROM_FILE__
  495.                               MENU_SETTING_WALLPAPER_DOWNLOAD,
  496. #endif /* __MMI_FILE_MANAGER_HIDE_MENU__ */
  497. #ifdef __MMI_AVATAR__
  498.                               MENU_ID_PHNSET_WP_AVATAR,
  499. #endif
  500.                               SHOW, SHORTCUTABLE, DISP_LIST, STR_SETTING_WALLPAPER, 0));
  501.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_SYSTEM, MENU_SETTING_WALLPAPER, 0,
  502.                               SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_SYSTEM, 0));
  503.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_DOWNLOAD, MENU_SETTING_WALLPAPER, 0,
  504.                               SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_DOWNLOAD, 0));
  505. #ifdef __MMI_AVATAR__
  506.     ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_WP_AVATAR, MENU_SETTING_WALLPAPER, 0,
  507.                               SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_WP_AVATAR, 0));
  508. #endif  
  509. #ifdef __MMI_SUB_WALLPAPER__
  510.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_SUB, MENU_IDLE_SCR_DISP, 1,
  511.                               MENU_SETTING_WALLPAPER_SYSTEM,
  512.                               SHOW, SHORTCUTABLE, DISP_LIST, STR_SETTING_WALLPAPER_SUB, 0));
  513.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_SYSTEM, MENU_SETTING_WALLPAPER_SUB, 0,
  514.                               SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_SYSTEM, 0));
  515.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_DOWNLOAD, MENU_SETTING_WALLPAPER_SUB, 0,
  516.                               SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_DOWNLOAD, 0));
  517. #endif /* __MMI_SUB_WALLPAPER__ */ 
  518. #endif /* __DAILY_WALLPAPER__ */ 
  519. #else /* defined(__MMI_FILE_MANAGER__) */ 
  520.     /* Wap and FileManager are both not support */
  521. #ifdef __DAILY_WALLPAPER__
  522.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER, MENU_IDLE_SCR_DISP, 2,
  523.                               MENU_SETTING_WALLPAPER_FIX,
  524.                               MENU_SETTING_WALLPAPER_ROTATE, SHOW, SHORTCUTABLE, DISP_LIST, STR_SETTING_WALLPAPER, 0));
  525.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_FIX, MENU_SETTING_WALLPAPER, 0,
  526.                               SHOW, SHORTCUTABLE, DISP_LIST, STR_WALLPAPER_FIX, 0));
  527.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_ROTATE, MENU_SETTING_WALLPAPER, 0,
  528.                               SHOW, SHORTCUTABLE, DISP_LIST, STR_WALLPAPER_ROTATE, 0));
  529. #ifdef __MMI_SUB_WALLPAPER__
  530.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_SUB, MENU_IDLE_SCR_DISP, 2,
  531.                               MENU_SETTING_WALLPAPER_FIX,
  532.                               MENU_SETTING_WALLPAPER_ROTATE,
  533.                               SHOW, SHORTCUTABLE, DISP_LIST, STR_SETTING_WALLPAPER_SUB, 0));
  534.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_FIX, MENU_SETTING_WALLPAPER_SUB, 0,
  535.                               SHOW, SHORTCUTABLE, DISP_LIST, STR_WALLPAPER_FIX, 0));
  536.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_ROTATE, MENU_SETTING_WALLPAPER_SUB, 0,
  537.                               SHOW, SHORTCUTABLE, DISP_LIST, STR_WALLPAPER_ROTATE, 0));
  538. #endif /* __MMI_SUB_WALLPAPER__ */ 
  539. #else /* __DAILY_WALLPAPER__ */ 
  540.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER, MENU_IDLE_SCR_DISP, 0,
  541.                               SHOW, SHORTCUTABLE, DISP_LIST, STR_SETTING_WALLPAPER, 0));
  542. #ifdef __MMI_SUB_WALLPAPER__
  543.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_SUB, MENU_IDLE_SCR_DISP, 0,
  544.                               SHOW, SHORTCUTABLE, DISP_LIST, STR_SETTING_WALLPAPER_SUB, 0));
  545. #endif /* __MMI_SUB_WALLPAPER__ */ 
  546. #endif /* __DAILY_WALLPAPER__ */ 
  547. #endif /* defined(__MMI_FILE_MANAGER__) */ /* #if defined( __MMI_FILE_MANAGER__ ) */
  548.     ADD_APPLICATION_MENUITEM((MENU_SETTING_SCR_SVR, MENU_IDLE_SCR_DISP, 2,
  549.                               MENU_SETTING_SS_SETTING,
  550.                               MENU_SETTING_SS_SELECT, SHOW, SHORTCUTABLE, DISP_LIST, STR_MENU_SETTING_SCREEN_SVR, 0));
  551.     ADD_APPLICATION_MENUITEM((MENU_SETTING_SS_SETTING, MENU_SETTING_SCR_SVR, 0,
  552.                               SHOW, NONMOVEABLE, DISP_LIST, STR_GLOBAL_SETTINGS, 0));
  553. #if defined(__MMI_FILE_MANAGER__)
  554.     ADD_APPLICATION_MENUITEM((MENU_SETTING_SS_SELECT, MENU_SETTING_SCR_SVR,
  555.                               DISPSEL_MENU_TOTAL, MENU_SELECT_SS_SELECT_SYSTEM,
  556. #ifndef __MMI_DISPLAY_CHAR_HIDE_MENU_FROM_FILE__
  557.                               MEUN_SELECT_SS_SELECT_DOWNLOAD,
  558. #endif 
  559. #ifdef __MMI_AVATAR__
  560.                               MENU_ID_PHNSET_SS_SELECT_AVATAR,
  561. #endif
  562.                               SHOW, NONMOVEABLE, DISP_LIST, STR_GLOBAL_SELECT, 0));
  563.     ADD_APPLICATION_MENUITEM((MENU_SELECT_SS_SELECT_SYSTEM, MENU_SETTING_SS_SELECT, 0,
  564.                               SHOW, NONMOVEABLE, DISP_LIST, STR_SCR_SCREENSAVER_SYSTEM, 0));
  565.     ADD_APPLICATION_MENUITEM((MEUN_SELECT_SS_SELECT_DOWNLOAD, MENU_SETTING_SS_SELECT, 0,
  566.                               SHOW, NONMOVEABLE, DISP_LIST, STR_SCR_SCREENSAVER_DOWNLOAD, 0));
  567. #ifdef __MMI_AVATAR__
  568.     ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_SS_SELECT_AVATAR, MENU_SETTING_SS_SELECT, 0,
  569.                               SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_SS_AVATAR, 0));
  570. #endif
  571. #else /* defined(__MMI_FILE_MANAGER__) */ 
  572.     ADD_APPLICATION_MENUITEM((MENU_SETTING_SS_SELECT, MENU_SETTING_SCR_SVR, 0,
  573.                               SHOW, NONMOVEABLE, DISP_LIST, STR_GLOBAL_SELECT, 0));
  574. #endif /* defined(__MMI_FILE_MANAGER__) */ 
  575. #ifdef __MMI_POWER_ON_OFF_DISPLAY__
  576.     ADD_APPLICATION_MENUITEM((MENU_SETTING_POWER_ON_DISPLAY, MENU_IDLE_SCR_DISP, DISPSEL_MENU_TOTAL,
  577.                               MENU_SETTING_POWER_ON_SYSTEM,
  578. #ifndef __MMI_DISPLAY_CHAR_HIDE_MENU_FROM_FILE__
  579.                               MENU_SETTING_POWER_ON_DOWNLOAD,
  580. #endif
  581. #ifdef __MMI_AVATAR__
  582.                               MENU_ID_PHNSET_PWRON_AVATAR,
  583. #endif
  584.                               SHOW, NONMOVEABLE, DISP_LIST, STR_SETTING_POWER_ON_DISPLAY, 0));
  585.     ADD_APPLICATION_MENUITEM((MENU_SETTING_POWER_ON_SYSTEM, MENU_SETTING_POWER_ON_DISPLAY, 0,
  586.                               SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_ON_OFF_SYSTEM, 0));
  587.     ADD_APPLICATION_MENUITEM((MENU_SETTING_POWER_ON_DOWNLOAD, MENU_SETTING_POWER_ON_DISPLAY, 0,
  588.                               SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_ON_OFF_DOWNLOAD, 0));
  589. #ifdef __MMI_AVATAR__
  590.     ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_PWRON_AVATAR, MENU_SETTING_POWER_ON_DISPLAY, 0,
  591.                               SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_ON_OFF_AVATAR, 0));
  592. #endif
  593.     ADD_APPLICATION_MENUITEM((MENU_SETTING_POWER_OFF_DISPLAY, MENU_IDLE_SCR_DISP, DISPSEL_MENU_TOTAL,
  594.                               MENU_SETTING_POWER_OFF_SYSTEM,
  595. #ifndef __MMI_DISPLAY_CHAR_HIDE_MENU_FROM_FILE__
  596.                               MENU_SETTING_POWER_OFF_DOWNLOAD,
  597. #endif
  598. #ifdef __MMI_AVATAR__
  599.                               MENU_ID_PHNSET_PWROFF_AVATAR,
  600. #endif
  601.                               SHOW, NONMOVEABLE, DISP_LIST, STR_SETTING_POWER_OFF_DISPLAY, 0));
  602.     ADD_APPLICATION_MENUITEM((MENU_SETTING_POWER_OFF_SYSTEM, MENU_SETTING_POWER_OFF_DISPLAY, 0,
  603.                               SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_ON_OFF_SYSTEM, 0));
  604.     ADD_APPLICATION_MENUITEM((MENU_SETTING_POWER_OFF_DOWNLOAD, MENU_SETTING_POWER_OFF_DISPLAY, 0,
  605.                               SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_ON_OFF_DOWNLOAD, 0));
  606. #ifdef __MMI_AVATAR__
  607.     ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_PWROFF_AVATAR, MENU_SETTING_POWER_OFF_DISPLAY, 0,
  608.                               SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_ON_OFF_AVATAR, 0));
  609. #endif
  610. #endif /* __MMI_POWER_ON_OFF_DISPLAY__ */ 
  611.     ADD_APPLICATION_MENUITEM((MENU_SETTING_SHOW_OWN_NUMBER, 
  612.                           #ifndef __MMI_DUAL_SIM_MASTER__
  613.                               MENU_IDLE_SCR_DISP,
  614.                           #else /* __MMI_DUAL_SIM_MASTER__ */
  615.                               MENU_MTPNP_DM_SHOW_OWNER_NUMBER,
  616.                           #endif /* __MMI_DUAL_SIM_MASTER__ */
  617.                               0,
  618.                               SHOW, NONMOVEABLE, DISP_LIST, 
  619.                           #ifndef __MMI_DUAL_SIM_MASTER__
  620.                               STR_OWN_NO,
  621.                           #else /* __MMI_DUAL_SIM_MASTER__ */
  622.                               STRING_MTPNP_CARD1_SHOW_OWNER_NUMBER,
  623.                           #endif /* __MMI_DUAL_SIM_MASTER__ */
  624.                               0));
  625. #ifdef __MMI_VUI_HOMESCREEN__
  626. ADD_APPLICATION_MENUITEM((MENU_ID_VUI_PHNSET_HOMESCREEN, MENU_IDLE_SCR_DISP, 0,
  627.         SHOW, NONMOVEABLE, DISP_LIST, STR_ID_VUI_PHNSET_HOMESCREEN, 0));
  628. ADD_APPLICATION_STRING2(STR_ID_VUI_PHNSET_HOMESCREEN, "Interactive Screen", "Interactive Screen");
  629. #endif /* __MMI_VUI_HOMESCREEN__ */
  630. #ifdef __MMI_VUI_MAINMENU__
  631. ADD_APPLICATION_MENUITEM((MENU_ID_VUI_PHNSET_MAINMENU_EFFECT, MENU_IDLE_SCR_DISP, 0,
  632.         SHOW, NONMOVEABLE, DISP_LIST, STR_ID_VUI_PHNSET_MAINMENU_EFFECT, 0));
  633. ADD_APPLICATION_STRING2(STR_ID_VUI_PHNSET_MAINMENU_EFFECT, "Mainmenu effect", "mainmenu effect");
  634. ADD_APPLICATION_STRING2(STR_ID_VUI_PHNSET_MAINMENU_EFFECT1, "Squeeze", "mainmenu effect");
  635. ADD_APPLICATION_STRING2(STR_ID_VUI_PHNSET_MAINMENU_EFFECT2, "Jump", "mainmenu effect");
  636. ADD_APPLICATION_STRING2(STR_ID_VUI_PHNSET_MAINMENU_EFFECT3, "Jelly", "mainmenu effect");
  637. ADD_APPLICATION_STRING2(STR_ID_VUI_PHNSET_MAINMENU_EFFECT4, "Bubble", "mainmenu effect");
  638. ADD_APPLICATION_STRING2(STR_ID_VUI_PHNSET_MAINMENU_EFFECT5, "Rotate", "mainmenu effect");
  639. #endif /* __MMI_VUI_MAINMENU__ */
  640. #ifdef __MMI_CALENDAR_ON_IDLE_SCREEN__
  641.     ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_CALENDAR_IDLESCREEN, MENU_IDLE_SCR_DISP, 0,
  642.         SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_CALENDAR_SCREEN, 0));
  643. #endif /* __MMI_CALENDAR_ON_IDLE_SCREEN__ */
  644. #ifdef __MMI_DUAL_CLOCK__
  645. #ifndef __MMI_VUI_HOMESCREEN_DUALCLOCK__
  646.     ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_DUAL_CLOCK_IDLESCREEN, MENU_IDLE_SCR_DISP, 0,
  647.         SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_DUAL_CLOCK_SCREEN, 0));
  648. #endif /* __MMI_VUI_HOMESCREEN_DUALCLOCK__ */
  649. #endif /* __MMI_PHNSET_FOREIGN_CITY__ */
  650. #ifdef __MMI_OP11_HOMESCREEN__
  651. /* under construction !*/
  652. /* under construction !*/
  653. #endif /* __MMI_OP11_HOMESCREEN__ */
  654.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_HOMESCREEN, "Phnset Homescreen", "Home Screen");
  655. #ifdef __MMI_OP12_TOOLBAR__
  656.     ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_TOOLBAR, MENU_IDLE_SCR_DISP, 0,
  657.         SHOW, NONMOVEABLE, DISP_LIST, STR_ID_TB_TOOLBAR_SETTINGS, 0));
  658. #endif /* __MMI_OP12_TOOLBAR__ */
  659. #ifdef __MMI_SCREEN_SWITCH_EFFECT__
  660.     ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_SCRSWITCH_EFFECT, MENU_IDLE_SCR_DISP, 0,
  661.         SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_SCREEN_SWITCH_EFFECT, 0));
  662. ADD_APPLICATION_STRING2(STR_ID_PHNSET_SCREEN_SWITCH_EFFECT, "Screen switch effect", "Screen switch effect");
  663. ADD_APPLICATION_STRING2(STR_ID_PHNSET_SSE_SIMPLE, "Simple", "sse simple");
  664. ADD_APPLICATION_STRING2(STR_ID_PHNSET_SSE_FULL, "Full", "SSE Full");
  665. #endif /* __MMI_SCREEN_SWITCH_EFFECT__ */
  666. #if defined(__MMI_OPERATOR_NAME_MENU__)
  667.     ADD_APPLICATION_MENUITEM((MENU_SETTING_SHOW_OPN, MENU_IDLE_SCR_DISP, 0, SHOW, NONMOVEABLE, DISP_LIST, STR_OPN, 0));
  668. #endif 
  669. #ifdef __MMI_MAINMENU_STYLE_CHANGE_EN__
  670.     ADD_APPLICATION_MENUITEM((MENU_SETTING_MAINMENU_STYLE, MENU_IDLE_SCR_DISP, MAINMENU_STYLE_COUNT,    /* item number */
  671.                               /* menu items */
  672. #ifdef __MMI_MAINMENU_MATRIX_SUPPORT__
  673.                               MENU_SETTING_MAINMENU_STYLE_MATRIX,
  674. #endif 
  675. #ifdef __MMI_MAINMENU_PAGE_SUPPORT__
  676. #ifndef __MMI_TOUCH_SCREEN__
  677.                               MENU_SETTING_MAINMENU_STYLE_PAGE,
  678. #endif 
  679. #endif /* __MMI_MAINMENU_PAGE_SUPPORT__ */ 
  680. #ifdef __MMI_MAINMENU_LIST_SUPPORT__
  681.                               MENU_SETTING_MAINMENU_STYLE_LIST,
  682. #endif 
  683. #ifdef __MMI_MAINMENU_CIRCULAR_SUPPORT__
  684.                               MENU_SETTING_MAINMENU_STYLE_CIRCULAR,
  685. #endif 
  686. #ifdef __MMI_MAINMENU_ROTATE_SUPPORT__
  687.                               MENU_SETTING_MAINMENU_STYLE_ROTATE,
  688. #endif 
  689.                               SHOW, NONMOVEABLE, DISP_LIST, STR_MAINMENU_STYLE, 0));
  690.     ADD_APPLICATION_MENUITEM((MENU_SETTING_MAINMENU_STYLE_MATRIX, MENU_SETTING_MAINMENU_STYLE, 0,
  691.                               SHOW, NONMOVEABLE, DISP_LIST, STR_MAINMENU_STYLE_MATRIX, 0));
  692.     ADD_APPLICATION_MENUITEM((MENU_SETTING_MAINMENU_STYLE_PAGE, MENU_SETTING_MAINMENU_STYLE, 0,
  693.                               SHOW, NONMOVEABLE, DISP_LIST, STR_MAINMENU_STYLE_PAGE, 0));
  694.     ADD_APPLICATION_MENUITEM((MENU_SETTING_MAINMENU_STYLE_CIRCULAR, MENU_SETTING_MAINMENU_STYLE, 0,
  695.                               SHOW, NONMOVEABLE, DISP_LIST, STR_MAINMENU_STYLE_CIRCULAR, 0));
  696.     ADD_APPLICATION_MENUITEM((MENU_SETTING_MAINMENU_STYLE_ROTATE, MENU_SETTING_MAINMENU_STYLE, 0,
  697.                               SHOW, NONMOVEABLE, DISP_LIST, STR_MAINMENU_STYLE_ROTATE, 0));
  698.     ADD_APPLICATION_MENUITEM((MENU_SETTING_MAINMENU_STYLE_LIST, MENU_SETTING_MAINMENU_STYLE, 0,
  699.                               SHOW, NONMOVEABLE, DISP_LIST, STR_MAINMENU_STYLE_LIST, 0));
  700.     ADD_APPLICATION_MENUITEM((MENU_SETTING_MAINMENU_STYLE_TAB, MENU_SETTING_MAINMENU_STYLE, 0,
  701.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_MAINMENU_STYLE_TAB, 0));
  702. #endif /* __MMI_MAINMENU_STYLE_CHANGE_EN__ */ 
  703. #ifdef __MMI_MOTION_DIAL__
  704.     ADD_APPLICATION_MENUITEM((MENU_SETTING_DIAL_STYLE, MENU_IDLE_SCR_DISP, 0,
  705.                               SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_DIAL_STYLE, 0));
  706. #endif 
  707.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_DIAL_STYLE, "Dial Style", "Dial Style");
  708. #if defined(__MMI_UI_TECHNO_IDLESCREEN_BAR__)
  709.     ADD_APPLICATION_MENUITEM((MENU_SETTING_IDLE_CLOCK_TYPE, MENU_IDLE_SCR_DISP, 0,
  710.                               SHOW, (MOVEABLEWITHINPARENT | SHORTCUTABLE), DISP_LIST, STR_ID_IDLE_CLOCK_TYPE, 0));
  711.     ADD_APPLICATION_STRING2(STR_ID_IDLE_CLOCK_TYPE, "Clock Type", "Idle Clock Type");
  712. #endif /* defined(__MMI_UI_TECHNO_IDLESCREEN_BAR__) */ 
  713.     ADD_APPLICATION_MENUITEM((MENU_SETTING_POWER_SAVING, MENU9102_INITIAL_SETUP, 2,
  714.                               MENU_POWER_SAVING_ON,
  715.                               MENU_POWER_SAVING_OFF, SHOW, NONMOVEABLE, DISP_LIST, STR_MENU_SETTING_POWER_SAVING, 0));
  716.     ADD_APPLICATION_MENUITEM((MENU_POWER_SAVING_OFF, MENU_SETTING_POWER_SAVING, 0,
  717.                               SHOW, NONMOVEABLE, DISP_LIST, STR_GLOBAL_OFF, 0));
  718.     ADD_APPLICATION_MENUITEM((MENU_POWER_SAVING_ON, MENU_SETTING_POWER_SAVING, 0,
  719.                               SHOW, NONMOVEABLE, DISP_LIST, STR_GLOBAL_ON, 0));
  720.     ADD_APPLICATION_MENUITEM((MENU_SETTING_CONTRAST_LEVEL, MENU9102_INITIAL_SETUP, 0,
  721.                               SHOW, SHORTCUTABLE, DISP_LIST, STR_MENU_SETTING_CONTRAST_LEVEL, 0));
  722. #if defined(__MMI_NITZ__) && !defined(__MMI_AUTOTIMEZONE_IN_DATEANDTIME__)
  723.     ADD_APPLICATION_MENUITEM((MENU9145_SETTIMEANDDATENITZ, MENU9102_INITIAL_SETUP, 0,
  724.                               SHOW, NONMOVEABLE, DISP_LIST, STR_MENU_SETTING_MENU_TREE, 0));
  725. #endif /* #if defined(__MMI_NITZ__) && defined(__MMI_AUTOTIMEZONE_IN_DATEANDTIME__) */ 
  726.     ADD_APPLICATION_MENUITEM((MENU_SETTING_SCHEDULE_POWER, MENU9102_INITIAL_SETUP, 2,
  727.                               MENU_SETTING_SCHEDULE_POWER_SET1,
  728.                               MENU_SETTING_SCHEDULE_POWER_SET2,
  729.                               SHOW, MOVEABLEACROSSPARENT | SHORTCUTABLE, DISP_LIST, STR_MENU_SETTING_SCHEDULE_POWER,
  730.                               0));
  731.     ADD_APPLICATION_MENUITEM((MENU_SETTING_SCHEDULE_POWER_SET1, MENU_SETTING_SCHEDULE_POWER, 2,
  732.                               MENU_SETTING_SCH_POW_SET1_POW_ON,
  733.                               MENU_SETTING_SCH_POW_SET1_POW_OFF,
  734.                               SHOW, NONMOVEABLE, DISP_LIST, STR_MENU_SETTING_SCHEDULE_POWER_SET1, 0));
  735.     ADD_APPLICATION_MENUITEM((MENU_SETTING_SCHEDULE_POWER_SET2, MENU_SETTING_SCHEDULE_POWER, 2,
  736.                               MENU_SETTING_SCH_POW_SET1_POW_ON,
  737.                               MENU_SETTING_SCH_POW_SET1_POW_OFF,
  738.                               SHOW, NONMOVEABLE, DISP_LIST, STR_MENU_SETTING_SCHEDULE_POWER_SET2, 0));
  739.     ADD_APPLICATION_MENUITEM((MENU_SETTING_SCH_POW_SET1_POW_ON, MENU_SETTING_SCHEDULE_POWER_SET2, 2,
  740.                               MENU9171_ON,
  741.                               MENU9172_OFF, SHOW, NONMOVEABLE, DISP_LIST, STR_MENU_SETTING_SCH_POW_SET1_POW_ON, 0));
  742.     ADD_APPLICATION_MENUITEM((MENU_SETTING_SCH_POW_SET1_POW_OFF, MENU_SETTING_SCHEDULE_POWER_SET2, 2,
  743.                               MENU9171_ON,
  744.                               MENU9172_OFF, SHOW, NONMOVEABLE, DISP_LIST, STR_MENU_SETTING_SCH_POW_SET1_POW_OFF, 0));
  745.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_CALENDAR_SCREEN, "Calendar Idle Screen", "Calendar screen string");
  746. ADD_APPLICATION_STRING2(STR_ID_PHNSET_DUAL_CLOCK_SCREEN, "Dual clock", "Calendar screen string");
  747.     ADD_APPLICATION_STRING2(STR_MENU_SETTING_POWER_SAVING, "Power Saving", "Power Saving Menu.");
  748.     ADD_APPLICATION_STRING2(STR_MENU_SETTING_CONTRAST_LEVEL, "Contrast", "Contrast Level Menu Caption.");
  749. #if defined(__MMI_NITZ__)
  750.     ADD_APPLICATION_STRING2(STR_MENU_SETTING_MENU_TREE, "Auto Update of Date and Time", "Menu Tree Menu.");
  751. #endif 
  752.     ADD_APPLICATION_STRING2(STR_MENU_SETTING_SCREEN_SVR, "Screen Saver", "Screen Saver Menu Caption.");
  753.     ADD_APPLICATION_STRING2(STR_SETTING_WALLPAPER, "Wallpaper", "Wallpaper Menu Caption.");
  754. #ifdef __MMI_POWER_ON_OFF_DISPLAY__
  755.     ADD_APPLICATION_STRING2(STR_SETTING_POWER_ON_DISPLAY, "Power On Display", "Power on Menu Caption.");
  756.     ADD_APPLICATION_STRING2(STR_SETTING_POWER_OFF_DISPLAY, "Power Off Display", "Power off Menu Caption.");
  757. #endif /* __MMI_POWER_ON_OFF_DISPLAY__ */ 
  758. #ifdef __MMI_SUB_WALLPAPER__
  759.     ADD_APPLICATION_STRING2(STR_SETTING_WALLPAPER_SUB, "Sub Wallpaper", "Wallpaper Menu Caption");
  760. #endif 
  761.     ADD_APPLICATION_STRING2(STR_SETTING_SHOW_DT_TIME, "Show Date and Time", "Show Date and Time Menu Caption.");
  762.     ADD_APPLICATION_STRING2(STR_OWN_NO, "Show Owner Number", "Show Own Number Option.");
  763. #if defined(__MMI_OPERATOR_NAME_MENU__)
  764.     ADD_APPLICATION_STRING2(STR_OPN, "Show Operator Name", "Show Own Number Option.");
  765. #endif 
  766.     ADD_APPLICATION_STRING2(STR_IDLE_SCR_DISP, "Idle Screen Display", "Idle Screen Display Option.");
  767.     ADD_APPLICATION_STRING2(STR_MENU_SETTING_SCHEDULE_POWER, "Schedule Power On/Off", "Scheduled Power On/Off Menu.");
  768.     ADD_APPLICATION_STRING2(STR_MENU_SETTING_SCHEDULE_POWER_SET1, "Set 1", "Set 1 Option.");
  769.     ADD_APPLICATION_STRING2(STR_MENU_SETTING_SCHEDULE_POWER_SET2, "Set 2", "Set 2 Option.");
  770.     ADD_APPLICATION_STRING2(STR_MENU_SETTING_SCH_POW_SET1_POW_ON, "Power On", "On Option.");
  771.     ADD_APPLICATION_STRING2(STR_MENU_SETTING_SCH_POW_SET1_POW_OFF, "Power Off", "Off Option.");
  772.     ADD_APPLICATION_STRING2(STR_SETTING_SPEED_STATUS, "Enable Speed Dial", "Off Option.");
  773.     ADD_APPLICATION_STRING2(STR_SETTING_MAIN_LCD, "Main LCD", "Main LCD Option.");
  774.     ADD_APPLICATION_STRING2(STR_SETTING_SUB_LCD, "Sub LCD", "Sub LCD Option.");
  775.     ADD_APPLICATION_STRING2(STR_POWER_SAVE_TIMER_CAPTION, "Power Save Timer", "Power Save Timer Caption.");
  776.     ADD_APPLICATION_IMAGE2(
  777.         IMG_SETTING_GREET_STATUS,
  778.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\Common\\ST_STATU.PBM",
  779.         "Setting Submenu image for Greeting text status.");
  780.     ADD_APPLICATION_IMAGE2(
  781.         IMG_SETTING_GREET_TEXT,
  782.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\Greeting\\ST_NOTE.PBM",
  783.         "Setting Submenu image for Greeting Text .");
  784.     ADD_APPLICATION_STRING2(STR_SPEEDDIAL_NO_NUM_TODIAL_TEXT, "No Number To Dial!", "STR_SPEEDDIAL_PHONEBOOK_LIST");
  785. #ifdef __MMI_MAINMENU_STYLE_CHANGE_EN__
  786.     ADD_APPLICATION_STRING2(STR_MAINMENU_STYLE, "MainMenu Style", "MainMenu Style Title");
  787.     ADD_APPLICATION_STRING2(STR_MAINMENU_STYLE_MATRIX, "Matrix", "MainMenu Style Matrix");
  788.     ADD_APPLICATION_STRING2(STR_MAINMENU_STYLE_PAGE, "Page", "MainMenu Style Page");
  789.     ADD_APPLICATION_STRING2(STR_MAINMENU_STYLE_CIRCULAR, "Circular", "MainMenu Style Circular");
  790.     ADD_APPLICATION_STRING2(STR_MAINMENU_STYLE_ROTATE, "Rotate", "MainMenu Style Rotate");
  791.     ADD_APPLICATION_STRING2(STR_MAINMENU_STYLE_LIST, "List", "MainMenu Style List");
  792.     ADD_APPLICATION_STRING2(STR_MAINMENU_STYLE_TAB, "Tab", "MainMenu Style List");
  793. #endif /* __MMI_MAINMENU_STYLE_CHANGE_EN__ */ 
  794.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_MAINMENU_1, "Motion MainMenu 1", "Motion MainMenu 1");
  795.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_MAINMENU_2, "Motion MainMenu 2", "Motion MainMenu 2");
  796.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_MAINMENU_3, "Motion MainMenu 3", "Motion MainMenu 3");
  797.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_MAINMENU_4, "Motion MainMenu 4", "Motion MainMenu 4");
  798.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_MAINMENU_5, "Motion MainMenu 5", "Motion MainMenu 5");
  799.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_DIAL_1, "Motion Dialer 1", "Motion Dialer 1");
  800.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_DIAL_2, "Motion Dialer 2", "Motion Dialer 2");
  801.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_DIAL_3, "Motion Dialer 3", "Motion Dialer 3");
  802.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_DIAL_4, "Motion Dialer 4", "Motion Dialer 4");
  803.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_DIAL_5, "Motion Dialer 5", "Motion Dialer 5");
  804. #ifdef __MMI_MOTION_MAINMENU__
  805.     {
  806.         int i = 0;
  807.         int mainmenu_position = sizeof(CUST_IMG_PATH "\\MainLCD\\SWFlash\\MAINMENU_TOUCH_");
  808.         char mainmenu_path[] = CUST_IMG_PATH "\\MainLCD\\SWFlash\\MAINMENU_TOUCH_01.vis";
  809.         for (i = 0; i < PHNSET_MOTION_MAINMENU_NUM; i++)
  810.         {
  811.             mainmenu_path[mainmenu_position] = '1' + i;
  812.             ADD_APPLICATION_IMAGE3((IMG_ID_SWFLASH_MAINMENU1 + i), mainmenu_path, "SWFlash category 9 - need dl.");
  813.         }
  814.     }
  815. #endif /* __MMI_MOTION_MAINMENU__ */
  816. #ifdef __MMI_MOTION_DIAL__
  817.     {
  818.         int i = 0;
  819.         int dialer_position = sizeof(CUST_IMG_PATH"\\MainLCD\\SWFlash\\DIALER_");
  820.         char dialer_path[] = CUST_IMG_PATH"\\MainLCD\\SWFlash\\DIALER_01.vis";
  821.         
  822.         for (i = 0; i < PHNSET_MOTION_DIAL_NUM; i++)
  823.         {
  824.             dialer_path[dialer_position] = '1' + i;
  825.             ADD_APPLICATION_IMAGE3((IMG_ID_SWFLASH_DIALER1 + i), dialer_path, "SWFlash category 9 - need dl.");
  826.         }
  827.     }
  828. #endif /* __MMI_MOTION_DIAL__ */  
  829.     PopulateDisplayChar();
  830. #ifdef __MMI_THEMES_APPLICATION__
  831. PopulateThemes();
  832. #endif
  833. #ifdef __MMI_FREETYPE_SETTING_SUPPORT__
  834.     PopulateFreeType();
  835. #endif
  836. }
  837. #ifdef __MMI_SOUND_EFFECT__
  838. /*****************************************************************************
  839.  * FUNCTION
  840.  *  PopulateSoundEffectResData
  841.  * DESCRIPTION
  842.  *  
  843.  * PARAMETERS
  844.  *  void
  845.  * RETURNS
  846.  *  void
  847.  *****************************************************************************/
  848. void PopulateSoundEffectResData(void)
  849. {
  850.     /*----------------------------------------------------------------*/
  851.     /* Local Variables                                                */
  852.     /*----------------------------------------------------------------*/
  853.     /*----------------------------------------------------------------*/
  854.     /* Code Body                                                      */
  855.     /*----------------------------------------------------------------*/
  856.     /* add hilite hdlr*/
  857.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_SOUND_EFFECT,mmi_settings_sound_effect_highlight_hdlr);
  858. #ifdef __MMI_AUDIO_BASS_ENHANCEMENT__
  859.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MNEU_SETTING_BASS_ENHANCEMENT,mmi_settings_bass_enhancement_highlight_hdlr);
  860. #endif
  861. #if defined(__MMI_AUDIO_EQUALIZER__) || defined(__MMI_AUDIO_REVERB_EFFECT__) || defined(__MMI_AUDIO_SURROUND_EFFECT__)
  862.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_AUDIO_EFFECT,mmi_settings_audio_effect_highlight_hdlr);
  863. #endif
  864. #ifdef __MMI_EDITABLE_AUDIO_EQUALIZER__
  865.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_SELECT,mmi_settings_audio_equalizer_opt_select_highlight_hdlr);
  866.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_EDIT,mmi_settings_audio_equalizer_opt_edit_highlight_hdlr);
  867.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_RENAME,mmi_settings_audio_equalizer_opt_rename_highlight_hdlr);
  868.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_RESET,mmi_settings_audio_equalizer_opt_reset_highlight_hdlr);
  869. #endif    
  870.     /* add menuitems */
  871.     ADD_APPLICATION_MENUITEM2((MENU_SETTING_SOUND_EFFECT, MAIN_MENU_SETTINGS_MENUID, 
  872.                            #if defined(__MMI_AUDIO_EQUALIZER__) || defined(__MMI_AUDIO_REVERB_EFFECT__) || defined(__MMI_AUDIO_SURROUND_EFFECT__)
  873.                                MENU_SETTING_AUDIO_EFFECT,
  874.                            #endif
  875.                            #if defined(__MMI_BG_SOUND_EFFECT__)
  876.                            #ifndef __UCM_SUPPORT__
  877.                                MENU_ID_BGSND_CALL_SETUP,
  878.                            #endif
  879.                            #endif
  880.                            #ifdef __MMI_AUDIO_BASS_ENHANCEMENT__
  881.                                MNEU_SETTING_BASS_ENHANCEMENT,
  882.                            #endif
  883.                                MENU_ITEM_END,
  884.                                SHOW, MOVEABLEACROSSPARENT, DISP_LIST, STR_ID_SETTING_SOUND_EFFECT,
  885.                                IMG_ID_SETTING_SOUND_EFFECT));
  886.     ADD_APPLICATION_STRING2(STR_ID_SETTING_SOUND_EFFECT, "Sound effects", "Menu item string for Sound Effect");
  887. #ifdef __SUB_MENU_MATRIX_DISPLAY__
  888.     ADD_APPLICATION_IMAGE2(
  889.         IMG_ID_SETTING_SOUND_EFFECT,
  890.         CUST_IMG_PATH"\\MainLCD\\MainMenu\\MATRIX\\setting\\SOUND_EFFECT.png",
  891.         "Menu item image for Sound Effect");
  892.     ADD_APPLICATION_IMAGE2(
  893.         IMG_ID_SETTING_SOUND_EFFECT_EX,
  894.         CUST_IMG_PATH"\\MainLCD\\MainMenu\\MATRIX\\setting\\SOUND_EFFECT_ani.png",
  895.         "Menu item image for Sound Effect");
  896. #else
  897.     ADD_APPLICATION_IMAGE2(
  898.         IMG_ID_SETTING_SOUND_EFFECT,
  899.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SB_SNDEFT.pbm",
  900.         "Menu item image for Sound Effect");
  901. #endif
  902. #ifdef __MMI_AUDIO_BASS_ENHANCEMENT__
  903.     ADD_APPLICATION_MENUITEM((MNEU_SETTING_BASS_ENHANCEMENT, MENU_SETTING_SOUND_EFFECT, 0, SHOW,
  904.                               MOVEABLEACROSSPARENT | SHORTCUTABLE, DISP_LIST, STR_ID_SETTING_BASS_ENHANCEMENT,
  905.                               IMG_ID_SETTING_BASS_ENHANCEMENT));
  906.     ADD_APPLICATION_STRING2(STR_ID_SETTING_BASS_ENHANCEMENT, "Bass enhancement", "Audio setting bass enhancement");
  907.     ADD_APPLICATION_IMAGE2(
  908.         IMG_ID_SETTING_BASS_ENHANCEMENT,
  909.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SoundEffect\\ST_SUPER_BASS.pbm",
  910.         "Menu item image for bass enhancement");
  911. #endif
  912. #if defined(__MMI_AUDIO_EQUALIZER__) || defined(__MMI_AUDIO_REVERB_EFFECT__) || defined(__MMI_AUDIO_SURROUND_EFFECT__)
  913.                            
  914.     ADD_APPLICATION_MENUITEM((MENU_SETTING_AUDIO_EFFECT, MENU_SETTING_SOUND_EFFECT, 0, SHOW,
  915.                               MOVEABLEACROSSPARENT | SHORTCUTABLE, DISP_LIST, STR_ID_SETTING_AUDIO_EFFECT,
  916.                               IMG_ID_SETTING_AUDIO_REVERB_EFFECT));
  917. #ifdef __MMI_EDITABLE_AUDIO_EQUALIZER__
  918.     /* menu items for the setting options. */
  919.     ADD_APPLICATION_MENUITEM((MENU_SETTING_AUDIO_EQUALIZER_SET_OPT, 0, 4, MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_SELECT,
  920.                               MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_EDIT, MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_RENAME,
  921.                               MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_RESET,SHOW, NONMOVEABLE, DISP_LIST, STR_GLOBAL_OPTIONS, NULL));
  922.     ADD_APPLICATION_MENUITEM((MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_SELECT, MENU_SETTING_AUDIO_EQUALIZER_SET_OPT, 0,
  923.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_SELECT, NULL));
  924.     ADD_APPLICATION_MENUITEM((MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_EDIT, MENU_SETTING_AUDIO_EQUALIZER_SET_OPT, 0, SHOW,
  925.                               MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_EDIT, NULL));
  926.     ADD_APPLICATION_MENUITEM((MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_RENAME, MENU_SETTING_AUDIO_EQUALIZER_SET_OPT, 0,
  927.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_RENAME,
  928.                               NULL));
  929.     ADD_APPLICATION_MENUITEM((MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_RESET, MENU_SETTING_AUDIO_EQUALIZER_SET_OPT, 0,
  930.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_SETTING_AUDIO_EQUALIZER_REST_FACT_DEFAULT,
  931.                               NULL));
  932.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_EQUALIZER_CAPTION, "Equalizer", "Title string for the Equalizer Menu");
  933.     ADD_APPLICATION_STRING2(
  934.         STR_ID_SETTING_AUDIO_EQUALIZER_REST_FACT_DEFAULT,
  935.         "Restore default",
  936.         "String for Restoring the Audio Equalizer Setting values to default");
  937.     ADD_APPLICATION_STRING2(
  938.         STR_ID_SETTING_AUDIO_EQUALIZER_SETTIN_NAME_EDIT_TITLE,
  939.         "Enter Name",
  940.         "Title string for setting name editing screen ");
  941.     ADD_APPLICATION_STRING2(
  942.         STR_ID_SETTING_AUDIO_EQUALIZER_SETTING_INVALID_NAME,
  943.         "Empty Name",
  944.         "Warning string for invalid/empty name");
  945. #endif /* __MMI_EDITABLE_AUDIO_EQUALIZER__ */ 
  946.     /* add string resources */
  947.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_EQUALIZER_REST_FACT_DEFAULT_CONFIRM, "Restore default settings?","restore default confirm" );
  948.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_EFFECT, "Audio Effect", "Menu item string for Audio Effect");
  949.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_EQUALIZER, "Equalizer", "Menu item string for Audio Equalizer");
  950.     ADD_APPLICATION_STRING2(
  951.         STR_ID_SETTING_AUDIO_EQUALIZER_SET_1,
  952.         "Normal",
  953.         "Menu item string for Audio Equalizer Set 1");
  954.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_EQUALIZER_SET_2, "Bass", "Menu item string for Audio Equalizer Set 2");
  955.     ADD_APPLICATION_STRING2(
  956.         STR_ID_SETTING_AUDIO_EQUALIZER_SET_3,
  957.         "Dance",
  958.         "Menu item string for Audio Equalizer Set 3");
  959.     ADD_APPLICATION_STRING2(
  960.         STR_ID_SETTING_AUDIO_EQUALIZER_SET_4,
  961.         "Classical",
  962.         "Menu item string for Audio Equalizer Set 4");
  963.     ADD_APPLICATION_STRING2(
  964.         STR_ID_SETTING_AUDIO_EQUALIZER_SET_5,
  965.         "Treble",
  966.         "Menu item string for Audio Equalizer Set 5");
  967.     ADD_APPLICATION_STRING2(
  968.         STR_ID_SETTING_AUDIO_EQUALIZER_SET_6,
  969.         "Party",
  970.         "Menu item string for Audio Equalizer Set 6");
  971.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_EQUALIZER_SET_7, "Pop", "Menu item string for Audio Equalizer Set 7");
  972.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_EQUALIZER_SET_8, "Rock", "Menu item string for Audio Equalizer Set 8");
  973.     /* add image resources */
  974.     ADD_APPLICATION_IMAGE2(
  975.         IMG_ID_SETTING_AUDIO_EQUALIZER,
  976.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SoundEffect\\ST_AUDIO_EQ.pbm",
  977.         "Menu item image for Audio Equalizer");
  978.     ADD_APPLICATION_IMAGE2(
  979.         IMG_ID_SETTING_AUDIO_REVERB_EFFECT,
  980.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SoundEffect\\ST_AUDIO_REVERB.pbm",
  981.         "Menu item image for Audio Reverb Effect");
  982.     /*
  983.      *   Populate Audio Reverb Effect Resource.
  984.      */
  985. #ifdef __MMI_AUDIO_REVERB_EFFECT__
  986.     /* Add menuitems */
  987.     /* Add string resources */
  988.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_REVERB_EFFECT, "Reverb Effect", "Menu item string for Audio Reverb Effect");
  989.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_REVERB_EFFECT_SET1, "Concert", "Menu item string for Audio Reverb Effect");
  990.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_REVERB_EFFECT_SET2, "Shower", "Menu item string for Audio Reverb Effect");
  991.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_REVERB_EFFECT_SET3, "Church", "Menu item string for Audio Reverb Effect");
  992.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_REVERB_EFFECT_SET4, "Small Room", "Menu item string for Audio Reverb Effect");
  993.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_REVERB_EFFECT_SET5, "Opera", "Menu item string for Audio Reverb Effect");
  994.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_REVERB_EFFECT_SET6, "Bath Room", "Menu item string for Audio Reverb Effect");
  995.     /* add image resources */
  996. #endif /* __MMI_AUDIO_REVERB_EFFECT__ */ 
  997.     /*
  998.      *   Populate Audio Surround Effect Resource.
  999.      */
  1000. #ifdef __MMI_AUDIO_SURROUND_EFFECT__
  1001.     /* Add menuitems */
  1002.     /* Add string resources */
  1003.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_SURROUND_EFFECT, "3D Surround Effect", "Menu item string for Audio Surround Effect");
  1004.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_SURROUND_PLUG_EAPHONE, "Plug earphone for the effect", "Menu item string for Audio Surround Effect");
  1005.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_SURROUND_MODE1, "Mode 1", "Menu item string for Audio Surround Effect");
  1006.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_SURROUND_MODE2, "Mode 2", "Menu item string for Audio Surround Effect");
  1007.     /* add image resources */
  1008.     ADD_APPLICATION_IMAGE2(
  1009.         IMG_ID_SETTING_AUDIO_SURROUND_EFFECT,
  1010.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SoundEffect\\ST_AUDIO_3D.pbm",
  1011.         "Menu item image for Audio Surround Effect");
  1012. #endif /*__MMI_AUDIO_SURROUND_EFFECT__*/
  1013. #if defined(__MMI_AUDIO_SURROUND_EFFECT__) && defined(__MMI_AUDIO_REVERB_EFFECT__)
  1014.     ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_EFFECT_NO_COEXIST, "Reverb and surround can't turn on together", "Menu item string for Audio Surround Effect");
  1015. #endif /*#if defined(__MMI_AUDIO_SURROUND_EFFECT__) || (__MMI_AUDIO_REVERB_EFFECT__)*/
  1016. #endif /*#if defined(__MMI_AUDIO_EQUALIZER__) || defined(__MMI_AUDIO_REVERB_EFFECT__) || defined(__MMI_AUDIO_SURROUND_EFFECT__)*/
  1017. }
  1018. #endif /* __MMI_SOUND_EFFECT__ */ 
  1019. /*****************************************************************************
  1020.  * FUNCTION
  1021.  *  PopulatePrefNwk
  1022.  * DESCRIPTION
  1023.  *  
  1024.  * PARAMETERS
  1025.  *  void
  1026.  * RETURNS
  1027.  *  void
  1028.  *****************************************************************************/
  1029. void PopulatePrefNwk(void)
  1030. {
  1031.     /*----------------------------------------------------------------*/
  1032.     /* Local Variables                                                */
  1033.     /*----------------------------------------------------------------*/
  1034.     /*----------------------------------------------------------------*/
  1035.     /* Code Body                                                      */
  1036.     /*----------------------------------------------------------------*/
  1037.     ADD_APPLICATION_STRING2(
  1038.         STR_ID_NETSET_PRF_NWK_TITLE,
  1039.         "Preferred Networks",
  1040.         "Menu item string for Preferred Network ");
  1041.     ADD_APPLICATION_IMAGE2(
  1042.         IMG_ID_NETSET_PRF_NWK_TITLE,
  1043.         CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
  1044.         "Title image for Preferred Network Menu");
  1045.     ADD_APPLICATION_IMAGE2(IMG_ID_NETSET_LSK_ABORT, CUST_IMG_BASE_PATH "\\EmptyImage.bmp", "LSK Button Image for Abort");
  1046.     ADD_APPLICATION_IMAGE2(
  1047.         IMG_ID_NETSET_PNWK_GET_LIST_MSG,
  1048.         CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
  1049.         "Image to show user with Preferred Network Message");
  1050.     ADD_APPLICATION_STRING2(STR_ID_NETSET_PRR_NWK_NEW, "Create New", "Create New preferred network");
  1051.     ADD_APPLICATION_IMAGE2(
  1052.         IMG_ID_NETSET_LSK_OPTIONS,
  1053.         CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
  1054.         "LSK Icon for Options button");
  1055.     ADD_APPLICATION_MENUITEM((MITEM_PRF_NWK_OPTIONS_PSEUDO,
  1056.                               0, 4,
  1057.                               MITEM_PRR_NWK_ADD,
  1058.                               MITEM_PRR_NWK_NEW,
  1059.                               MITEM_PRR_NWK_EDIT,
  1060.                               MITEM_PRR_NWK_DELETE,
  1061.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_OPTIONS, NULL));
  1062.     ADD_APPLICATION_MENUITEM((MITEM_PRR_NWK_ADD, MITEM_PRF_NWK_OPTIONS_PSEUDO, 0,
  1063.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_NETSET_MITEM_PRF_NWK_ADD, NULL));
  1064.     ADD_APPLICATION_MENUITEM((MITEM_PRR_NWK_NEW, MITEM_PRF_NWK_OPTIONS_PSEUDO, 0,
  1065.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_NETSET_PRR_NWK_NEW, NULL));
  1066.     ADD_APPLICATION_MENUITEM((MITEM_PRR_NWK_DELETE, MITEM_PRF_NWK_OPTIONS_PSEUDO, 0,
  1067.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_DELETE,
  1068.                               IMG_ID_NETSET_MITEM_PRF_NWK_DELETE));
  1069.     ADD_APPLICATION_MENUITEM((MITEM_PRR_NWK_EDIT, MITEM_PRF_NWK_OPTIONS_PSEUDO, 0,
  1070.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_NETSET_MITEM_PRF_NWK_EDIT,
  1071.                               IMG_ID_NETSET_MITEM_PRF_NWK_EDIT));
  1072.     /* diamond, 2006/03/08 New PLMN management */
  1073.     ADD_APPLICATION_MENUITEM((MENU_ID_ADD_FROM_LIST_OPTIONS, 0, 3,
  1074.                               MENU_ID_ADD_FROM_LIST_DONE,
  1075.                               MENU_ID_ADD_FROM_LIST_SORT_BY_DEFAULT,
  1076.                               MENU_ID_ADD_FROM_LIST_SORT_BY_ALPHABET,
  1077.                               SHOW, MOVEABLEACROSSPARENT, DISP_LIST, STR_GLOBAL_OPTIONS, IMG_SETTING_NETWORK));
  1078.     ADD_APPLICATION_MENUITEM((MENU_ID_ADD_FROM_LIST_DONE, MENU_ID_ADD_FROM_LIST_OPTIONS, 0,
  1079.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_SELECT, 0));
  1080.     ADD_APPLICATION_MENUITEM((MENU_ID_ADD_FROM_LIST_SORT_BY_DEFAULT, MENU_ID_ADD_FROM_LIST_OPTIONS, 0,
  1081.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_PLMN_LIST_SORT_BY_DEFAULT, 0));
  1082.     ADD_APPLICATION_MENUITEM((MENU_ID_ADD_FROM_LIST_SORT_BY_ALPHABET, MENU_ID_ADD_FROM_LIST_OPTIONS, 0,
  1083.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_PLMN_LIST_SORT_BY_ALPHABET, 0));
  1084.     ADD_APPLICATION_STRING2(STR_ID_NETSET_MITEM_PRF_NWK_ADD, "Add From List", "Menu Item Add Preferred Network");
  1085.     ADD_APPLICATION_IMAGE2(
  1086.         IMG_ID_NETSET_MITEM_PRF_NWK_DELETE,
  1087.         CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
  1088.         "Icon for Menu Item to Delete Preferred Network");
  1089.     ADD_APPLICATION_STRING2(STR_ID_NETSET_MITEM_PRF_NWK_EDIT, "Change Priority", "Menu Item Edit Preferred Network");
  1090.     ADD_APPLICATION_IMAGE2(
  1091.         IMG_ID_NETSET_MITEM_PRF_NWK_EDIT,
  1092.         CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
  1093.         "Icon for Menu Item to Edit Preferred Network");
  1094.     ADD_APPLICATION_STRING2(
  1095.         STR_ID_NETSET_PRF_NWK_ADDED_ERR,
  1096.         "Unable To Add Network",
  1097.         "Message String for Deleted Preferred Network Error");
  1098.     ADD_APPLICATION_STRING2(
  1099.         STR_ID_NETSET_PRF_NWK_INVALID_MCCMNC,
  1100.         "MCC/MNC length is not less than 5",
  1101.         "Message String for Invalid MCC/MNC Error");
  1102.         
  1103.     ADD_APPLICATION_STRING2(
  1104.         STR_ID_NETSET_PRF_ADD_SHW_NWK_TITLE,
  1105.         "PLMN LIST",
  1106.         "Title String for Error Screen Preferred Network");
  1107.     ADD_APPLICATION_STRING2(STR_ID_NETSET_PRR_MCC_CAPTION, "MCC/MNC", "MCC/MNC String");
  1108.     ADD_APPLICATION_STRING2(STR_ID_NETSET_PRR_SV_CAPTION, "Service", "Service String");
  1109. #ifdef __MANUAL_MODE_NW_SEL__
  1110.     ADD_APPLICATION_STRING2(STR_ID_NETSET_MANUAL_MODE_TITLE, "Select Network", "Select Network As Manual Mode");
  1111.     ADD_APPLICATION_STRING2(STR_ID_NETSET_MANUAL_MODE_SHORT, "Sel. Network", "Select Network As Manual Mode");
  1112. #endif /* __MANUAL_MODE_NW_SEL__ */ 
  1113.     /* diamond, 2006/03/08 New PLMN management */
  1114.     ADD_APPLICATION_STRING2(STR_ID_PLMN_LIST_SORT_BY_ALPHABET, "Sort by alphabet", "Sort PLMN list");
  1115.     ADD_APPLICATION_STRING2(STR_ID_PLMN_LIST_SORT_BY_DEFAULT, "Sort by default", "Sort PLMN list");
  1116.     ADD_APPLICATION_IMAGE2(
  1117.         IMG_ID_NETSET_PRF_HOME_PLMN,
  1118.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\ST_HOME.PBM",
  1119.         "home img");
  1120.     ADD_APPLICATION_IMAGE2(
  1121.         IMG_ID_NETSET_PRF_ADDNEW_MMC,
  1122.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\Common\\SB_MMC.pbm",
  1123.         "MMC Image");
  1124.     ADD_APPLICATION_IMAGE2(
  1125.         IMG_ID_NETSET_PRF_ADDNEW_POY,
  1126.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\Common\\SB_POY.pbm",
  1127.         "POY Image");
  1128.     /* diamond, 2006/06/05 forbidden PLMN icons */
  1129.     ADD_APPLICATION_IMAGE2(
  1130.         IMG_ID_NETSET_FORBIDDEN_PLMN,
  1131.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SB_Off.pbm",
  1132.         "Forbidden PLMN image");
  1133.     ADD_APPLICATION_IMAGE2(
  1134.         IMG_ID_NETSET_UNKNOWN_PLMN,
  1135.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SB_Unknow.pbm",
  1136.         "Unknown PLMN image");
  1137. }
  1138. /*****************************************************************************
  1139.  * FUNCTION
  1140.  *  PopulateSpofRes
  1141.  * DESCRIPTION
  1142.  *  
  1143.  * PARAMETERS
  1144.  *  void
  1145.  * RETURNS
  1146.  *  void
  1147.  *****************************************************************************/
  1148. void PopulateSpofRes(void)
  1149. {
  1150.     /*----------------------------------------------------------------*/
  1151.     /* Local Variables                                                */
  1152.     /*----------------------------------------------------------------*/
  1153.     /*----------------------------------------------------------------*/
  1154.     /* Code Body                                                      */
  1155.     /*----------------------------------------------------------------*/
  1156.     ADD_APPLICATION_STRING2(SPOF_MAIN_TITLE_STRINGID, "Sched. Power On/Off", "Title of Scheuled Power On/Off Screen.");
  1157.     ADD_APPLICATION_IMAGE2(SPOF_EDIT_BUTTON_IMAGEID, CUST_IMG_BASE_PATH "\\EmptyImage.bmp", "Icon for Edit Button.");
  1158.     ADD_APPLICATION_IMAGE2(
  1159.         SPOF_TYPEPOWERON_IMAGEID,
  1160.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\Poweronoff\\ST_PON.PBM",
  1161.         "Icon for Type of SPOF on/off.");
  1162.     ADD_APPLICATION_IMAGE2(
  1163.         SPOF_TYPEPOWEROFF_IMAGEID,
  1164.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\Poweronoff\\ST_POFF.PBM",
  1165.         "Icon for Type of SPOF on/off.");
  1166.     ADD_APPLICATION_IMAGE2(
  1167.         SPOF_BLANK_IMAGEID,
  1168.         CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
  1169.         "Icon for Title of Alarms Option Screen.");
  1170.     ADD_APPLICATION_IMAGE2(SPOF_SETTING_STATUS_IMAGEID, CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\common\\ST_STATU.PBM", "Setting Image for Power on off Status icon");    /* have to check */
  1171.     ADD_APPLICATION_STRING2(SPOF_EDIT_TITLE_STRINGID, "Edit Power On/Off", "Title of Alarms Option Screen.");
  1172.     ADD_APPLICATION_STRING2(SPOF_STATUS_STRINGID, "Status", "Status Caption");
  1173.     ADD_APPLICATION_STRING2(SPOF_DISABLE_STRINGID, "Disable", "Disable.");
  1174.     ADD_APPLICATION_STRING2(SPOF_ENABLE_STRINGID, "Enable", "Enable");
  1175.     ADD_APPLICATION_STRING2(SPOF_TIME_CONFLICT, "Conflict", "Conflict String");
  1176.     ADD_APPLICATION_STRING2(SPOF_POWER_OFF_CONFIRM, "Power Off?", "power off String");
  1177. }
  1178. /*****************************************************************************
  1179.  * FUNCTION
  1180.  *  AutoGenDispCharRes
  1181.  * DESCRIPTION
  1182.  *  Automatically generate all display char. resources.
  1183.  * PARAMETERS
  1184.  *  void
  1185.  * RETURNS
  1186.  *  True: success; False: can't open the folder of all images
  1187.  *****************************************************************************/
  1188. #ifndef LOW_COST_SUPPORT
  1189. MMI_BOOL AutoGenDispCharRes(void)
  1190. {
  1191.     /*----------------------------------------------------------------*/
  1192.     /* Local Variables                                                */
  1193.     /*----------------------------------------------------------------*/
  1194.     int i, category;
  1195.     int wpCount = 0, subCount = 0, ssCountImg = 0, ssCountVdo = 0;
  1196.     int onCountImg = 0, onCountVdo = 0, offCountImg = 0, offCountVdo = 0;
  1197.     int analogExist = 0, digitExist = 0, themeExit = 0, swflashCount = 0;
  1198.     int wpStart = IMG_WALLPAPER_START;
  1199.     int subStart = IMG_WALLPAPER_START + MMI_MAX_DISPCHAR_IMG;
  1200.     int ssStartImg = IMG_SCREENSAVER_START;
  1201.     int ssStartVdo = IMG_SCREENSAVER_START + MMI_MAX_DISPCHAR_IMG;
  1202.     int onStartImg = IMG_ID_PHNSET_ON_OFF_START;
  1203.     int onStartVdo = IMG_ID_PHNSET_ON_OFF_START + MMI_MAX_DISPCHAR_ANM;
  1204.     int offStartImg = IMG_ID_PHNSET_ON_OFF_START + MMI_MAX_DISPCHAR_ANM + MMI_MAX_DISPCHAR_VDO;
  1205.     int offStartVdo = IMG_ID_PHNSET_ON_OFF_START + MMI_MAX_DISPCHAR_ANM*2 + MMI_MAX_DISPCHAR_VDO;
  1206.     int otherStart = IMG_ID_PHNSET_ON_OFF_START + MMI_MAX_DISPCHAR_ANM*2 + MMI_MAX_DISPCHAR_VDO*2;
  1207.     int swflashStart = IMG_ID_PHNSET_ON_OFF_START + MMI_MAX_DISPCHAR_ANM*3 + MMI_MAX_DISPCHAR_VDO*2;
  1208.     char *wpStr;
  1209.     char *subStr;
  1210.     char *ssStrImg;
  1211.     char *ssStrVdo;
  1212.     char *onStrImg;
  1213.     char *onStrVdo;
  1214.     char *offStrImg;
  1215.     char *offStrVdo;
  1216.     char tmpPath[FILENAME_MAX], id_to_str[150];
  1217.     char strStr[15], strId[50];
  1218.     PHNSET_TYPE_DISP fileType;
  1219.     DIR *dir;
  1220.     struct dirent *ent;
  1221.     FILE *targetHeader;
  1222.     /*----------------------------------------------------------------*/
  1223.     /* Code Body                                                      */
  1224.     /*----------------------------------------------------------------*/
  1225.     /* Populating general display char. Resources */
  1226.     for (i = 0; i < MMI_MAX_DISPCHAR_IMG; i++)
  1227.     {
  1228.         sprintf(strId, "STR_ID_PHNSET_DISPCHAR_IMGID_%d", i);
  1229.         sprintf(strStr, "Image %d", i + 1);
  1230.         ADD_APPLICATION_STRING3(STR_ID_PHNSET_DISPCHAR_IMGID_START + i, strId, strStr, "DisplayCharList");
  1231.         fprintf(res_log, "Generate %s=%d, String=%sn", strId, STR_ID_PHNSET_DISPCHAR_IMGID_START + i, strStr);
  1232.     }
  1233.     for (i = 0; i < MMI_MAX_DISPCHAR_ANM; i++)
  1234.     {
  1235.         sprintf(strId, "STR_ID_PHNSET_DISPCHAR_ANMID_%d", i);
  1236.         sprintf(strStr, "Animation %d", i + 1);
  1237.         ADD_APPLICATION_STRING3(STR_ID_PHNSET_DISPCHAR_ANMID_START + i, strId, strStr, "DisplayCharList");
  1238.         fprintf(res_log, "Generate %s=%d, String=%sn", strId, STR_ID_PHNSET_DISPCHAR_ANMID_START + i, strStr);
  1239.     }
  1240.     for (i = 0; i < MMI_MAX_DISPCHAR_VDO; i++)
  1241.     {
  1242.         sprintf(strId, "STR_ID_PHNSET_DISPCHAR_VDOID_%d", i);
  1243.         sprintf(strStr, "Video %d", i + 1);
  1244.         ADD_APPLICATION_STRING3(STR_ID_PHNSET_DISPCHAR_VDOID_START + i, strId, strStr, "DisplayCharList");
  1245.         fprintf(res_log, "Generate %s=%d, String=%sn", strId, STR_ID_PHNSET_DISPCHAR_VDOID_START + i, strStr);
  1246.     }
  1247.     if ((dir = opendir(CUST_IMG_PATH "\\DispChar")) == NULL)
  1248.     {
  1249.         return MMI_FALSE;
  1250.     }
  1251.     else
  1252.     {
  1253.         char *dispStr[MMI_PHNSET_TYPE_MAX + 3]; /* 3 = on + off + ss vdo */
  1254.         fprintf(res_log, "nnSuccess to open the directory: %sn", CUST_IMG_PATH "\\DispChar");
  1255.         targetHeader = fopen("..\..\MMI\Setting\SettingInc\PhoneSetupResList.h", "w+");
  1256.     #ifdef __MMI_ANALOG_CLOCK__
  1257.         fprintf(res_log, "__MMI_ANALOG_CLOCK__n");
  1258.     #endif 
  1259.     #ifdef __MMI_DIGITAL_CLOCK__
  1260.         fprintf(res_log, "__MMI_DIGITAL_CLOCK__n");
  1261.     #endif 
  1262.     #ifdef __MMI_THEMES_V2_SUPPORT__
  1263.         fprintf(res_log, "__MMI_THEMES_V2_SUPPORT__n");
  1264.     #endif 
  1265.     #ifdef __MMI_SUB_WALLPAPER__
  1266.         fprintf(res_log, "__MMI_SUB_WALLPAPER__n");
  1267.     #endif 
  1268.     #ifdef __MMI_POWER_ON_OFF_DISPLAY__
  1269.         fprintf(res_log, "__MMI_POWER_ON_OFF_DISPLAY__n");
  1270.     #endif 
  1271.     #ifdef __MMI_VIDEO_PLAYER__
  1272.         fprintf(res_log, "__MMI_VIDEO_PLAYER__n");
  1273.     #endif 
  1274.     #if defined(__MMI_VIDEO_RECORDER__) && !defined(__MMI_CAMCORDER__)
  1275.         fprintf(res_log, "__MMI_VIDEO_RECORDER__n");
  1276.     #endif 
  1277.     #ifdef __MMI_SCREENSAVER_DISPLAY_VIDEO__
  1278.         fprintf(res_log, "__MMI_SCREENSAVER_DISPLAY_VIDEO__n");
  1279.     #endif 
  1280.     #ifdef __MMI_POWER_ON_OFF_DISPLAY_VIDEO__
  1281.         fprintf(res_log, "__MMI_POWER_ON_OFF_DISPLAY_VIDEO__n");
  1282.     #endif 
  1283.     #ifdef __MMI_SWFLASH__
  1284.         fprintf(res_log, "__MMI_SWFLASH__n");
  1285.     #endif 
  1286.     #ifdef SVG_SUPPORT
  1287.         fprintf(res_log, "SVG_SUPPORTn");
  1288.     #endif 
  1289.     #ifdef M3D_MMI_SUPPORT
  1290.         fprintf(res_log, "M3D_MMI_SUPPORTn");
  1291.     #endif 
  1292.         /* Allocate Output Buffer for PhoneSetupResList.h */
  1293.         for(i = 0; i < (MMI_PHNSET_TYPE_MAX + 3); i++)
  1294.         {
  1295.             dispStr[i] = (char *) malloc(600);
  1296.         }
  1297.         wpStr =     dispStr[MMI_PHNSET_TYPE_WP];
  1298.         sprintf(wpStr, "    IMG_ID_PHNSET_WP_START = IMG_WALLPAPER_START,n");
  1299.     #ifdef __MMI_SUB_WALLPAPER__
  1300.         subStr =    dispStr[MMI_PHNSET_TYPE_SUB_WP];
  1301.         sprintf(subStr, "    IMG_ID_PHNSET_SUB_WP_START = IMG_WALLPAPER_START + MMI_MAX_DISPCHAR_IMG,n");
  1302.     #endif
  1303.     
  1304.         ssStrImg =  dispStr[MMI_PHNSET_TYPE_SS];
  1305.         sprintf(ssStrImg, "    IMG_ID_PHNSET_SS_START = IMG_SCREENSAVER_START,n");
  1306.         
  1307.         ssStrVdo =  dispStr[MMI_PHNSET_TYPE_MAX + 0];
  1308.         sprintf(ssStrVdo, "    IMG_ID_PHNSET_SS_VDO_START = IMG_SCREENSAVER_START + MMI_MAX_DISPCHAR_IMG,n");
  1309.     #ifdef __MMI_POWER_ON_OFF_DISPLAY__
  1310.         onStrImg =  dispStr[MMI_PHNSET_TYPE_PWRON];
  1311.         sprintf(onStrImg, "    IMG_ID_PHNSET_ON_START = IMG_ID_PHNSET_ON_OFF_START,n");
  1312.         
  1313.         onStrVdo =  dispStr[MMI_PHNSET_TYPE_MAX + 1];
  1314.         sprintf(onStrVdo, "    IMG_ID_PHNSET_ON_VDO_START = IMG_ID_PHNSET_ON_OFF_START + MMI_MAX_DISPCHAR_ANM,n");
  1315.         offStrImg = dispStr[MMI_PHNSET_TYPE_PWROFF];
  1316.         sprintf(offStrImg, "    IMG_ID_PHNSET_OFF_START = IMG_ID_PHNSET_ON_OFF_START + MMI_MAX_DISPCHAR_ANM + MMI_MAX_DISPCHAR_VDO,n");
  1317.         offStrVdo = dispStr[MMI_PHNSET_TYPE_MAX + 2];
  1318.         sprintf(offStrVdo, "    IMG_ID_PHNSET_OFF_VDO_START = IMG_ID_PHNSET_ON_OFF_START + MMI_MAX_DISPCHAR_ANM + MMI_MAX_DISPCHAR_VDO + MMI_MAX_DISPCHAR_ANM,n");
  1319.     #endif /* __MMI_POWER_ON_OFF_DISPLAY__ */
  1320.         while ((ent = readdir(dir)) != NULL)
  1321.         {
  1322.             category = 0;
  1323.             fprintf(res_log, "Process file: %sn", ent->d_name);
  1324.             for (i = 0; i < FILENAME_MAX; i++)
  1325.             {
  1326.                 tmpPath[i] = ToUpper(ent->d_name[i]);
  1327.             }
  1328.             if (!strcmp(tmpPath, ".") || !strcmp(tmpPath, ".."))
  1329.             {
  1330.                 continue;
  1331.             }
  1332.             /* Determain dispchar type */
  1333.             for(i = 0; i < MMI_PHNSET_TYPE_MAX; i++)
  1334.             {
  1335.                 if(strstr(tmpPath, "WP"))
  1336.                 {
  1337.                 #ifdef __MMI_RES_TYPE_WALLPAPER__
  1338.                     if(strstr(tmpPath, __MMI_RES_TYPE_WALLPAPER__))
  1339.                 #endif
  1340.                     {
  1341.                     category |= 1 << MMI_PHNSET_TYPE_WP;
  1342.                     }
  1343.                 }
  1344.                 
  1345.             #ifdef __MMI_SUB_WALLPAPER__
  1346.                 if(strstr(tmpPath, "SUB"))
  1347.                 {
  1348.                 #ifdef __MMI_RES_TYPE_SUBLCD_WALLPAPER__
  1349.                     if(strstr(tmpPath, __MMI_RES_TYPE_SUBLCD_WALLPAPER__))
  1350.                 #endif
  1351.                     {
  1352.                     category |= 1 << MMI_PHNSET_TYPE_SUB_WP;
  1353.                     }
  1354.                 }
  1355.             #endif
  1356.             
  1357.                 if(strstr(tmpPath, "SS"))
  1358.                 {
  1359.                 #ifdef __MMI_RES_TYPE_WALLPAPER__
  1360.                     if(strstr(tmpPath, __MMI_RES_TYPE_WALLPAPER__))
  1361.                 #endif
  1362.                     {
  1363.                     category |= 1 << MMI_PHNSET_TYPE_SS;
  1364.                     }
  1365.                 }
  1366.             #ifdef __MMI_POWER_ON_OFF_DISPLAY__
  1367.                 if(strstr(tmpPath, "ON"))
  1368.                 {
  1369.                 #ifdef __MMI_RES_TYPE_POWER_ONOFF__
  1370.                     if(strstr(tmpPath, __MMI_RES_TYPE_POWER_ONOFF__))
  1371.                 #endif
  1372.                     {
  1373.                     category |= 1 << MMI_PHNSET_TYPE_PWRON;
  1374.                     }
  1375.                 }
  1376.                 
  1377.                 if(strstr(tmpPath, "OFF"))
  1378.                 {
  1379.                 #ifdef __MMI_RES_TYPE_POWER_ONOFF__
  1380.                     if(strstr(tmpPath, __MMI_RES_TYPE_POWER_ONOFF__))
  1381.                 #endif
  1382.                     {
  1383.                     category |= 1 << MMI_PHNSET_TYPE_PWROFF;
  1384.                     }
  1385.                 }
  1386.             #endif /* __MMI_POWER_ON_OFF_DISPLAY__ */
  1387.             }
  1388.             
  1389.             /* Determain media type */
  1390.             if (strstr(tmpPath, ".MP4") || strstr(tmpPath, ".AVI"))
  1391.             {
  1392.                 fileType = PHNSET_TYPE_DISP_VIDEO;
  1393.                 fprintf(res_log, "    Add a Videon");
  1394.             }
  1395.             else if (strstr(tmpPath, ".VIS") || strstr(tmpPath, ".CMP") || strstr(tmpPath, ".MSF"))
  1396.         #ifdef __MMI_SWFLASH__                
  1397.             {
  1398.                 fileType = PHNSET_TYPE_DISP_SWFLASH;
  1399.                 fprintf(res_log, "    Add a SWFlashn");
  1400.                 sprintf(id_to_str, "IMG_ID_PHNSET_SWFLASH_%dn", swflashCount);
  1401.                 fprintf(
  1402.                     res_log,
  1403.                     "                ADD_APPLICATION_IMAGE4(%s=%d, %s, MB=%d)n",
  1404.                     id_to_str,
  1405.                     swflashStart + swflashCount,
  1406.                     tmpPath,
  1407.                     MMI_TRUE);
  1408.                 ADD_APPLICATION_IMAGE4(
  1409.                     swflashStart + swflashCount,
  1410.                     id_to_str,
  1411.                     CUST_IMG_PATH "\\DispChar\\",
  1412.                     tmpPath,
  1413.                     "Associate to DispChar",
  1414.                     MMI_TRUE);
  1415.                  
  1416.                 swflashCount++;
  1417.                 continue;
  1418.             }
  1419.         #else
  1420.             {
  1421.                 continue;
  1422.             }
  1423.         #endif
  1424.         #if !defined(__M3D_SUPPORT__)
  1425.             else if (strstr(tmpPath, ".M3D"))
  1426.             {
  1427.                 continue;
  1428.             }
  1429.         #endif
  1430.         #if !defined(SVG_SUPPORT)
  1431.             else if (strstr(tmpPath, ".SVG"))
  1432.             {
  1433.                 continue;
  1434.             }
  1435.         #endif
  1436.         #ifdef __MMI_ANALOG_CLOCK__
  1437.             /* generate  analog clock resource */
  1438.             else if (strstr(tmpPath, "ANALOG"))
  1439.             {
  1440.                 fprintf(res_log, "    Add Analog Clockn");
  1441.                 fprintf(
  1442.                     res_log,
  1443.                     "                ADD_APPLICATION_IMAGE4(IMG_ID_DISPCHAR_ANALOG_CLK=%d, %s, MB=%d)n",
  1444.                     otherStart + 1,
  1445.                     tmpPath,
  1446.                     MMI_TRUE);
  1447.                 ADD_APPLICATION_IMAGE4(
  1448.                     otherStart + 1,
  1449.                     "IMG_ID_DISPCHAR_ANALOG_CLK",
  1450.                     CUST_IMG_PATH "\\DispChar\\",
  1451.                     tmpPath,
  1452.                     "Associate to DispChar",
  1453.                     MMI_TRUE);
  1454.                 continue;
  1455.             }
  1456.         #endif /* __MMI_ANALOG_CLOCK__ */ 
  1457.             
  1458.         #ifdef __MMI_DIGITAL_CLOCK__
  1459.             /* generate  digital clock resource */
  1460.             else if (strstr(tmpPath, "DIGITAL"))
  1461.             {
  1462.                 fprintf(res_log, "    Add Digital Clockn");
  1463.                 fprintf(
  1464.                     res_log,
  1465.                     "                ADD_APPLICATION_IMAGE4(IMG_ID_DISPCHAR_DIGITAL_CLK=%d, %s, MB=%d)n",
  1466.                     otherStart + 1,
  1467.                     tmpPath,
  1468.                     MMI_TRUE);
  1469.                 ADD_APPLICATION_IMAGE4(
  1470.                     otherStart + 1,
  1471.                     "IMG_ID_DISPCHAR_DIGITAL_CLK",
  1472.                     CUST_IMG_PATH "\\DispChar\\",
  1473.                     tmpPath,
  1474.                     "Associate to DispChar",
  1475.                     MMI_TRUE);
  1476.                 continue;
  1477.             }
  1478.         #endif /* __MMI_DIGITAL_CLOCK__ */ 
  1479.             else
  1480.             {
  1481.                 fileType = PHNSET_TYPE_DISP_IMAGE;
  1482.                 fprintf(res_log, "    Add an imagen");
  1483.             }
  1484.                 
  1485.             /* generate wallpaper resource */
  1486.             if (fileType == PHNSET_TYPE_DISP_IMAGE && ISCATEGORY(MMI_PHNSET_TYPE_WP))
  1487.             {
  1488. #if defined __MMI_RES_TYPE_WALLPAPER__
  1489.                 if (strstr(tmpPath, __MMI_RES_TYPE_WALLPAPER__))
  1490. #endif
  1491.                 {
  1492.                 /* Current Wallpaper ID */
  1493.                 int curr_id = wpStart + wpCount;
  1494.                 /* Turn the image ID into string */
  1495.                 sprintf(id_to_str, "IMG_ID_PHNSET_WP_%d", wpCount);
  1496.                 /* log */
  1497.                 fprintf(res_log, "        Add to wallpapern");
  1498.                 fprintf(
  1499.                     res_log,
  1500.                     "                ADD_APPLICATION_IMAGE4(%s=%d, %s, MB=%d)n",
  1501.                     id_to_str,
  1502.                     curr_id,
  1503.                     tmpPath,
  1504.                     MMI_TRUE);
  1505.                 /* Populate the image */
  1506.                 ADD_APPLICATION_IMAGE4(
  1507.                     curr_id,
  1508.                     id_to_str,
  1509.                     CUST_IMG_PATH "\\DispChar\\",
  1510.                     tmpPath,
  1511.                     "Associate to DispChar",
  1512.                     MMI_TRUE);
  1513.                 /* add the string ID associated to the image */
  1514.                 if(wpCount)
  1515.                     sprintf(id_to_str, "    IMG_ID_PHNSET_WP_%d,n", wpCount);
  1516.                 else
  1517.                     sprintf(id_to_str, "    IMG_ID_PHNSET_WP_%d = IMG_ID_PHNSET_WP_START,n", wpCount);
  1518.                 strcat(wpStr, id_to_str);
  1519.                 
  1520.                 wpCount++;
  1521.                 
  1522.             }
  1523.             }
  1524.         #ifdef __MMI_SUB_WALLPAPER__
  1525.             /* generate  sub wallpaper resource */
  1526.             if (fileType == PHNSET_TYPE_DISP_IMAGE && ISCATEGORY(MMI_PHNSET_TYPE_SUB_WP))
  1527.             {
  1528. #if defined __MMI_RES_TYPE_SUBLCD_WALLPAPER__
  1529.                 if (strstr(tmpPath, __MMI_RES_TYPE_SUBLCD_WALLPAPER__))
  1530. #endif
  1531.                 {
  1532.                 /* Current image ID */
  1533.                 int curr_id = subStart + subCount;
  1534.             
  1535.                 /* Turn the image ID into string */
  1536.                 sprintf(id_to_str, "IMG_ID_PHNSET_SUB_WP_%d", subCount);
  1537.             
  1538.                 /* log */
  1539.                 fprintf(res_log, "        Add to sub-wallpapern");
  1540.                 fprintf(
  1541.                     res_log,
  1542.                     "                ADD_APPLICATION_IMAGE4(%s=%d, %s, MB=%d)n",
  1543.                     id_to_str,
  1544.                     curr_id,
  1545.                     tmpPath,
  1546.                     MMI_TRUE);
  1547.             
  1548.                 /* Populate the image */
  1549.                 ADD_APPLICATION_IMAGE4(
  1550.                     curr_id,
  1551.                     id_to_str,
  1552.                     CUST_IMG_PATH "\\DispChar\\",
  1553.                     tmpPath,
  1554.                     "Associate to DispChar",
  1555.                     MMI_TRUE);
  1556.             
  1557.                 /* add the string ID associated to the image */
  1558.                 if(subCount)
  1559.                     sprintf(id_to_str, "    IMG_ID_PHNSET_SUB_WP_%d,n", subCount);
  1560.                 else
  1561.                     sprintf(id_to_str, "    IMG_ID_PHNSET_SUB_WP_%d = IMG_ID_PHNSET_SUB_WP_START,n", subCount);
  1562.                 strcat(subStr, id_to_str);
  1563.                 
  1564.                 subCount++;
  1565.                 }           
  1566.             }
  1567.         #endif /* __MMI_SUB_WALLPAPER__ */ 
  1568.             /* generate  screen saver resource */
  1569.             if (ISCATEGORY(MMI_PHNSET_TYPE_SS))
  1570.             {
  1571. #if defined __MMI_RES_TYPE_SCREEN_SAVER__
  1572.                 if (strstr(tmpPath, __MMI_RES_TYPE_SCREEN_SAVER__))
  1573. #elif defined __MMI_RES_TYPE_WALLPAPER__
  1574.                 if (strstr(tmpPath, __MMI_RES_TYPE_WALLPAPER__))
  1575. #endif    
  1576.                 {
  1577.                 /* Current resource ID */
  1578.                 int curr_id;
  1579.                 fprintf(res_log, "        Add to screen savern");
  1580.     
  1581.                 if (fileType == PHNSET_TYPE_DISP_IMAGE)
  1582.                 {
  1583.                     curr_id = ssStartImg + ssCountImg;
  1584.                     
  1585.                     /* Turn the image ID into string */
  1586.                     sprintf(id_to_str, "IMG_ID_PHNSET_SS_%d", ssCountImg);
  1587.                     fprintf(
  1588.                         res_log,
  1589.                         "                ADD_APPLICATION_IMAGE4(%s=%d, %s, MB=%d)n",
  1590.                         id_to_str,
  1591.                         curr_id,
  1592.                         tmpPath,
  1593.                         MMI_TRUE);
  1594.                     /* Populate the image */
  1595.                     ADD_APPLICATION_IMAGE4(
  1596.                         curr_id,
  1597.                         id_to_str,
  1598.                         CUST_IMG_PATH "\\DispChar\\",
  1599.                         tmpPath,
  1600.                         "Associate to DispChar",
  1601.                         MMI_TRUE);
  1602.                     /* add the string ID associated to the image */
  1603.                     if(ssCountImg)
  1604.                         sprintf(id_to_str, "    IMG_ID_PHNSET_SS_%d,n", ssCountImg);
  1605.                     else
  1606.                         sprintf(id_to_str, "    IMG_ID_PHNSET_SS_%d = IMG_ID_PHNSET_SS_START,n", ssCountImg);
  1607.                     strcat(ssStrImg, id_to_str);
  1608.                     
  1609.                     ssCountImg++;
  1610.                 }
  1611.                 else
  1612.                 {
  1613.                     curr_id = ssStartVdo + ssCountVdo;
  1614.                     
  1615.                     /* Turn the image ID into string */
  1616.                     sprintf(id_to_str, "IMG_ID_PHNSET_SS_VDO_%d", ssCountVdo);
  1617.                     fprintf(
  1618.                         res_log,
  1619.                         "                ADD_APPLICATION_MEDIA4(%s=%d, %s, MB=%d)n",
  1620.                         id_to_str,
  1621.                         curr_id,
  1622.                         tmpPath,
  1623.                         MMI_TRUE);
  1624.                     /* Populate the image */
  1625.                     ADD_APPLICATION_MEDIA4(
  1626.                         curr_id,
  1627.                         id_to_str,
  1628.                         CUST_IMG_PATH "\\DispChar\\",
  1629.                         tmpPath,
  1630.                         "Associate to DispChar",
  1631.                         MMI_TRUE);
  1632.                     /* add the string ID associated to the image */
  1633.                     if(ssCountVdo)
  1634.                         sprintf(id_to_str, "    IMG_ID_PHNSET_SS_VDO_%d,n", ssCountVdo);
  1635.                     else
  1636.                         sprintf(id_to_str, "    IMG_ID_PHNSET_SS_VDO_%d = IMG_ID_PHNSET_SS_VDO_START,n", ssCountVdo);
  1637.                     strcat(ssStrVdo, id_to_str);
  1638.                     
  1639.                     ssCountVdo++;
  1640.                 }
  1641.                 }
  1642.             }
  1643.             
  1644.         #ifdef __MMI_POWER_ON_OFF_DISPLAY__
  1645.             /* generate  power on display resource */
  1646.             if (ISCATEGORY(MMI_PHNSET_TYPE_PWRON) || ISCATEGORY(MMI_PHNSET_TYPE_PWROFF))
  1647.             {
  1648. #if defined __MMI_RES_TYPE_POWER_ONOFF__
  1649.                 if (strstr(tmpPath, __MMI_RES_TYPE_POWER_ONOFF__))
  1650. #endif    
  1651.                 {
  1652.                 /* Current resource ID */
  1653.                 int curr_id, tmpType;
  1654.                 int *tmpCount = NULL;
  1655.                 char *tmpStr = NULL;
  1656.                 char *tmpSuffix[]=
  1657.                 {
  1658.                     "ON",      /* 0 */
  1659.                     "ON_VDO",  /* 1 */
  1660.                     "OFF",     /* 2 */
  1661.                     "OFF_VDO", /* 3 */
  1662.                     ""
  1663.                 };
  1664.                  
  1665.                  if (ISCATEGORY(MMI_PHNSET_TYPE_PWRON))
  1666.                  {
  1667.                      fprintf(res_log, "        Add to PWR ON displayn");
  1668.                      if (fileType == PHNSET_TYPE_DISP_IMAGE)
  1669.                      {
  1670.                         curr_id = onStartImg + onCountImg;
  1671.                         sprintf(id_to_str, "IMG_ID_PHNSET_ON_%d", onCountImg);
  1672.                         tmpCount = &onCountImg;
  1673.                         tmpStr = onStrImg;
  1674.                         tmpType = 0;
  1675.                      }
  1676.                      else
  1677.                      {
  1678.                         curr_id = onStartVdo + onCountVdo;
  1679.                         sprintf(id_to_str, "IMG_ID_PHNSET_ON_VDO_%d", onCountVdo);
  1680.                         tmpCount = &onCountVdo;
  1681.                         tmpStr = onStrVdo;
  1682.                         tmpType = 1;
  1683.                      } 
  1684.                      if (fileType == PHNSET_TYPE_DISP_IMAGE)
  1685.                      {
  1686.                          fprintf(
  1687.                              res_log,
  1688.                              "                ADD_APPLICATION_IMAGE4(%s=%d, %s, MB=%d)n",
  1689.                              id_to_str,
  1690.                              curr_id,
  1691.                              tmpPath,
  1692.                              MMI_TRUE);
  1693.                      
  1694.                          /* Populate the image */
  1695.                          ADD_APPLICATION_IMAGE4(
  1696.                              curr_id,
  1697.                              id_to_str,
  1698.                              CUST_IMG_PATH "\\DispChar\\",
  1699.                              tmpPath,
  1700.                              "Associate to DispChar",
  1701.                              MMI_TRUE);
  1702.                         
  1703.                      }
  1704.                      else
  1705.                      {
  1706.                          fprintf(
  1707.                              res_log,
  1708.                              "                ADD_APPLICATION_MEDIA4(%s=%d, %s, MB=%d)n",
  1709.                              id_to_str,
  1710.                              curr_id,
  1711.                              tmpPath,
  1712.                              MMI_TRUE);
  1713.                      
  1714.                          /* Populate the image */
  1715.                          ADD_APPLICATION_MEDIA4(
  1716.                              curr_id,
  1717.                              id_to_str,
  1718.                              CUST_IMG_PATH "\\DispChar\\",
  1719.                              tmpPath,
  1720.                              "Associate to DispChar",
  1721.                              MMI_TRUE);
  1722.                      }
  1723.                      /* add the string ID associated to the image */
  1724.                      if(*tmpCount)
  1725.                          sprintf(id_to_str, "    IMG_ID_PHNSET_%s_%d,n", tmpSuffix[tmpType], *tmpCount);
  1726.                      else
  1727.                          sprintf(id_to_str, "    IMG_ID_PHNSET_%s_%d = IMG_ID_PHNSET_%s_START,n", tmpSuffix[tmpType], *tmpCount, tmpSuffix[tmpType]);
  1728.                       
  1729.                       strcat(tmpStr, id_to_str);
  1730.                       (*tmpCount)++;
  1731.                      
  1732.                  }
  1733.                  if (ISCATEGORY(MMI_PHNSET_TYPE_PWROFF))
  1734.                  {
  1735.                      fprintf(res_log, "        Add to PWR OFF displayn");
  1736.                      if (fileType == PHNSET_TYPE_DISP_IMAGE)
  1737.                      {
  1738.                         curr_id = offStartImg + offCountImg;
  1739.                         sprintf(id_to_str, "IMG_ID_PHNSET_OFF_%d", offCountImg);
  1740.                         tmpCount = &offCountImg;
  1741.                         tmpStr = offStrImg;
  1742.                         tmpType = 2;
  1743.                      }
  1744.                      else
  1745.                      {
  1746.                         curr_id = onStartVdo + onCountVdo;
  1747.                         sprintf(id_to_str, "IMG_ID_PHNSET_OFF_VDO_%d", offCountVdo);
  1748.                         tmpCount = &offCountVdo;
  1749.                         tmpStr = offStrVdo;
  1750.                         tmpType = 3;
  1751.                      }  
  1752.                      if (fileType == PHNSET_TYPE_DISP_IMAGE)
  1753.                      {
  1754.                          fprintf(
  1755.                              res_log,
  1756.                              "                ADD_APPLICATION_IMAGE4(%s=%d, %s, MB=%d)n",
  1757.                              id_to_str,
  1758.                              curr_id,
  1759.                              tmpPath,
  1760.                              MMI_TRUE);
  1761.                      
  1762.                          /* Populate the image */
  1763.                          ADD_APPLICATION_IMAGE4(
  1764.                              curr_id,
  1765.                              id_to_str,
  1766.                              CUST_IMG_PATH "\\DispChar\\",
  1767.                              tmpPath,
  1768.                              "Associate to DispChar",
  1769.                              MMI_TRUE);
  1770.                         
  1771.                      }
  1772.                      else
  1773.                      {
  1774.                          fprintf(
  1775.                              res_log,
  1776.                              "                ADD_APPLICATION_MEDIA4(%s=%d, %s, MB=%d)n",
  1777.                              id_to_str,
  1778.                              curr_id,
  1779.                              tmpPath,
  1780.                              MMI_TRUE);
  1781.                      
  1782.                          /* Populate the image */
  1783.                          ADD_APPLICATION_MEDIA4(
  1784.                              curr_id,
  1785.                              id_to_str,
  1786.                              CUST_IMG_PATH "\\DispChar\\",
  1787.                              tmpPath,
  1788.                              "Associate to DispChar",
  1789.                              MMI_TRUE);
  1790.                          
  1791.                      
  1792.                      }
  1793.                  /* add the string ID associated to the image */
  1794.                  if(*tmpCount)
  1795.                      sprintf(id_to_str, "    IMG_ID_PHNSET_%s_%d,n", tmpSuffix[tmpType], *tmpCount);
  1796.                  else
  1797.                      sprintf(id_to_str, "    IMG_ID_PHNSET_%s_%d = IMG_ID_PHNSET_%s_START,n", tmpSuffix[tmpType], *tmpCount, tmpSuffix[tmpType]);
  1798.                   
  1799.                   
  1800.                   strcat(tmpStr, id_to_str);
  1801.                   (*tmpCount)++;
  1802.                      
  1803.                  }
  1804.                 }
  1805.             }
  1806.         #endif /* __MMI_POWER_ON_OFF_DISPLAY__ */ 
  1807.         }
  1808.         closedir(dir);
  1809.         fprintf(res_log, "Success to generate image/video resourcen");
  1810.         fprintf(res_log, "Success to process the directory: %sn", CUST_IMG_PATH "\\DispChar");
  1811.         fprintf(targetHeader, 
  1812.         "/*****************************************************************************n"
  1813.         "*  Copyright Statement:n"
  1814.         "*  --------------------n"
  1815.         "*  This software is protected by Copyright and the information containedn"
  1816.         "*  herein is confidential. The software may not be copied and the informationn"
  1817.         "*  contained herein may not be used or disclosed except with the writtenn"
  1818.         "*  permission of MediaTek Inc. (C) 2006n"
  1819.         "*n"
  1820.         "*  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREESn"
  1821.         "*  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")n"
  1822.         "*  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ONn"
  1823.         "*  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,n"
  1824.         "*  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OFn"
  1825.         "*  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.n"
  1826.         "*  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THEn"
  1827.         "*  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, ORn"
  1828.         "*  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCHn"
  1829.         "*  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSOn"
  1830.         "*  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'Sn"
  1831.         "*  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.n"
  1832.         "*n"
  1833.         "*  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVEn"
  1834.         "*  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,n"
  1835.         "*  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,n"
  1836.         "*  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TOn"
  1837.         "*  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. n"
  1838.         "*n"
  1839.         "*  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCEn"
  1840.         "*  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OFn"
  1841.         "*  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF ANDn"
  1842.         "*  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDERn"
  1843.         "*  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).n"
  1844.         "*n"
  1845.         "*****************************************************************************/n"
  1846.         "n"
  1847.         "/*****************************************************************************n"
  1848.         " *n"
  1849.         " * Filename:n"
  1850.         " * ---------n"
  1851.         " * PhoneSetupResList.hn"
  1852.         " *n"
  1853.         " * Project:n"
  1854.         " * --------n"
  1855.         " *   MAUIn"
  1856.         " *n"
  1857.         " * Description:n"
  1858.         " * ------------n"
  1859.         " *   This file is intends for Resource IDs for the Display Characteristicn"
  1860.         " *n"
  1861.         " * Author:n"
  1862.         " * -------n"
  1863.         " * Cylen Yao (mtk00911)n"
  1864.         " *n"
  1865.         " *============================================================================n"
  1866.         " *n"
  1867.         " * This file is automatically generated by the resource gen proceduren"
  1868.         " *n"
  1869.         " ****************************************************************************/n"
  1870.         "#ifndef PHONESETUPRESLIST_Hn"
  1871.         "#define PHONESETUPRESLIST_Hn");
  1872.             
  1873.         fprintf(targetHeader, "typedef enumn{n");
  1874.         /* Output wallpaper enum id */
  1875.         fprintf(targetHeader, "%s", wpStr);
  1876.         fprintf(targetHeader, "    IMG_ID_PHNSET_WP_MAX = IMG_ID_PHNSET_WP_START + __MMI_WALLPAPER_NUM__ - 1,nn", wpCount - 1);
  1877.     #ifdef __MMI_SUB_WALLPAPER__
  1878.         /* Output sub-wallpaper enum id */
  1879.         fprintf(targetHeader, "%s", subStr);
  1880.         fprintf(targetHeader, "    IMG_ID_PHNSET_SUB_WP_MAX = IMG_ID_PHNSET_SUB_WP_START + __MMI_WALLPAPER_NUM__ - 1,nn", subCount - 1);
  1881.     #endif /* __MMI_SUB_WALLPAPER__ */
  1882.     
  1883.         /* Output screensaver enum id */
  1884.         /* image */
  1885.         fprintf(targetHeader, "%s", ssStrImg);
  1886.         fprintf(targetHeader, "    IMG_ID_PHNSET_SS_MAX = IMG_ID_PHNSET_SS_START + __MMI_WALLPAPER_NUM__ - 1,nn", ssCountImg - 1);
  1887.         /* video */
  1888.         fprintf(targetHeader, "%s", ssStrVdo);
  1889.         fprintf(targetHeader, "    IMG_ID_PHNSET_SS_VDO_MAX = IMG_ID_PHNSET_SS_VDO_%d,nn", ssCountVdo - 1);
  1890.         
  1891.         fprintf(targetHeader, "#if defined(__MMI_POWER_ON_OFF_DISPLAY__)n");
  1892.         /* Output pwron disp enum id */
  1893.         /* image */
  1894.         fprintf(targetHeader, "%s", onStrImg);
  1895.         fprintf(targetHeader, "    IMG_ID_PHNSET_ON_MAX = IMG_ID_PHNSET_ON_START + __MMI_WALLPAPER_NUM__ - 1,nn", onCountImg - 1);
  1896.         /* video */
  1897.         fprintf(targetHeader, "%s", onStrVdo);
  1898.         fprintf(targetHeader, "    IMG_ID_PHNSET_ON_VDO_MAX = IMG_ID_PHNSET_ON_VDO_%d,nn", onCountVdo - 1);
  1899.         
  1900.         /* Output pwroff disp enum id */
  1901.         /* image */
  1902.         fprintf(targetHeader, "%s", offStrImg);
  1903.         fprintf(targetHeader, "    IMG_ID_PHNSET_OFF_MAX = IMG_ID_PHNSET_OFF_START + __MMI_WALLPAPER_NUM__ - 1,nn", offCountImg - 1);        
  1904.         /* video */
  1905.         fprintf(targetHeader, "%s", offStrVdo);
  1906.         fprintf(targetHeader, "    IMG_ID_PHNSET_OFF_VDO_MAX = IMG_ID_PHNSET_OFF_VDO_%d,nn", offCountVdo - 1);        
  1907.         fprintf(targetHeader, "#else /* __MMI_POWER_ON_OFF_DISPLAY__ */n");
  1908.         fprintf(targetHeader, "    IMG_ID_PHNSET_ON_ANIMATION_DEFAULT = IMG_ID_PHNSET_ON_OFF_START,n");
  1909.         fprintf(targetHeader, "    IMG_ID_PHNSET_OFF_ANIMATION_DEFAULT,n");
  1910.         fprintf(targetHeader, "#endif /* __MMI_POWER_ON_OFF_DISPLAY__ */n");
  1911.         /* Output other enum id */
  1912.         fprintf(targetHeader, ""    
  1913.         "    /* Other images */n"
  1914.         "    IMG_ID_DISPCHAR_OTHER_START,n"
  1915.         "#ifndef __MMI_UI_TECHNO_IDLESCREEN_BAR__n"
  1916.         "#ifdef __MMI_ANALOG_CLOCK__n"
  1917.         "    IMG_ID_DISPCHAR_ANALOG_CLK = IMG_ID_DISPCHAR_OTHER_START + 1,n"
  1918.         "#endif /* __MMI_ANALOG_CLOCK__ */n"
  1919.         "#ifdef __MMI_DIGITAL_CLOCK__n"