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

MTK

开发平台:

C/C++

  1.         "    IMG_ID_DISPCHAR_DIGITAL_CLK = IMG_ID_DISPCHAR_OTHER_START + 2,n"
  2.         "#endif /* __MMI_DIGITAL_CLOCK__ */n"
  3.         "#endif /* __MMI_UI_TECHNO_IDLESCREEN_BAR__ */n"
  4.         "n"
  5.         "    IMG_ID_DISPCHAR_THEME_WALLPAPER,n"
  6.         "#ifdef __MMI_THEMES_V2_SUPPORT__n"
  7.         "    IMG_ID_DISPCHAR_THEME_SCREENSAVER,n"
  8.         "#endif n"
  9.         "n"
  10.         "    IMG_ID_DISPCHAR_OTHER_MAX,n");
  11.         /* Output SWFlash enum id */
  12.         fprintf(targetHeader, "    IMG_ID_DISPCHAR_SWFLASH_START,n");
  13.         if(swflashCount)
  14.             fprintf(targetHeader, "    IMG_ID_DISPCHAR_SWFLASH_0 = IMG_ID_DISPCHAR_SWFLASH_START,n");
  15.         
  16.         for(i = 0; i < swflashCount; i++)
  17.         {
  18.             fprintf(targetHeader, "    IMG_ID_DISPCHAR_SWFLASH_%d,n", i);    
  19.         }
  20.         
  21.         if(swflashCount)
  22.             fprintf(targetHeader, "    IMG_ID_DISPCHAR_SWFLASH_MAX = IMG_ID_DISPCHAR_SWFLASH_%d,n", swflashCount -1);
  23.         else
  24.             fprintf(targetHeader, "    IMG_ID_DISPCHAR_SWFLASH_MAX = IMG_ID_DISPCHAR_SWFLASH_START,n");
  25.         
  26.         fprintf(targetHeader, "    IMG_ID_PHNSET_MAXn");
  27.         fprintf(targetHeader, "}phnset_dispchar_enum; nn");
  28.         fprintf(targetHeader, ""
  29.         "#ifdef __MMI_SWFLASH__n"
  30.         "#define MAX_DISPCHAR_SWFLASH       (IMG_ID_DISPCHAR_SWFLASH_MAX - IMG_ID_DISPCHAR_SWFLASH_START + 1)n"
  31.         "#elsen"
  32.         "#define MAX_DISPCHAR_SWFLASH       0n"
  33.         "#endif /* __MMI_FLASH__ */n"
  34.         "        n"
  35.         "#define MAX_OTHER_WALLPAPER      (IMG_ID_DISPCHAR_OTHER_MAX - IMG_ID_DISPCHAR_OTHER_START -1)n"
  36.         "#define MAX_OTHER_SCREENSAVER    MAX_OTHER_WALLPAPERn"
  37.         "        n"
  38.         "#ifdef __MMI_DISPCHAR_M3D__n"
  39.         "#define MAX_WALLPAPER_IMG        (IMG_ID_PHNSET_WP_MAX - IMG_ID_PHNSET_WP_START + 1 + MAX_OTHER_WALLPAPER + MAX_DISPCHAR_SWFLASH + 3)n"
  40.         "#elsen"
  41.         "#define MAX_WALLPAPER_IMG        (IMG_ID_PHNSET_WP_MAX - IMG_ID_PHNSET_WP_START + 1 + MAX_OTHER_WALLPAPER + MAX_DISPCHAR_SWFLASH)n"
  42.         "#endif /* __MMI_DISPCHAR_M3D__ */n"
  43.         "        n"
  44.         "#define MAX_DL_WPSS_NUMBERS      MAXIMUM_DOWNLOAD_IMAGESn"
  45.         "#define MAX_SUB_WALLPAPER_IMG    (IMG_ID_PHNSET_SUB_WP_MAX - IMG_ID_PHNSET_SUB_WP_START + 1)n"
  46.         "        n"
  47.         "#define MAX_SCREENSAVER_IMG      (IMG_ID_PHNSET_SS_MAX - IMG_ID_PHNSET_SS_START + 1 + MAX_OTHER_SCREENSAVER + MAX_DISPCHAR_SWFLASH)n"
  48.         "#if defined(__MMI_SCREENSAVER_DISPLAY_VIDEO__) && defined(__MTK_TARGET__)n"
  49.         "#define MAX_SCREENSAVER_VDO      (IMG_ID_PHNSET_SS_VDO_MAX-IMG_ID_PHNSET_SS_VDO_START + 1)n"
  50.         "#else n"
  51.         "#define MAX_SCREENSAVER_VDO      0n"
  52.         "#endif n"
  53.         "        n"
  54.         "#ifdef __MMI_POWER_ON_OFF_DISPLAY__n"
  55.         "#define MAX_POWER_ON_IMG         (IMG_ID_PHNSET_ON_MAX-IMG_ID_PHNSET_ON_START + 1 + MAX_DISPCHAR_SWFLASH)n"
  56.         "#if defined(__MMI_POWER_ON_OFF_DISPLAY_VIDEO__) && defined(__MTK_TARGET__)n"
  57.         "#define MAX_POWER_ON_VDO         (IMG_ID_PHNSET_ON_VDO_MAX-IMG_ID_PHNSET_ON_VDO_START + 1)n"
  58.         "#else n"
  59.         "#define MAX_POWER_ON_VDO         0n"
  60.         "#endif n"
  61.         "#define MAX_POWER_OFF_IMG        MAX_POWER_ON_IMGn"
  62.         "#define MAX_POWER_OFF_VDO        MAX_POWER_ON_VDOn"
  63.         "#endif /* __MMI_POWER_ON_OFF_DISPLAY__ */ n"
  64.         "#endif /* PHONESETUPRESLIST_H */ n");
  65.         fclose(targetHeader);
  66.         /* Free Output Buffer for PhoneSetupResList.h */
  67.         for(i = 0; i < (MMI_PHNSET_TYPE_MAX + 3); i++)
  68.         {
  69.             free(dispStr[i]);
  70.         }
  71.         fprintf(res_log, "Success to generate PhoneSetupResList.hn");
  72.         return MMI_TRUE;
  73.     }
  74. }
  75. #endif /* LOW_COST_SUPPORT */
  76. /*****************************************************************************
  77.  * FUNCTION
  78.  *  PopulateDisplayChar
  79.  * DESCRIPTION
  80.  *  Populate all display char. resources.
  81.  * PARAMETERS
  82.  *  void
  83.  * RETURNS
  84.  *  void
  85.  *****************************************************************************/
  86. void PopulateDisplayChar(void)
  87. {
  88.     /*----------------------------------------------------------------*/
  89.     /* Local Variables                                                */
  90.     /*----------------------------------------------------------------*/
  91.     int i;
  92.     /*----------------------------------------------------------------*/
  93.     /* Code Body                                                      */
  94.     /*----------------------------------------------------------------*/
  95.     /* Populating Wallpaper dependent Resources */
  96.     ADD_APPLICATION_STRING2(STR_WALLPAPER_CAPTION, "Wallpaper", "STR_MENU_WALLPAPER_TYPES");
  97.     ADD_APPLICATION_STRING2(STR_WALLPAPER_SYSTEM, "System", "STR_WALLPAPER_SYSTEM");
  98.     ADD_APPLICATION_STRING2(STR_WALLPAPER_DOWNLOAD, "Download", "STR_WALLPAPER_DOWNLOAD");
  99.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_WP_AVATAR, "3D Avatar", "STR_WALLPAPER_3D_AVATAR");
  100. #ifdef __DAILY_WALLPAPER__
  101.     ADD_APPLICATION_STRING2(STR_WALLPAPER_FIX, "Fix", "STR_WALLPAPER_FIX");
  102.     ADD_APPLICATION_STRING2(STR_WALLPAPER_ROTATE, "Rotate", "STR_WALLPAPER_ROTATE");
  103. #endif /* __DAILY_WALLPAPER__ */ 
  104. #ifdef __MMI_THEMES_V2_SUPPORT__
  105.     #ifdef __MMI_RES_TYPE_WALLPAPER__
  106.         ADD_APPLICATION_IMAGE3(IMG_ID_DISPCHAR_THEME_WALLPAPER, CUST_IMG_PATH "\\MainLCD\\IdleScreen\\Wallpaper\\WALL01."__MMI_RES_TYPE_WALLPAPER__, "wallpaper download");
  107.     #else
  108.         ADD_APPLICATION_IMAGE3(IMG_ID_DISPCHAR_THEME_WALLPAPER, CUST_IMG_PATH "\\MainLCD\\IdleScreen\\Wallpaper\\WALL01.gif", "wallpaper download");
  109.     #endif
  110.     #ifdef __MMI_RES_TYPE_SCREEN_SAVER__
  111.         ADD_APPLICATION_IMAGE3(IMG_ID_DISPCHAR_THEME_SCREENSAVER, CUST_IMG_PATH "\\MainLCD\\IdleScreen\\Wallpaper\\WALL01."__MMI_RES_TYPE_SCREEN_SAVER__, "wallpaper download");
  112.     #elif defined __MMI_RES_TYPE_WALLPAPER__
  113.         ADD_APPLICATION_IMAGE3(IMG_ID_DISPCHAR_THEME_SCREENSAVER, CUST_IMG_PATH "\\MainLCD\\IdleScreen\\Wallpaper\\WALL01."__MMI_RES_TYPE_WALLPAPER__, "wallpaper download");
  114.     #else
  115.         ADD_APPLICATION_IMAGE3(IMG_ID_DISPCHAR_THEME_SCREENSAVER, CUST_IMG_PATH "\\MainLCD\\IdleScreen\\Wallpaper\\WALL01.gif", "wallpaper download");
  116. #endif 
  117. #endif /* __MMI_THEMES_V2_SUPPORT__ */
  118.     ADD_APPLICATION_IMAGE2(IMG_WALLPAPER_SYSTEM, CUST_IMG_BASE_PATH "\\EmptyImage.bmp", "IMG_WALLPAPER_SYSTEM");
  119.     ADD_APPLICATION_IMAGE2(IMG_WALLPAPER_DOWNLAOD, CUST_IMG_BASE_PATH "\\EmptyImage.bmp", "IMG_WALLPAPER_DOWNLAOD");
  120.     ADD_APPLICATION_IMAGE2(IMG_WALLPAPER_CAPTION, CUST_IMG_BASE_PATH "\\EmptyImage.bmp", "IMG_WALLPAPER_CAPTION");
  121.     ADD_APPLICATION_STRING2(STR_WALLPAPER_SELECT_CAPTION, "Wallpaper Select", "STR_WALLPAPER_SET");
  122.     ADD_APPLICATION_STRING2(
  123.         STR_IDLE_WP_DECODE_ERR,
  124.         "Image error, Restore Default Wallpaper",
  125.         "User defined wallpaper error message");
  126.     ADD_APPLICATION_STRING2(
  127.         STR_IDLE_SS_DECODE_ERR,
  128.         "Image error, Restore Default Screen Saver",
  129.         "User defined wallpaper error message");
  130.     ADD_APPLICATION_STRING2(STR_ID_WP_FRAME_ERR, "Image error: Frame > 30", "User defined wallpaper error message");
  131.     /* Populating Screensaver dependent Resources */
  132.     ADD_APPLICATION_STRING2(STR_SCR_SCREENSAVER_CAPTION, "Screen Saver", "SS CAPTION");
  133.     ADD_APPLICATION_STRING2(STR_SCR_SCREENSAVER_SETTINGS, "Setting", "Setting");
  134.     ADD_APPLICATION_STRING2(SCR_SCREENSAVER_SETTING_CAPTION, "Screen Saver Setting", "Screen Saver Setting");
  135.     ADD_APPLICATION_STRING2(STR_SCR_SCREENSAVER_SYSTEM, "System", "System");
  136.     ADD_APPLICATION_STRING2(STR_SCR_SCREENSAVER_DOWNLOAD, "Download", "Download");
  137.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_SS_AVATAR, "3D Avatar", "3D Avatar");
  138.     ADD_APPLICATION_STRING2(STR_SCREENSAVER_5SEC, "5 Sec", "5SEC");
  139.     ADD_APPLICATION_STRING2(STR_SCREENSAVER_15SEC, "15 Sec", "15SEC ");
  140.     ADD_APPLICATION_STRING2(STR_SCREENSAVER_30SEC, "30 Sec", "30SEC");
  141.     ADD_APPLICATION_STRING2(STR_SCREENSAVER_1MINUTE, "1 Minute", "1MIN");
  142.     ADD_APPLICATION_STRING2(STR_SCREENSAVER_STATUS, "Status:", "STATUS");
  143.     ADD_APPLICATION_STRING2(STR_SCREENSAVER_WAITING, "Waiting:", "WAITING");
  144.     ADD_APPLICATION_STRING2(STR_SCREENSAVER_WAITING_COMMENT, "Waiting: (1~59 sec)", "WAITING");
  145.     ADD_APPLICATION_STRING2(STR_SETTING_SS_WAITTIME_ERROR, "Wait time: 1 ~ 59 sec", "WAITING");
  146. #ifdef __MMI_LCD_PARTIAL_ON__
  147.     ADD_APPLICATION_STRING2(STR_SCREENSAVER_DISPLAY_TIME, "Display Time", "Screen Saver for partial display ");
  148. #endif 
  149.     ADD_APPLICATION_STRING2(STR_ID_DISPCHAR_THEME_WALLPAPER, "Theme Image", "Wallpaper Menu string");
  150. #ifdef __MMI_THEMES_V2_SUPPORT__
  151.     ADD_APPLICATION_STRING2(STR_ID_DISPCHAR_THEME_SCREENSAVER, "Theme Image", "Wallpaper Menu string");
  152. #endif 
  153.     ADD_APPLICATION_IMAGE2(
  154.         IMAGE_SETTING_TIME,
  155.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\Common\\ST_TIME.PBM",
  156.         "Icon for Time In  Category 57");
  157. #ifdef __MMI_POWER_ON_OFF_DISPLAY__
  158.     /* Populating Power on/off dependent Resources */
  159.     //ADD_APPLICATION_STRING2(STR_ID_PHNSET_ON_OFF_CAPTION, "Power On/Off Display", "STR_ID_PHNSET_ON_OFF_CAPTION");
  160.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_ON_OFF_SYSTEM, "System", "STR_ID_PHNSET_ON_OFF_SYSTEM");
  161.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_ON_OFF_DOWNLOAD, "User Deine", "STR_ID_PHNSET_ON_OFF_DOWNLOAD");
  162.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_ON_OFF_AVATAR, "3D Avatar", "3D Avatar");
  163.     //ADD_APPLICATION_STRING2(STR_ID_PHNSET_ON_OFF_BAD_FILE, "Invalid File", "STR_ID_PHNSET_ON_OFF_BAD_FILE");
  164.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_ON_OFF_SELECT_CAPTION, "On/off Select", "STR_WALLPAPER_SET");
  165.     ADD_APPLICATION_IMAGE2(IMG_ID_PHNSET_ON_OFF_SYSTEM, CUST_IMG_BASE_PATH "\\EmptyImage.bmp", "IMG_WALLPAPER_SYSTEM");
  166.     ADD_APPLICATION_IMAGE2(
  167.         IMG_ID_PHNSET_ON_OFF_DOWNLAOD,
  168.         CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
  169.         "IMG_WALLPAPER_DOWNLAOD");
  170.     ADD_APPLICATION_IMAGE2(IMG_ID_PHNSET_ON_OFF_CAPTION, CUST_IMG_BASE_PATH "\\EmptyImage.bmp", "IMG_WALLPAPER_CAPTION");
  171. #endif /* __MMI_POWER_ON_OFF_DISPLAY__ */ 
  172.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_DISPCHAR_ANALOG, "Analog Clock", "DisplayCharList");
  173.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_DISPCHAR_DIGITAL, "Digital Clock", "DisplayCharList");
  174. #ifdef __OTG_ENABLE__
  175.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_DISPCHAR_INVALID_PATH, "Invalid Folder", "OTG doesn't support dispchar");
  176. #endif 
  177.     if (!res_log)
  178.     {
  179.         res_log = fopen("PhnsetAutoGen.log", "w+");
  180.     }
  181. #ifdef __MMI_VUI_HOMESCREEN__
  182.     ADD_APPLICATION_IMAGE3(IMG_ID_PHNSET_WP_START, 
  183. #ifdef __MMI_VUI_HOMESCREEN_LITE_DISPLAY__
  184. CUST_IMG_PATH "\\MainLCD\\VUI\\HomeScreen\\Venus_wall01.bmp",
  185. #else
  186.         CUST_IMG_PATH "\\MainLCD\\VUI\\HomeScreen\\Venus_wall01.jpg",
  187. #endif /* __MMI_VUI_HOMESCREEN_LITE_DISPLAY__ */
  188.         "VENUS UI idle default wallpaper");
  189. #endif /* __MMI_VUI_HOMESCREEN__ */
  190. #ifndef LOW_COST_SUPPORT
  191.     if (!AutoGenDispCharRes())
  192. #endif
  193.     {
  194.     #if defined(__MMI_DISPCHAR_M3D__)
  195.         int max_m3d = 3;
  196.     #else 
  197.         int max_m3d = 0;
  198.     #endif 
  199.      int j = 0;
  200.         fprintf(res_log, "Can't open the directory: %sn", CUST_IMG_PATH "\\DispChar");
  201.         /* Generate Wallpaper Images */
  202.     #ifndef __MMI_UI_TECHNO_IDLESCREEN_BAR__
  203.     #ifdef __MMI_ANALOG_CLOCK__
  204.         fprintf(
  205.             res_log,
  206.             "                ADD_APPLICATION_IMAGE3(IMG_ID_DISPCHAR_ANALOG_CLK=%d, path=%s)n",
  207.             IMG_ID_DISPCHAR_ANALOG_CLK,
  208.             CUST_IMG_PATH "\\MainLCD\\IdleScreen\\WallPaper\\analog."__MMI_RES_TYPE_WALLPAPER__);
  209.     #ifdef __MMI_RES_TYPE_WALLPAPER__
  210.         ADD_APPLICATION_IMAGE3(
  211.             IMG_ID_DISPCHAR_ANALOG_CLK,
  212.             CUST_IMG_PATH "\\MainLCD\\IdleScreen\\WallPaper\\analog."__MMI_RES_TYPE_WALLPAPER__,
  213.             "Image associated with Wallpaper.");
  214.     #else
  215.         ADD_APPLICATION_IMAGE3(
  216.             IMG_ID_DISPCHAR_ANALOG_CLK,
  217.             CUST_IMG_PATH "\\MainLCD\\IdleScreen\\WallPaper\\analog.gif",
  218.             "Image associated with Wallpaper.");
  219.     #endif /* __MMI_RES_TYPE_WALLPAPER__ */
  220.     #endif /* __MMI_ANALOG_CLOCK__ */ 
  221.     #ifdef __MMI_DIGITAL_CLOCK__
  222.         fprintf(
  223.             res_log,
  224.             "                ADD_APPLICATION_IMAGE3(IMG_ID_DISPCHAR_DIGITAL_CLK=%d, path=%s)n",
  225.             IMG_ID_DISPCHAR_DIGITAL_CLK,
  226.             CUST_IMG_PATH "\\MainLCD\\IdleScreen\\WallPaper\\digital."__MMI_RES_TYPE_WALLPAPER__);
  227.     #ifdef __MMI_RES_TYPE_WALLPAPER__
  228.         ADD_APPLICATION_IMAGE3(
  229.             IMG_ID_DISPCHAR_DIGITAL_CLK,
  230.             CUST_IMG_PATH "\\MainLCD\\IdleScreen\\WallPaper\\digital."__MMI_RES_TYPE_WALLPAPER__,
  231.             "Image associated with Wallpaper.");
  232.     #else
  233.         ADD_APPLICATION_IMAGE3(
  234.             IMG_ID_DISPCHAR_DIGITAL_CLK,
  235.             CUST_IMG_PATH "\\MainLCD\\IdleScreen\\WallPaper\\digital.gif",
  236.             "Image associated with Wallpaper.");
  237.     #endif /* __MMI_RES_TYPE_WALLPAPER__ */
  238.     #endif /* __MMI_DIGITAL_CLOCK__ */ 
  239.     #endif /* __MMI_UI_TECHNO_IDLESCREEN_BAR__ */ 
  240.     #ifdef __MMI_POWER_ON_OFF_DISPLAY__
  241. fprintf(res_log, "                ADD_APPLICATION_IMAGE3(IMG_ID_PHNSET_ON_0=%d, path=%s)n",IMG_ID_PHNSET_ON_START,CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\POON."__MMI_RES_TYPE_POWER_ONOFF__);
  242.     fprintf(res_log, "                ADD_APPLICATION_IMAGE3(IMG_ID_PHNSET_OFF_0=%d, path=%s)n",IMG_ID_PHNSET_OFF_START,CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\pooff."__MMI_RES_TYPE_POWER_ONOFF__);
  243.     #ifdef __MMI_RES_TYPE_POWER_ONOFF__
  244.    #ifdef __MMI_LANG_EUROPE_ASIA_TYPE__
  245.         ADD_APPLICATION_IMAGE3(IMG_ID_PHNSET_ON_START, CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\poonoff_cta."__MMI_RES_TYPE_POWER_ONOFF__,"Power ON image");
  246.         ADD_APPLICATION_IMAGE3(IMG_ID_PHNSET_OFF_START,CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\poonoff_cta."__MMI_RES_TYPE_POWER_ONOFF__,"Power OFF image");
  247.    #elif defined (__THAI_SUPPORT__)
  248.         ADD_APPLICATION_IMAGE3(IMG_ID_PHNSET_ON_START, CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\poonoff_twz."__MMI_RES_TYPE_POWER_ONOFF__,"Power ON image");
  249.         ADD_APPLICATION_IMAGE3(IMG_ID_PHNSET_OFF_START,CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\poonoff_twz."__MMI_RES_TYPE_POWER_ONOFF__,"Power OFF image");
  250.    #elif defined(__INDONESIAN_SUPPORT__)
  251.         ADD_APPLICATION_IMAGE3(IMG_ID_PHNSET_ON_START, CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\poon_mito."__MMI_RES_TYPE_POWER_ONOFF__,"Power ON image");
  252.      ADD_APPLICATION_IMAGE3(IMG_ID_PHNSET_OFF_START,CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\pooff_mito."__MMI_RES_TYPE_POWER_ONOFF__,"Power OFF image");
  253.    #else
  254.     #ifdef __MMI_9700_SW_SUPPORT__
  255. ADD_APPLICATION_IMAGE3(IMG_ID_PHNSET_ON_START, CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\POON_nokia."__MMI_RES_TYPE_POWER_ONOFF__,"Power ON image");
  256.      ADD_APPLICATION_IMAGE3(IMG_ID_PHNSET_OFF_START,CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\pooff_nokia."__MMI_RES_TYPE_POWER_ONOFF__,"Power OFF image");
  257.    #else
  258.         ADD_APPLICATION_IMAGE3(IMG_ID_PHNSET_ON_START, CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\POON."__MMI_RES_TYPE_POWER_ONOFF__,"Power ON image");
  259.      ADD_APPLICATION_IMAGE3(IMG_ID_PHNSET_OFF_START,CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\pooff."__MMI_RES_TYPE_POWER_ONOFF__,"Power OFF image");
  260.    #endif
  261.     #endif
  262.     #else
  263. ADD_APPLICATION_IMAGE3(IMG_ID_PHNSET_ON_START, CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\POON.gif","Power ON image");
  264. ADD_APPLICATION_IMAGE3(IMG_ID_PHNSET_OFF_START,CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\pooff.gif","Power OFF image");
  265.     #endif /* __MMI_RES_TYPE_POWER_ONOFF__ */
  266.     #endif /* __MMI_POWER_ON_OFF_DISPLAY__ */
  267.     #if defined(__MMI_WALLPAPER_NUM__) && (__MMI_WALLPAPER_NUM__)
  268.         for (i = 0; i < __MMI_WALLPAPER_NUM__; i++)
  269.     #else
  270.         for (i = 0; i < MAX_WALLPAPER_IMG - MAX_OTHER_WALLPAPER; i++)
  271.     #endif
  272.         {
  273.             char strStr[15], strId[50];
  274.         #ifdef __MMI_RES_TYPE_WALLPAPER__
  275.         
  276.         #ifdef __MMI_LANG_EUROPE_ASIA_TYPE__
  277.             char gif_path[] = CUST_IMG_PATH "\\MainLCD\\IdleScreen\\WallPaper\\wall01."__MMI_RES_TYPE_WALLPAPER__;
  278.     #elif defined (__THAI_SUPPORT__)
  279.         char gif_path[] = CUST_IMG_PATH "\\MainLCD\\IdleScreen\\Thai_WallPaper\\wall01."__MMI_RES_TYPE_WALLPAPER__;
  280.     #elif defined(__INDONESIAN_SUPPORT__)
  281.         char gif_path[] = CUST_IMG_PATH "\\MainLCD\\IdleScreen\\INDO_Wallpaper\\wall01."__MMI_RES_TYPE_WALLPAPER__;
  282.     #else
  283.             char gif_path[] = CUST_IMG_PATH "\\MainLCD\\IdleScreen\\WallPaper\\wall01."__MMI_RES_TYPE_WALLPAPER__;
  284.     #endif
  285.         
  286.         #else
  287.             char gif_path[] = CUST_IMG_PATH "\\MainLCD\\IdleScreen\\WallPaper\\wall01.gif";
  288.         #endif
  289.             char m3d_path[] = CUST_IMG_PATH "\\MainLCD\\Active\\M3D\\m3d01.m3d";
  290.             char *path = NULL;
  291.             int position = 0;
  292.          #ifdef __MMI_LANG_EUROPE_ASIA_TYPE__
  293.             int gif_position = sizeof(CUST_IMG_PATH "\\MainLCD\\IdleScreen\\WallPaper\\wall");
  294.      #elif defined (__THAI_SUPPORT__)
  295.             int gif_position = sizeof(CUST_IMG_PATH "\\MainLCD\\IdleScreen\\Thai_WallPaper\\wall");
  296.      #elif defined(__INDONESIAN_SUPPORT__)
  297.         int gif_position = sizeof(CUST_IMG_PATH "\\MainLCD\\IdleScreen\\INDO_Wallpaper\\wall");
  298.      #else
  299.         int gif_position = sizeof(CUST_IMG_PATH "\\MainLCD\\IdleScreen\\WallPaper\\wall");
  300.      #endif
  301.             int m3d_position = sizeof(CUST_IMG_PATH "\\MainLCD\\Active\\M3D\\m3d");
  302.             
  303.             if (i < (MAX_WALLPAPER_IMG - MAX_OTHER_WALLPAPER))
  304.             {
  305.                 position = gif_position;
  306.                 path = &gif_path[0];
  307.                 {
  308.                     path[position - 1] = '0' + (i + 1)/10;
  309.                     path[position] = '0' + (i + 1)%10;
  310.                 }
  311.             }
  312.             else
  313.             {
  314.                 position = m3d_position;
  315.                 path = &m3d_path[0];
  316.             #if defined(__MMI_DISPCHAR_M3D_FISH__)
  317.                 path[position] = '1' + j;
  318.             #elif defined(__MMI_DISPCHAR_M3D_PENGUIN__)
  319.                 path[position] = '4' + j;
  320.             #elif defined(__MMI_DISPCHAR_M3D_BALL__)
  321.                 path[position] = '7' + j;
  322.             #endif 
  323.              j++;
  324.             }
  325.             fprintf(res_log, "                ADD_APPLICATION_IMAGE3(i = %d, path=%s)n", i, path);
  326.             ADD_APPLICATION_IMAGE3((IMG_ID_PHNSET_WP_START + i), path, "Image associated with wallpaer.");
  327.             ADD_APPLICATION_IMAGE3((IMG_ID_PHNSET_SS_START + i), path, "Image associated with screensaver.");
  328.             /* Add image & animation & video string */ 
  329.             {
  330.                 sprintf(strId, "STR_ID_PHNSET_DISPCHAR_IMGID_%d", i);
  331.                 sprintf(strStr, "Image %d", i + 1);
  332.                 ADD_APPLICATION_STRING3(STR_ID_PHNSET_DISPCHAR_IMGID_START + i, strId, strStr, "DisplayCharList");
  333.                 fprintf(res_log, "Generate %s=%d, String=%sn", strId, STR_ID_PHNSET_DISPCHAR_IMGID_START + i, strStr);
  334.             }
  335.             {
  336.                 sprintf(strId, "STR_ID_PHNSET_DISPCHAR_ANMID_%d", i);
  337.                 sprintf(strStr, "Animation %d", i + 1);
  338.                 ADD_APPLICATION_STRING3(STR_ID_PHNSET_DISPCHAR_ANMID_START + i, strId, strStr, "DisplayCharList");
  339.                 fprintf(res_log, "Generate %s=%d, String=%sn", strId, STR_ID_PHNSET_DISPCHAR_ANMID_START + i, strStr);
  340.             }
  341.             {
  342.                 sprintf(strId, "STR_ID_PHNSET_DISPCHAR_VDOID_%d", i);
  343.                 sprintf(strStr, "Video %d", i + 1);
  344.                 ADD_APPLICATION_STRING3(STR_ID_PHNSET_DISPCHAR_VDOID_START + i, strId, strStr, "DisplayCharList");
  345.                 fprintf(res_log, "Generate %s=%d, String=%sn", strId, STR_ID_PHNSET_DISPCHAR_VDOID_START + i, strStr);
  346.             }
  347.         #ifdef __MMI_POWER_ON_OFF_DISPLAY__
  348.             gif_path[gif_position] = '1' + i;
  349.             if(i == 0)
  350.             {
  351.                 ADD_APPLICATION_IMAGE3((IMG_ID_PHNSET_ON_START + 1), CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\POON."__MMI_RES_TYPE_POWER_ONOFF__,"Power ON image");
  352.                 ADD_APPLICATION_IMAGE3((IMG_ID_PHNSET_OFF_START + 1),CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\pooff."__MMI_RES_TYPE_POWER_ONOFF__,"Power OFF image");
  353.             }
  354.             else
  355.             {
  356.                 ADD_APPLICATION_IMAGE3((IMG_ID_PHNSET_ON_START + i + 1), gif_path, "Image associated with poweron disp.");
  357.                 ADD_APPLICATION_IMAGE3((IMG_ID_PHNSET_OFF_START + i + 1), gif_path, "Image associated with poweroff disp.");
  358.             }
  359.         #endif /* __MMI_POWER_ON_OFF_DISPLAY__ */ 
  360.         }
  361.     #ifdef __MMI_SWFLASH__
  362.         ADD_APPLICATION_STRING2(STR_ID_DISPCHAR_SWFLASH_0,"SWFlash 1","DisplayCharList");
  363.         ADD_APPLICATION_STRING2(STR_ID_DISPCHAR_SWFLASH_1,"SWFlash 2","DisplayCharList");
  364.         ADD_APPLICATION_IMAGE3(IMG_ID_DISPCHAR_SWFLASH_0,CUST_IMG_PATH"\\MainLCD\\SWFlash\\IC_M01.VIS","Built-in SWFlash file 1");
  365.         ADD_APPLICATION_IMAGE3(IMG_ID_DISPCHAR_SWFLASH_1,CUST_IMG_PATH"\\MainLCD\\SWFlash\\IC_M02.VIS","Built-in SWFlash file 2");
  366.     #endif /* __MMI_SWFLASH__ */
  367.     
  368.         /* Generate Sub Wallpaper images */
  369.     #ifdef __MMI_SUB_WALLPAPER__
  370.         #ifdef __MMI_RES_TYPE_SUBLCD_WALLPAPER__ 
  371.             ADD_APPLICATION_IMAGE3(
  372.                 IMG_ID_PHNSET_SUB_WP_0,
  373.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall01."__MMI_RES_TYPE_SUBLCD_WALLPAPER__,
  374.                 "Image associated with wallpaper.");
  375.             ADD_APPLICATION_IMAGE3(
  376.                 IMG_ID_PHNSET_SUB_WP_1,
  377.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall02."__MMI_RES_TYPE_SUBLCD_WALLPAPER__,
  378.                 "Image associated with wallpaper.");
  379.             ADD_APPLICATION_IMAGE3(
  380.                 IMG_ID_PHNSET_SUB_WP_2,
  381.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall03."__MMI_RES_TYPE_SUBLCD_WALLPAPER__,
  382.                 "Image associated with wallpaper.");
  383.             ADD_APPLICATION_IMAGE3(
  384.                 IMG_ID_PHNSET_SUB_WP_3,
  385.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall04."__MMI_RES_TYPE_SUBLCD_WALLPAPER__,
  386.                 "Image associated with wallpaper.");
  387.             ADD_APPLICATION_IMAGE3(
  388.                 IMG_ID_PHNSET_SUB_WP_4,
  389.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall05."__MMI_RES_TYPE_SUBLCD_WALLPAPER__,
  390.                 "Image associated with wallpaper.");
  391.             ADD_APPLICATION_IMAGE3(
  392.                 IMG_ID_PHNSET_SUB_WP_5,
  393.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall06."__MMI_RES_TYPE_SUBLCD_WALLPAPER__,
  394.                 "Image associated with wallpaper.");
  395.             ADD_APPLICATION_IMAGE3(
  396.                 IMG_ID_PHNSET_SUB_WP_6,
  397.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall07."__MMI_RES_TYPE_SUBLCD_WALLPAPER__,
  398.                 "Image associated with wallpaper.");
  399.             ADD_APPLICATION_IMAGE3(
  400.                 IMG_ID_PHNSET_SUB_WP_7,
  401.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall08."__MMI_RES_TYPE_SUBLCD_WALLPAPER__,
  402.                 "Image associated with wallpaper.");
  403.             ADD_APPLICATION_IMAGE3(
  404.                 IMG_ID_PHNSET_SUB_WP_8,
  405.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall09."__MMI_RES_TYPE_SUBLCD_WALLPAPER__,
  406.                 "Image associated with wallpaper.");
  407.             ADD_APPLICATION_IMAGE3(
  408.                 IMG_ID_PHNSET_SUB_WP_9,
  409.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall10."__MMI_RES_TYPE_SUBLCD_WALLPAPER__,
  410.                 "Image associated with wallpaper.");
  411.         #else
  412.             ADD_APPLICATION_IMAGE3(
  413.                 IMG_ID_PHNSET_SUB_WP_0,
  414.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall01.gif",
  415.                 "Image associated with wallpaper.");
  416.             ADD_APPLICATION_IMAGE3(
  417.                 IMG_ID_PHNSET_SUB_WP_1,
  418.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall02.gif",
  419.                 "Image associated with wallpaper.");
  420.             ADD_APPLICATION_IMAGE3(
  421.                 IMG_ID_PHNSET_SUB_WP_2,
  422.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall03.gif",
  423.                 "Image associated with wallpaper.");
  424.             ADD_APPLICATION_IMAGE3(
  425.                 IMG_ID_PHNSET_SUB_WP_3,
  426.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall04.gif",
  427.                 "Image associated with wallpaper.");
  428.             ADD_APPLICATION_IMAGE3(
  429.                 IMG_ID_PHNSET_SUB_WP_4,
  430.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall05.gif",
  431.                 "Image associated with wallpaper.");
  432.             ADD_APPLICATION_IMAGE3(
  433.                 IMG_ID_PHNSET_SUB_WP_5,
  434.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall06.gif",
  435.                 "Image associated with wallpaper.");
  436.             ADD_APPLICATION_IMAGE3(
  437.                 IMG_ID_PHNSET_SUB_WP_6,
  438.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall07.gif",
  439.                 "Image associated with wallpaper.");
  440.             ADD_APPLICATION_IMAGE3(
  441.                 IMG_ID_PHNSET_SUB_WP_7,
  442.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall08.gif",
  443.                 "Image associated with wallpaper.");
  444.             ADD_APPLICATION_IMAGE3(
  445.                 IMG_ID_PHNSET_SUB_WP_8,
  446.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall09.gif",
  447.                 "Image associated with wallpaper.");
  448.             ADD_APPLICATION_IMAGE3(
  449.                 IMG_ID_PHNSET_SUB_WP_9,
  450.                 CUST_IMG_PATH "\\SubLCD\\WallPaper\\wall10.gif",
  451.                 "Image associated with wallpaper.");
  452.         #endif /* __MMI_RES_TYPE_SUBLCD_WALLPAPER__ */ 
  453.     #endif /* __MMI_SUB_WALLPAPER__ */ 
  454.     #if defined(__MMI_SCREENSAVER_DISPLAY_VIDEO__) && defined(MJPG_SUPPORT)
  455.         ADD_APPLICATION_MEDIA(
  456.             IMG_ID_PHNSET_SS_VDO_START,
  457.             CUST_IMG_PATH "\\MainLCD\\Active\\Poweronoff\\PWRONOFF.avi");
  458.     #elif defined(__MMI_SCREENSAVER_DISPLAY_VIDEO__) && defined(MP4_DECODE)
  459.         ADD_APPLICATION_MEDIA(
  460.             IMG_ID_PHNSET_SS_VDO_START,
  461.             CUST_IMG_PATH "\\MainLCD\\Active\\Poweronoff\\PWRONOFF.mp4");
  462.     #endif 
  463.         /* Generate Power on/off display images */
  464.     #ifndef __MMI_POWER_ON_OFF_DISPLAY__
  465.     #ifdef LOW_COST_SUPPORT
  466.         fprintf(res_log, "                ADD_APPLICATION_IMAGE3(IMG_ID_PHNSET_ON_ANIMATION_DEFAULT=%d, path=%s)n",IMG_ID_PHNSET_ON_ANIMATION_DEFAULT, CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\logo." __MMI_RES_TYPE_BOOTUP_LOGO_IMAGE__);
  467. ADD_APPLICATION_IMAGE3(
  468.             IMG_ID_PHNSET_ON_ANIMATION_DEFAULT,
  469.             CUST_IMG_PATH "\\MainLCD\\Active\\poweronoff\\logo." __MMI_RES_TYPE_BOOTUP_LOGO_IMAGE__,
  470.             "Power ON image");
  471.         fprintf(res_log, "                ADD_APPLICATION_IMAGE3(IMG_ID_PHNSET_OFF_ANIMATION_DEFAULT=%d, path=%s)n",IMG_ID_PHNSET_OFF_ANIMATION_DEFAULT, CUST_IMG_PATH"\\MainLCD\\Active\\poweronoff\\logo." __MMI_RES_TYPE_BOOTUP_LOGO_IMAGE__);
  472.         ADD_APPLICATION_IMAGE3(
  473.             IMG_ID_PHNSET_OFF_ANIMATION_DEFAULT,
  474.             CUST_IMG_PATH "\\MainLCD\\Active\\poweronoff\\logo." __MMI_RES_TYPE_BOOTUP_LOGO_IMAGE__,
  475.             "Power OFF image");
  476.     #else /* LOW_COST_SUPPORT */
  477.     #ifdef __MMI_RES_TYPE_POWER_ONOFF__
  478.         ADD_APPLICATION_IMAGE3(
  479.             IMG_ID_PHNSET_ON_ANIMATION_DEFAULT,
  480.             CUST_IMG_PATH "\\MainLCD\\Active\\poweronoff\\POON."__MMI_RES_TYPE_POWER_ONOFF__,
  481.             "Power ON image");
  482.         ADD_APPLICATION_IMAGE3(
  483.             IMG_ID_PHNSET_OFF_ANIMATION_DEFAULT,
  484.             CUST_IMG_PATH "\\MainLCD\\Active\\poweronoff\\pooff."__MMI_RES_TYPE_POWER_ONOFF__,
  485.             "Power OFF image");
  486.     #else /* __MMI_RES_TYPE_POWER_ONOFF__ */
  487.         ADD_APPLICATION_IMAGE3(
  488.             IMG_ID_PHNSET_ON_ANIMATION_DEFAULT,
  489.             CUST_IMG_PATH "\\MainLCD\\Active\\poweronoff\\POON.gif",
  490.             "Power ON image");
  491.         ADD_APPLICATION_IMAGE3(
  492.             IMG_ID_PHNSET_OFF_ANIMATION_DEFAULT,
  493.             CUST_IMG_PATH "\\MainLCD\\Active\\poweronoff\\pooff.gif",
  494.             "Power OFF image");
  495.     #endif /* __MMI_RES_TYPE_WALLPAPER__ */
  496.     #endif /* LOW_COST_SUPPORT */    
  497.     #elif defined( __MMI_POWER_ON_OFF_DISPLAY_VIDEO__) && defined(MJPG_SUPPORT)
  498.         ADD_APPLICATION_MEDIA(
  499.             IMG_ID_PHNSET_ON_VDO_0,
  500.             CUST_IMG_PATH "\\MainLCD\\Active\\Poweronoff\\PWRONOFF.avi");
  501.         ADD_APPLICATION_MEDIA(
  502.             IMG_ID_PHNSET_OFF_VDO_0,
  503.             CUST_IMG_PATH "\\MainLCD\\Active\\Poweronoff\\PWRONOFF.avi");
  504.     #elif defined( __MMI_POWER_ON_OFF_DISPLAY_VIDEO__) && defined(MP4_DECODE)
  505.         ADD_APPLICATION_MEDIA(
  506.             IMG_ID_PHNSET_ON_VDO_0,
  507.             CUST_IMG_PATH "\\MainLCD\\Active\\Poweronoff\\PWRONOFF.mp4");
  508.         ADD_APPLICATION_MEDIA(
  509.             IMG_ID_PHNSET_OFF_VDO_0,
  510.             CUST_IMG_PATH "\\MainLCD\\Active\\Poweronoff\\PWRONOFF.mp4");
  511.     #endif 
  512.     }
  513.     fclose(res_log);
  514. }
  515. /*****************************************************************************
  516.  * FUNCTION
  517.  *  PopulateBarredDialList
  518.  * DESCRIPTION
  519.  *  
  520.  * PARAMETERS
  521.  *  void
  522.  * RETURNS
  523.  *  void
  524.  *****************************************************************************/
  525. void PopulateBarredDialList(void)
  526. {
  527.     /*----------------------------------------------------------------*/
  528.     /* Local Variables                                                */
  529.     /*----------------------------------------------------------------*/
  530.     /*----------------------------------------------------------------*/
  531.     /* Code Body                                                      */
  532.     /*----------------------------------------------------------------*/
  533.     ADD_APPLICATION_MENUITEM((MENU8236_BDL_VIEW_OPTIONS_MAIN,
  534.                               0, 3,
  535.                               MENU8236_BDL_VIEW_OPTIONS_ADD,
  536.                               MENU8236_BDL_VIEW_OPTIONS_EDIT,
  537.                               MENU8236_BDL_VIEW_OPTIONS_DELETE,
  538.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_OPTIONS, 0));
  539.     ADD_APPLICATION_MENUITEM((MENU8236_BDL_VIEW_OPTIONS_ADD,
  540.                               MENU8236_BDL_VIEW_OPTIONS_MAIN, 2,
  541.                               MENU_FDL_NAME,
  542.                               MENU_FDL_NUMBER, SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_ADD, 0));
  543.     ADD_APPLICATION_MENUITEM((MENU_FDL_NAME,
  544.                               MENU8236_BDL_VIEW_OPTIONS_ADD, 0,
  545.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_SETTING_FDL_NAME, IMG_NAME));
  546.     ADD_APPLICATION_MENUITEM((MENU_FDL_NUMBER,
  547.                               MENU8236_BDL_VIEW_OPTIONS_ADD, 0,
  548.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_SETTING_FDL_NUMBER, IMG_MOBILE_NUMBER));
  549.     ADD_APPLICATION_MENUITEM((MENU8236_BDL_VIEW_OPTIONS_EDIT,
  550.                               MENU8236_BDL_VIEW_OPTIONS_MAIN, 0,
  551.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_EDIT, 0));
  552.     ADD_APPLICATION_MENUITEM((MENU8236_BDL_VIEW_OPTIONS_DELETE,
  553.                               MENU8236_BDL_VIEW_OPTIONS_MAIN, 0,
  554.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_DELETE, 0));
  555.     ADD_APPLICATION_STRING2(STR_SCR8079_BDL_VIEW_LIST_CAPTION, "BDN List", "BDL VIEW LIST CAPTION");
  556. }
  557. /*****************************************************************************
  558.  * FUNCTION
  559.  *  PopulateFixedDialList
  560.  * DESCRIPTION
  561.  *  
  562.  * PARAMETERS
  563.  *  void
  564.  * RETURNS
  565.  *  void
  566.  *****************************************************************************/
  567. void PopulateFixedDialList(void)
  568. {
  569.     /*----------------------------------------------------------------*/
  570.     /* Local Variables                                                */
  571.     /*----------------------------------------------------------------*/
  572.     /*----------------------------------------------------------------*/
  573.     /* Code Body                                                      */
  574.     /*----------------------------------------------------------------*/
  575.     ADD_APPLICATION_MENUITEM((MENU8234_FDL_VIEW_OPTIONS_MAIN,
  576.                               0, 3,
  577.                               MENU8234_FDL_VIEW_OPTIONS_ADD,
  578.                               MENU8234_FDL_VIEW_OPTIONS_EDIT,
  579.                               MENU8234_FDL_VIEW_OPTIONS_DELETE,
  580.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_OPTIONS, 0));
  581.     ADD_APPLICATION_MENUITEM((MENU8234_FDL_VIEW_OPTIONS_ADD,
  582.                               MENU8234_FDL_VIEW_OPTIONS_MAIN, 2,
  583.                               MENU_FDL_NAME,
  584.                               MENU_FDL_NUMBER, SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_ADD, 0));
  585.     ADD_APPLICATION_MENUITEM((MENU_FDL_NAME,
  586.                               MENU8234_FDL_VIEW_OPTIONS_ADD, 0,
  587.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_SETTING_FDL_NAME, IMG_NAME));
  588.     ADD_APPLICATION_MENUITEM((MENU_FDL_NUMBER,
  589.                               MENU8234_FDL_VIEW_OPTIONS_ADD, 0,
  590.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_SETTING_FDL_NUMBER, IMG_MOBILE_NUMBER));
  591.     ADD_APPLICATION_MENUITEM((MENU8234_FDL_VIEW_OPTIONS_EDIT,
  592.                               MENU8234_FDL_VIEW_OPTIONS_MAIN, 0,
  593.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_EDIT, 0));
  594.     ADD_APPLICATION_MENUITEM((MENU8234_FDL_VIEW_OPTIONS_DELETE,
  595.                               MENU8234_FDL_VIEW_OPTIONS_MAIN, 0,
  596.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_DELETE, 0));
  597.     ADD_APPLICATION_STRING2(STR_SETTING_FDL_NAME, "Name", "NAME TEXT ");
  598.     ADD_APPLICATION_STRING2(STR_SETTING_FDL_NUMBER, "Number", "NUMBER TEXT");
  599.     ADD_APPLICATION_STRING2(STR_SETTING_FDL_EDIT_ENTRY, "Edit Entry", "EDIT ENTRY TEXT ");
  600.     ADD_APPLICATION_STRING2(STR_SCR8054_CALL_FDL_CAPTION, "FDN List ", "FDL LIST CAPTION");
  601. }
  602. /*****************************************************************************
  603.  * FUNCTION
  604.  *  PopulateAPNControlList
  605.  * DESCRIPTION
  606.  *  
  607.  * PARAMETERS
  608.  *  void
  609.  * RETURNS
  610.  *  void
  611.  *****************************************************************************/
  612. void PopulateAPNControlList(void)
  613. {
  614.     /*----------------------------------------------------------------*/
  615.     /* Local Variables                                                */
  616.     /*----------------------------------------------------------------*/
  617.     /*----------------------------------------------------------------*/
  618.     /* Code Body                                                      */
  619.     /*----------------------------------------------------------------*/
  620. #ifdef __MMI_ACL_SUPPORT__
  621.     ADD_APPLICATION_MENUITEM((MENU_ID_SECSET_ACL_MAIN,
  622.                               MENU9101_SECURITY, 2,
  623.                               MENU_ID_SECSET_ACL_MODE,
  624.                               MENU_ID_SECSET_ACL_LIST,
  625.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_SECSET_ACL_MAIN, 0));
  626.     ADD_APPLICATION_MENUITEM((MENU_ID_SECSET_ACL_MODE,
  627.                               MENU_ID_SECSET_ACL_MAIN, 0,
  628.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_SECSET_ACL_MODE, 0));
  629.     ADD_APPLICATION_MENUITEM((MENU_ID_SECSET_ACL_LIST,
  630.                               MENU_ID_SECSET_ACL_MAIN, 0,
  631.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_SECSET_ACL_LIST, 0));
  632.     ADD_APPLICATION_MENUITEM((MENU_ID_SECSET_ACL_OPTION,
  633.                               0, 3,
  634.                               MENU_ID_SECSET_ACL_ADD,
  635.                               MENU_ID_SECSET_ACL_EDIT,
  636.                               MENU_ID_SECSET_ACL_DELETE,
  637.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_OPTIONS, 0));
  638.     ADD_APPLICATION_MENUITEM((MENU_ID_SECSET_ACL_ADD,
  639.                               MENU_ID_SECSET_ACL_OPTION, 1,
  640.                               MENU_ID_SECSET_ACL_NAME,
  641.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_ADD, 0));
  642.     ADD_APPLICATION_MENUITEM((MENU_ID_SECSET_ACL_NAME,
  643.                               MENU_ID_SECSET_ACL_ADD, 0,
  644.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_SECSET_ACL_NAME, IMG_NAME));
  645.     ADD_APPLICATION_MENUITEM((MENU_ID_SECSET_ACL_EDIT,
  646.                               MENU_ID_SECSET_ACL_OPTION, 0,
  647.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_EDIT, 0));
  648.     ADD_APPLICATION_MENUITEM((MENU_ID_SECSET_ACL_DELETE,
  649.                               MENU_ID_SECSET_ACL_OPTION, 0,
  650.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_DELETE, 0));
  651.     ADD_APPLICATION_STRING2(STR_ID_SECSET_ACL_MAIN, "APN control", "APN Control Menu");
  652.     ADD_APPLICATION_STRING2(STR_ID_SECSET_ACL_MODE, "Mode", "ACL Mode Options");
  653.     ADD_APPLICATION_STRING2(STR_ID_SECSET_ACL_LIST, "APN control list", "ACL List Options");
  654.     ADD_APPLICATION_STRING2(STR_ID_SECSET_ACL_LIST_CAPTION, "ACL list", "ACL List Caption");
  655.     ADD_APPLICATION_STRING2(STR_ID_SECSET_ACL_NAME, "APN", "APN Label");
  656.     ADD_APPLICATION_STRING2(STR_ID_SECSET_ACL_IS_ON, "ACL enabled", "ACL Enabled Message");
  657.     ADD_APPLICATION_STRING2(STR_ID_SECSET_ACL_IS_OFF, "ACL disabled", "ACL Disabled Message");
  658.     ADD_APPLICATION_STRING2(STR_ID_SECSET_ACL_MEMORY_FULL, "Memory full", "Memory Full Message");
  659.     ADD_APPLICATION_STRING2(STR_ID_SECSET_ACL_EF_SIZE_FULL, "SIM file full", "SIM File Full Message");
  660.     ADD_APPLICATION_STRING2(STR_ID_SECSET_ACL_TRY_LATER, "Please try later", "Please Try Later Message");
  661.     ADD_APPLICATION_STRING2(STR_ID_SECSET_ACL_ADD_DEFAULT_QUERY, "Add a network provided APN?", "Add Network Provided APN Query");
  662.     ADD_APPLICATION_STRING2(STR_ID_SECSET_ACL_NETWORK_PROVIDED, "Network provided APN", "Network Provided APN Item List");
  663. #endif /* __MMI_ACL_SUPPORT__ */
  664. }
  665. /*****************************************************************************
  666.  * FUNCTION
  667.  *  PopulateSecuritySetupMenuRes
  668.  * DESCRIPTION
  669.  *  Security Setup highlight and hint interface
  670.  * PARAMETERS
  671.  *  void
  672.  * RETURNS
  673.  *  void
  674.  *****************************************************************************/
  675. void PopulateSecuritySetupMenuRes(void)
  676. {
  677.     /*----------------------------------------------------------------*/
  678.     /* Local Variables                                                */
  679.     /*----------------------------------------------------------------*/
  680.     /*----------------------------------------------------------------*/
  681.     /* Code Body                                                      */
  682.     /*----------------------------------------------------------------*/
  683.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9101_SECURITY, HighlightSecurity);
  684.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9169_SIM_LOCK, HighlightSIMLock);
  685.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9165_PHONE_LOCK, HighlightPhoneLock);
  686. #ifdef __MMI_AUTO_KEYPAD_LOCK__
  687.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9178_AKPL_TIME, HighlightAutoKeyPadLock);
  688. #endif 
  689.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9167_FIXED_DIAL, HighlightFixedDial);
  690.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_FDL_MODE, HighlightFdlMode);
  691.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_FDL_LIST, HighlightFdlList);
  692.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9168_BARRED_DAIL, HighlightBarredDial);
  693.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_BDL_MODE, HighlightBdlMode);
  694.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_BDL_LIST, HighlightBdlList);
  695.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9170_CHANGE_PASSWORD, HighlightChangePassword);
  696.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9174_CP_PIN1, HighlightPin1Passwd);
  697.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9175_CP_PIN2, HighlightPin2Passwd);
  698.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9173_CP_PHONE_LOCK, HighlightPhonePasswd);
  699. #ifdef __CERTMAN_SUPPORT__
  700.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_CERTIFICATE_MANAGER, mmi_certman_highlight_launch_certficate_manager);
  701. #endif /*__CERTMAN_SUPPORT__*/
  702.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU9169_SIM_LOCK, HintSimLock);
  703.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU9165_PHONE_LOCK, HintPhoneLock);
  704. #ifdef __MMI_AUTO_KEYPAD_LOCK__
  705.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU9178_AKPL_TIME, HintAutoKeypadLock);
  706. #endif 
  707.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU9167_FIXED_DIAL, HintFdl);
  708.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU9168_BARRED_DAIL, HintBdl);
  709.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_FDL_MODE, HintFdlMode);
  710.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_BDL_MODE, HintBdlMode);
  711.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU8234_FDL_VIEW_OPTIONS_ADD, HighlightAddFDL);
  712.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU8234_FDL_VIEW_OPTIONS_EDIT, HighlightEditFDL);
  713.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU8234_FDL_VIEW_OPTIONS_DELETE, HighlightDeleteFDL);
  714.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU8236_BDL_VIEW_OPTIONS_ADD, HighlightAddBDlist);
  715.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU8236_BDL_VIEW_OPTIONS_EDIT, HighlightEditBDlist);
  716.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU8236_BDL_VIEW_OPTIONS_DELETE, HighlightDeleteBDlist);
  717. #ifdef __MMI_ACL_SUPPORT__
  718.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_SECSET_ACL_MAIN, mmi_secset_highlight_acl_main);
  719.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_SECSET_ACL_MODE, mmi_secset_highlight_acl_mode);
  720.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_SECSET_ACL_LIST, mmi_secset_highlight_acl_list);
  721.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_SECSET_ACL_ADD, mmi_secset_highlight_add_acl);
  722.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_SECSET_ACL_EDIT, mmi_secset_highlight_edit_acl);
  723.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_SECSET_ACL_DELETE, mmi_secset_highlight_delete_acl);
  724.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_SECSET_ACL_MAIN, mmi_secset_hint_acl_main);
  725.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_SECSET_ACL_MODE, mmi_secset_hint_acl_mode);
  726. #endif /* __MMI_ACL_SUPPORT__ */
  727. }
  728. /*****************************************************************************
  729.  * FUNCTION
  730.  *  populateSecuritySetup
  731.  * DESCRIPTION
  732.  *  populating various resources
  733.  * PARAMETERS
  734.  *  void
  735.  * RETURNS
  736.  *  void
  737.  *****************************************************************************/
  738. void populateSecuritySetup(void)
  739. {
  740. #ifdef __MMI_AUTO_KEYPAD_LOCK__
  741.     /*----------------------------------------------------------------*/
  742.     /* Local Variables                                                */
  743.     /*----------------------------------------------------------------*/
  744.     /*----------------------------------------------------------------*/
  745.     /* Code Body                                                      */
  746.     /*----------------------------------------------------------------*/
  747.     ADD_APPLICATION_MENUITEM((MENU9101_SECURITY, 
  748.                           #ifndef __MMI_DUAL_SIM_MASTER__
  749.                               MAIN_MENU_SETTINGS_MENUID, 
  750.                           #ifdef __CERTMAN_SUPPORT__
  751.                           #ifdef __MMI_ACL_SUPPORT__
  752.                               8,
  753.                           #else
  754.                               7,
  755.                           #endif
  756.                           #else /* __CERTMAN_SUPPORT__ */
  757.                           #ifdef __MMI_ACL_SUPPORT__
  758.                               7,
  759.                           #else
  760.                               6,
  761.                           #endif
  762.                           #endif /* __CERTMAN_SUPPORT__ */
  763.                           #else /* __MMI_DUAL_SIM_MASTER__ */
  764.                               MENU_MTPNP_DM_SECURITY_SETTING,
  765.                               4,
  766.                           #endif /* __MMI_DUAL_SIM_MASTER__ */
  767.                               MENU9169_SIM_LOCK,
  768.                           #ifndef __MMI_DUAL_SIM_MASTER__
  769.                               MENU9165_PHONE_LOCK,
  770.                               MENU9178_AKPL_TIME,
  771.                           #endif /* __MMI_DUAL_SIM_MASTER__ */
  772.                               MENU9167_FIXED_DIAL,
  773.                               MENU9168_BARRED_DAIL,
  774.                           #ifndef __MMI_DUAL_SIM_MASTER__
  775.                           #ifdef __MMI_ACL_SUPPORT__
  776.                               MENU_ID_SECSET_ACL_MAIN,
  777.                           #endif
  778.                           #endif /* __MMI_DUAL_SIM_MASTER__ */
  779.                               MENU9170_CHANGE_PASSWORD,
  780.                           #ifndef __MMI_DUAL_SIM_MASTER__
  781.                           #ifdef __CERTMAN_SUPPORT__
  782.                               MENU_CERTIFICATE_MANAGER,
  783.                           #endif /*__CERTMAN_SUPPORT__ */
  784.   #endif /* __MMI_DUAL_SIM_MASTER__ */
  785.                               SHOW, MOVEABLEACROSSPARENT | INSERTABLE | SHORTCUTABLE, DISP_LIST,
  786.                           #ifndef __MMI_DUAL_SIM_MASTER__
  787.                               STR_MENU9101_SECURITY,
  788.                           #else /* __MMI_DUAL_SIM_MASTER__ */
  789.                               STRING_MTPNP_CARD1_SECURITY_SETTING,
  790.                           #endif /* __MMI_DUAL_SIM_MASTER__ */
  791.                               IMG_SETTING_SECURITY));
  792. #else /* __MMI_AUTO_KEYPAD_LOCK__ */ 
  793.     ADD_APPLICATION_MENUITEM((MENU9101_SECURITY, 
  794.                           #ifndef __MMI_DUAL_SIM_MASTER__
  795.                               MAIN_MENU_SETTINGS_MENUID,
  796.                           #ifdef __CERTMAN_SUPPORT__
  797.                           #ifdef __MMI_ACL_SUPPORT__
  798.                               7,
  799.                           #else
  800.                               6,
  801.                           #endif
  802.                           #else /* __CERTMAN_SUPPORT__ */
  803.                           #ifdef __MMI_ACL_SUPPORT__
  804.                               6,
  805.                           #else
  806.                               5,
  807.                           #endif
  808.                           #endif /* __CERTMAN_SUPPORT__ */
  809.                           #else /* __MMI_DUAL_SIM_MASTER__ */
  810.                               MENU_MTPNP_DM_SECURITY_SETTING,
  811.                               4,
  812.                           #endif /* __MMI_DUAL_SIM_MASTER__ */
  813.                               MENU9169_SIM_LOCK,
  814.                           #ifndef __MMI_DUAL_SIM_MASTER__
  815.                               MENU9165_PHONE_LOCK,
  816.                           #endif /* __MMI_DUAL_SIM_MASTER__ */
  817.                               MENU9167_FIXED_DIAL,
  818.                               MENU9168_BARRED_DAIL,
  819.                           #ifndef __MMI_DUAL_SIM_MASTER__
  820.                           #ifdef __MMI_ACL_SUPPORT__
  821.                               MENU_ID_SECSET_ACL_MAIN,
  822.                           #endif
  823.                           #endif /* __MMI_DUAL_SIM_MASTER__ */
  824.                               MENU9170_CHANGE_PASSWORD,
  825.                           #ifndef __MMI_DUAL_SIM_MASTER__
  826.                           #ifdef __CERTMAN_SUPPORT__
  827.                               MENU_CERTIFICATE_MANAGER,
  828.                           #endif /*__CERTMAN_SUPPORT__ */
  829.                           #endif /* __MMI_DUAL_SIM_MASTER__ */
  830.                               SHOW, MOVEABLEACROSSPARENT | INSERTABLE | SHORTCUTABLE, DISP_LIST,
  831.                           #ifndef __MMI_DUAL_SIM_MASTER__
  832.                               STR_MENU9101_SECURITY,
  833.                           #else /* __MMI_DUAL_SIM_MASTER__ */
  834.                               STRING_MTPNP_CARD1_SECURITY_SETTING,
  835.                           #endif /* __MMI_DUAL_SIM_MASTER__ */
  836.                               IMG_SETTING_SECURITY));
  837. #endif /* __MMI_AUTO_KEYPAD_LOCK__ */ 
  838.     ADD_APPLICATION_MENUITEM((MENU9165_PHONE_LOCK, 
  839.                           #ifndef __MMI_DUAL_SIM_MASTER__
  840.                               MENU9101_SECURITY,
  841.                           #else /* __MMI_DUAL_SIM_MASTER__ */
  842.                               MENU_MTPNP_DM_SECURITY_SETTING,
  843.                           #endif /* __MMI_DUAL_SIM_MASTER__ */
  844.                               0,
  845.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_MENU9165_PHONE_LOCK, 0));
  846. #ifdef __MMI_AUTO_KEYPAD_LOCK__
  847.     ADD_APPLICATION_MENUITEM((MENU9178_AKPL_TIME, 
  848.                           #ifndef __MMI_DUAL_SIM_MASTER__
  849.                               MENU9101_SECURITY,
  850.                           #else /* __MMI_DUAL_SIM_MASTER__ */
  851.                               MENU_MTPNP_DM_SECURITY_SETTING,
  852.                           #endif /* __MMI_DUAL_SIM_MASTER__ */
  853.                               5,
  854.                               MENU9177_AKPL_OFF,
  855.                               MENU9178_AKPL_TIME_5,
  856.                           #ifdef __MMI_LANG_EUROPE_ASIA_TYPE__
  857.                               MENU9178_AKPL_TIME_30,
  858.                               MENU9178_AKPL_TIME_60,
  859.                               MENU9178_AKPL_TIME_2,
  860.                           #elif defined (__THAI_SUPPORT__)
  861.                MENU9178_AKPL_TIME_15,
  862.                MENU9178_AKPL_TIME_30,
  863.                               MENU9178_AKPL_TIME_60, 
  864.           #else
  865.                               MENU9178_AKPL_TIME_30,
  866.                               MENU9178_AKPL_TIME_60,
  867.                               MENU9178_AKPL_TIME_2,
  868.                           #endif
  869.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_MENU9166_AUTO_KEYPAD_LOCK, 0));
  870.     ADD_APPLICATION_MENUITEM((MENU9177_AKPL_OFF, MENU9178_AKPL_TIME, 0,
  871.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_MENU9177_AKPL_OFF, 0));
  872.     ADD_APPLICATION_MENUITEM((MENU9178_AKPL_TIME_5, MENU9178_AKPL_TIME, 0,
  873.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR9178_AKPL_TIME_5, 0));
  874.     ADD_APPLICATION_MENUITEM((MENU9178_AKPL_TIME_30, MENU9178_AKPL_TIME, 0,
  875.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR9178_AKPL_TIME_30, 0));
  876.     ADD_APPLICATION_MENUITEM((MENU9178_AKPL_TIME_60, MENU9178_AKPL_TIME, 0,
  877.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR9178_AKPL_TIME_60, 0));
  878.     ADD_APPLICATION_MENUITEM((MENU9178_AKPL_TIME_2, MENU9178_AKPL_TIME, 0,
  879.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR9178_AKPL_TIME_2, 2));
  880.     ADD_APPLICATION_MENUITEM((MENU9178_AKPL_TIME_15, MENU9178_AKPL_TIME, 0,
  881.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR9178_AKPL_TIME_15,0));
  882. #endif /* __MMI_AUTO_KEYPAD_LOCK__ */ 
  883.     ADD_APPLICATION_MENUITEM((MENU9167_FIXED_DIAL, MENU9101_SECURITY, 2,
  884.                               MENU_SETTING_FDL_MODE,
  885.                               MENU_SETTING_FDL_LIST,
  886.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_MENU9167_FIXED_DIAL, 0));
  887.     ADD_APPLICATION_MENUITEM((MENU_SETTING_FDL_MODE, MENU9167_FIXED_DIAL, 0,
  888.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_SETTING_FDL_MODE, 0));
  889.     ADD_APPLICATION_MENUITEM((MENU_SETTING_FDL_LIST, MENU9167_FIXED_DIAL, 0,
  890.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_SETTING_FDL_LIST, 0));
  891.     ADD_APPLICATION_MENUITEM((MENU9168_BARRED_DAIL, MENU9101_SECURITY, 2,
  892.                               MENU_SETTING_BDL_MODE,
  893.                               MENU_SETTING_BDL_LIST,
  894.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_MENU9168_BARRED_DAIL, 0));
  895.     ADD_APPLICATION_MENUITEM((MENU_SETTING_BDL_MODE, MENU9168_BARRED_DAIL, 0,
  896.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_SETTING_BDL_MODE, 0));
  897.     ADD_APPLICATION_MENUITEM((MENU_SETTING_BDL_LIST, MENU9168_BARRED_DAIL, 0,
  898.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_SETTING_BDL_LIST, 0));
  899.     ADD_APPLICATION_MENUITEM((MENU9169_SIM_LOCK, MENU9101_SECURITY, 0,
  900.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST,
  901.                           #ifndef __MMI_DUAL_SIM_MASTER__
  902.                               STR_MENU9169_SIM_LOCK,
  903.                           #else /* __MMI_DUAL_SIM_MASTER__ */
  904.                               STRING_MTPNP_CARD1_PINLOCK,
  905.                           #endif /* __MMI_DUAL_SIM_MASTER__ */
  906.                               0));
  907.     ADD_APPLICATION_MENUITEM((MENU9170_CHANGE_PASSWORD, MENU9101_SECURITY, 3,
  908.                               MENU9174_CP_PIN1,
  909.                               MENU9175_CP_PIN2,
  910.                               MENU9173_CP_PHONE_LOCK,
  911.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_MENU9170_CHANGE_PASSWORD, 0));
  912.     ADD_APPLICATION_MENUITEM((MENU9173_CP_PHONE_LOCK, MENU9170_CHANGE_PASSWORD, 0,
  913.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_MENU9173_CP_PHONE_LOCK, 0));
  914.     ADD_APPLICATION_MENUITEM((MENU9174_CP_PIN1, MENU9170_CHANGE_PASSWORD, 0,
  915.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST,
  916.                           #ifndef __MMI_DUAL_SIM_MASTER__
  917.                               STR_MENU9174_CP_PIN1,
  918.                           #else /* __MMI_DUAL_SIM_MASTER__ */
  919.                               STRING_MTPNP_CP_SIM1PIN1,
  920.                           #endif /* __MMI_DUAL_SIM_MASTER__ */
  921.                               0));
  922.     ADD_APPLICATION_MENUITEM((MENU9175_CP_PIN2, MENU9170_CHANGE_PASSWORD, 0,
  923.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST,
  924.                           #ifndef __MMI_DUAL_SIM_MASTER__
  925.                               STR_MENU9175_CP_PIN2,
  926.                           #else /* __MMI_DUAL_SIM_MASTER__ */
  927.                               STRING_MTPNP_CP_SIM1PIN2,
  928.                           #endif /* __MMI_DUAL_SIM_MASTER__ */
  929.                               0));
  930. #ifdef __CERTMAN_SUPPORT__
  931. ADD_APPLICATION_MENUITEM((MENU_CERTIFICATE_MANAGER, MENU9101_SECURITY, 0,
  932.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_CERTIFICATE_MANAGER, 0));
  933. #endif /*__CERTMAN_SUPPORT__ */
  934. /*****Strings*****/
  935.     ADD_APPLICATION_STRING2(STR_MENU9101_SECURITY, "Security Setup", "Settings Security.");
  936.     ADD_APPLICATION_STRING2(STR_SCR9002_SECURITY_CAPTION, "Security Setup", "Security Setup Caption.");
  937.     ADD_APPLICATION_STRING2(STR_MENU9165_PHONE_LOCK, "Phone Lock", "Phone Lock Menu.");
  938. #ifdef __MMI_AUTO_KEYPAD_LOCK__
  939.     ADD_APPLICATION_STRING2(STR_MENU9166_AUTO_KEYPAD_LOCK, "Auto Keypad Lock", "Auto KeyPad Lock Menu.");
  940. #endif 
  941.     ADD_APPLICATION_STRING2(STR_MENU9167_FIXED_DIAL, "Fixed Dial", "Fixed Dial Menu.");
  942.     ADD_APPLICATION_STRING2(STR_MENU9168_BARRED_DAIL, "Barred Dial", "Barred Dial Menu.");
  943.     ADD_APPLICATION_STRING2(STR_MENU9169_SIM_LOCK, "SIM Lock", "PIN Lock Menu.");
  944.     ADD_APPLICATION_STRING2(STR_MENU9170_CHANGE_PASSWORD, "Change Password", "Change Password Menu.");
  945.     ADD_APPLICATION_STRING2(STR_MENU9173_CP_PHONE_LOCK, "Phone Lock Password", "Change Phone Lock Menu.");
  946.     ADD_APPLICATION_STRING2(STR_MENU9174_CP_PIN1, "PIN", "Change SIM Lock Menu.");
  947.     ADD_APPLICATION_STRING2(STR_MENU9175_CP_PIN2, "PIN2", "Change PIN2 Menu.");
  948.     ADD_APPLICATION_STRING2(STR_DIFF_PIN, "Different PIN codes!", "Pin codes Different String.");
  949.     ADD_APPLICATION_STRING2(STR_ID_PIN_NOT_SUPPORT, "PIN not support!", "PIN not support!");
  950.     ADD_APPLICATION_STRING2(STR_ID_PIN2_NOT_SUPPORT, "PIN2 not support!", "PIN2 not support!");
  951.     ADD_APPLICATION_STRING2(STR_ID_SECSET_UNSPECIFIED_ERROR, "Please try later!", "Please try later!");
  952.     ADD_APPLICATION_STRING2(STR_ID_SECSET_DELETE_ASK, "Delete?", "Delete? string");
  953.     ADD_APPLICATION_STRING2(STR_ID_SECSET_REPLACE_WILDCARD, "Please replace ? by a digit", "Prompt string");
  954. #ifdef __MMI_AUTO_KEYPAD_LOCK__
  955.     ADD_APPLICATION_STRING2(STR_MENU9177_AKPL_OFF, "None", "Off Option For AutoKeyPadLock Option.");
  956.     ADD_APPLICATION_STRING2(STR9178_AKPL_TIME_5, "5 sec.", "Time 5 Sec For Auto KeyPad Lock.");
  957.     ADD_APPLICATION_STRING2(STR9178_AKPL_TIME_30, "30 sec.", "Time 30 Sec For Auto KeyPad Lock.");
  958.     ADD_APPLICATION_STRING2(STR9178_AKPL_TIME_15, "15 sec.", "Time 15 Sec For Auto KeyPad Lock.");
  959.     ADD_APPLICATION_STRING2(STR9178_AKPL_TIME_60, "1 min.", "Time 60 sec For Auto KeyPad Lock.");
  960.     ADD_APPLICATION_STRING2(STR9178_AKPL_TIME_2, "5 min.", "Time 5 Min For Auto KeyPad Lock.");
  961. #endif /* __MMI_AUTO_KEYPAD_LOCK__ */ 
  962. #ifdef __OP12__
  963.     ADD_APPLICATION_STRING2(STR_PIN_BLOCKED_PUK_OP12, "PIN blocked. Contact operator for PUK.", "OP12 PIN Blocked String");
  964.     ADD_APPLICATION_STRING2(STR_SETTING_PIN2_BLK_OP12, "PIN2 blocked. Some funtions are unavailable. Contact operator for PUK2.", "OP12 PIN2 Blocked String");
  965.     ADD_APPLICATION_STRING2(STR_SIM_BLOCK_MSG_OP12, "PUK blocked. Contact operator.", "OP12 PUK Blocked String");
  966.     ADD_APPLICATION_STRING2(STR_ID_PIN2_NOT_SUPPORT_OP12, "PUK2 blocked. Contact operator.", "OP12 PUK2 Blocked String");
  967. #endif /* __OP12__ */
  968.     ADD_APPLICATION_STRING2(STR_ENABLE_PIN, "PIN Lock Must Be Enabled!", "Enable PIN Lock String.");
  969.     ADD_APPLICATION_STRING2(STR_SETTING_PUK, "Enter PUK", "Enter PUK Screen String.");
  970.     ADD_APPLICATION_STRING2(STR_ID_CERTIFICATE_MANAGER, "Certificate Manager", "Certificate Manager");
  971.     ADD_APPLICATION_STRING2(STR_SETTING_FDL_LIST, "Fixed Dial List", "Fixed Dial List option.");
  972.     ADD_APPLICATION_STRING2(STR_SETTING_FDL_MODE, "Mode", "Fixed Dial Mode Option.");
  973.     ADD_APPLICATION_STRING2(STR_NO_FDL, "SIM Card Not Support!", "SIM Card Not Support Message.");
  974.     ADD_APPLICATION_STRING2(STR_SETTING_BDL_LIST, "Barred Dial List", "Barred Dial List option.");
  975.     ADD_APPLICATION_STRING2(STR_SETTING_BDL_MODE, "Mode", "Barred Dial Mode Option.");
  976.     ADD_APPLICATION_STRING2(STR_SETTING_SOS, "SOS", "RSK associated with Drop emergency Call.");
  977.     ADD_APPLICATION_STRING2(STR_SETTING_SIM_LOCK, "SIM Locked!", "SIM Locked.");
  978.     ADD_APPLICATION_STRING2(STR_SETTING_SIM_UNLOCK, "SIM Unlocked!", "SIM UnLocked.");
  979.     ADD_APPLICATION_STRING2(STR_SETTING_PHONE_LOCK, "Phone Locked!", "Phone Locked.");
  980.     ADD_APPLICATION_STRING2(STR_SETTING_PHONE_UNLOCK, "Phone Unlocked!", "Phone UnLocked.");
  981.     ADD_APPLICATION_STRING2(STR_SETTING_OLD_PIN, "Enter Old PIN", "Enter Old PIN.");
  982.     ADD_APPLICATION_STRING2(STR_SETTING_NEW_PIN, "New PIN", "New PIN.");
  983.     ADD_APPLICATION_STRING2(STR_SETTING_OLD_PIN2, "Enter Old PIN2", "Enter Old PIN2.");
  984.     ADD_APPLICATION_STRING2(STR_SETTING_NEW_PIN2, "New PIN2", "New PIN2.");
  985.     ADD_APPLICATION_STRING2(STR_DIFF_PIN2, "Different PIN2 codes!", "Different PIN2 Codes Message.");
  986.     ADD_APPLICATION_STRING2(STR_DIFF_PHONE, "Different Passwords!", "Different PhoneLock Message.");
  987.     ADD_APPLICATION_STRING2(STR_WRONG_PIN, "Wrong PIN Code!", "Wrong PIN Code Message.");
  988.     ADD_APPLICATION_STRING2(STR_PIN_CHANGE, "PIN changed successfully!", "PIN changed successfully Message.");
  989.     ADD_APPLICATION_STRING2(STR_WRONG_PIN2, "Wrong PIN2 Code!", "Wrong PIN2 Code Message.");
  990.     ADD_APPLICATION_STRING2(STR_PIN2_CHANGE, "PIN2 changed successfully!", "PIN2 changed successfully Message.");
  991.     ADD_APPLICATION_STRING2(STR_PHONE_CHANGE, "Password changed!", "Password changed successfully Message.");
  992.     ADD_APPLICATION_STRING2(STR_SETTING_ENTER_PUK2, "Enter PUK2", "Enter PUK2 Message.");
  993.     ADD_APPLICATION_STRING2(STR_SETTING_ENTER_NEW_PIN2, "Enter New PIN2", "Enter New PIN2 Message.");
  994.     ADD_APPLICATION_STRING2(STR_SCR9026_CHANGE_PASSWORD_CAPTION, "Change Password", "Change Password Menu.");
  995.     ADD_APPLICATION_STRING2(STR_SCR9027_PIN2_CAPTION, "Enter PIN2", "Enter PIN2 Caption String.");
  996.     ADD_APPLICATION_STRING2(STR_SCR9028_PIN1_CAPTION, "Enter PIN", "Enter PIN1 Caption String.");
  997.     ADD_APPLICATION_STRING2(STR_SCR9029_CURRENT_PW_CAPTION, "Enter Old Password", "Enter Old Password String.");
  998.     ADD_APPLICATION_STRING2(STR_NEW_PIN1, "Enter New PIN", "Enter New PIN1 String.");
  999.     ADD_APPLICATION_STRING2(STR_SCR9030_NEW_PW_CAPTION, "New Password", "Enter New Password String.");
  1000.     ADD_APPLICATION_STRING2(STR_SCR9031_CONFIRM_PW_CAPTION, "Enter Again", "Enter Confirm Password String.");
  1001.     ADD_APPLICATION_STRING2(STR_SETTING_WRONG_PUK2, "Wrong PUK2", "Wrong PUK2 String.");
  1002.     ADD_APPLICATION_STRING2(STR_SETTING_WRONG_PUK, "Wrong PUK", "Wrong PUK String.");
  1003.     ADD_APPLICATION_STRING2(STR_SETTING_PIN2_BLOCK_TITLE, "PIN2 Blocked", "PIN2 Blocked Title String.");
  1004.     ADD_APPLICATION_STRING2(
  1005.         STR_SETTING_PIN2_BLOCK_MSG,
  1006.         "Please Contact Service Provider",
  1007.         "PIN2 Blocked Message String.");
  1008.     ADD_APPLICATION_STRING2(STR_PASS_TRIALS_REMAIN, "Trials Remain: ", "Password trials remain message.");
  1009.     ADD_APPLICATION_STRING2(STR_FDL_IS_ON, "FDN Enabled", "FDN Enable Message.");
  1010.     ADD_APPLICATION_STRING2(STR_FDL_IS_OFF, "FDN Disabled", "FDN Disabled Message.");
  1011.     ADD_APPLICATION_STRING2(STR_BDL_IS_ON, "BDN Enabled", "BDN Enabled Message.");
  1012.     ADD_APPLICATION_STRING2(STR_BDL_IS_OFF, "BDN Disabled", "BDN Disabled Message.");
  1013.     ADD_APPLICATION_STRING2(STR_SETTING_PIN_BLK, "Wrong PIN! PIN is blocked.", "Wrong PIN! PIN is blocked Message.");
  1014.     ADD_APPLICATION_STRING2(
  1015.         STR_SETTING_PIN2_BLK,
  1016.         "Wrong PIN2! PIN2 is blocked.",
  1017.         "Wrong PIN2! PIN2 is blocked Message.");
  1018.     ADD_APPLICATION_STRING2(STR_SETTING_PIN2_BLK2, "PIN2 is blocked.", "PIN2 is blocked Message.");
  1019.     ADD_APPLICATION_STRING2(
  1020.         STR_INVALID_PINPUKPLOCK_LENGTH,
  1021.         "Invalid Length!",
  1022.         "Running Text on Incorrect PIN/PUK length Message.");
  1023.     ADD_APPLICATION_STRING2(STR_SETTING_STORAGE_FULL, "Storage Full!", "Sotrage Full Message .");
  1024. #ifdef __SUB_MENU_MATRIX_DISPLAY__
  1025.     ADD_APPLICATION_IMAGE2(
  1026.         IMG_SETTING_SECURITY,
  1027.         CUST_IMG_PATH"\\MainLCD\\MainMenu\\MATRIX\\setting\\DM_SECURITY.png",
  1028.         "Setting Submenu image for Security Setup.");
  1029.     ADD_APPLICATION_IMAGE2(
  1030.         IMG_SETTING_SECURITY_EX,
  1031.         CUST_IMG_PATH"\\MainLCD\\MainMenu\\MATRIX\\setting\\DM_SECURITY_ani.png",
  1032.         "Setting Submenu image for Security Setup.");
  1033.     /* begin: zhangclc added at: 2010-03-09 */
  1034. #if defined(OFN_SUPPORT)
  1035.     ADD_APPLICATION_IMAGE2(
  1036.         IMG_SETTING_OFN,
  1037.         CUST_IMG_PATH"\\MainLCD\\MainMenu\\MATRIX\\setting\\OFN_SETTING.png",
  1038.         "Setting Submenu image for Security Setup.");
  1039.     ADD_APPLICATION_IMAGE2(
  1040.         IMG_SETTING_OFN_EX,
  1041.         CUST_IMG_PATH"\\MainLCD\\MainMenu\\MATRIX\\setting\\OFN_SETTING_ANI.png",
  1042.         "Setting Submenu image for Security Setup.");
  1043. #endif /* OFN_SUPPORT */
  1044. #if defined(JOGBALL_SUPPORT)
  1045.     ADD_APPLICATION_IMAGE2(
  1046.         IMG_SETTING_JOGBALL,
  1047.         CUST_IMG_PATH"\\MainLCD\\MainMenu\\MATRIX\\setting\\JOGBALL_SETTING.png",
  1048.         "Setting Submenu image for Security Setup.");
  1049.     ADD_APPLICATION_IMAGE2(
  1050.         IMG_SETTING_JOGBALL_EX,
  1051.         CUST_IMG_PATH"\\MainLCD\\MainMenu\\MATRIX\\setting\\JOGBALL_SETTING_ANI.png",
  1052.         "Setting Submenu image for Security Setup.");
  1053. #endif /* JOGBALL_SUPPORT */
  1054.     /* end: zhangclc added at: 2010-03-09 */
  1055.     
  1056. #else
  1057.     ADD_APPLICATION_IMAGE2(
  1058.         IMG_SETTING_SECURITY,
  1059.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SB_SECUR.PBM",
  1060.         "Setting Submenu image for Security Setup.");
  1061. #endif
  1062.     PopulateFixedDialList();
  1063.     PopulateBarredDialList();
  1064.     PopulateAPNControlList();
  1065. }
  1066. /*****************************************************************************
  1067.  * FUNCTION
  1068.  *  PopulateSettingMenuRes
  1069.  * DESCRIPTION
  1070.  *  populating Setting menu resource
  1071.  * PARAMETERS
  1072.  *  void
  1073.  * RETURNS
  1074.  *  void
  1075.  *****************************************************************************/
  1076. void PopulateSettingMenuRes(void)
  1077. {
  1078.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9102_INITIAL_SETUP, HighlightPhnsetScr);
  1079.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9141_TIME_AND_DATE, HighlightPhnsetTimeAndDate);
  1080.     
  1081. #if defined(__MMI_PREFER_INPUT_METHOD__)
  1082.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_PREFERED_INPUT_METHOD, HighlightInputMehtodSetting);
  1083. #endif 
  1084. #ifdef __MMI_SETTING_APP_SETUP__
  1085. #ifdef __J2ME__
  1086.     /* high light handle of java setting */
  1087.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_APP_SETUP_JAVA, mmi_fng_highlight_setting_java);
  1088. #endif /* __J2ME__ */
  1089.     /* high light handle of message setting */
  1090. #ifdef __MMI_UNIFIED_MESSAGE__
  1091.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_UM_SETTING, mmi_um_highlight_setting);
  1092. #endif /* __MMI_UNIFIED_MESSAGE__ */
  1093. #endif /* __MMI_SETTING_APP_SETUP__ */
  1094.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_RESTORE, HighlightRstScr);
  1095. #if !defined(__MMI_NO_CONTRAST_LEVEL__)
  1096.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_CONTRAST_LEVEL, HighlightPhnsetContrastLevel);
  1097. #endif 
  1098.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_GPIO_SETTING, HighlightPhnsetGPIOSetting);
  1099. #if defined(JOGBALL_SUPPORT)
  1100.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_JB_SETTING, HighlightPhnsetJogBallSetting);
  1101.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_JB_SENSITIVITY, HighlightPhnsetJogBallLevelSetting);
  1102. #endif
  1103. #if !defined(HARDWARE_LED_NOT_SUPPORT)
  1104.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_GPIO_LED, HighlightPhnsetGPIOLED);
  1105.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_GPIO_LED, HintPhnsetGPIOLED);
  1106. #endif
  1107.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_GPIO_BACKLITE, HighlightPhnsetGPIOBackLite);
  1108. #ifdef __MMI_COVER_SETTING__
  1109.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_GPIO_COVER_CLOSE, HighlightPhnsetGPIOCover);
  1110. #endif 
  1111.     PopulateNetworkSetupMenuRes();
  1112.     PopulatePhoneSetupMenuRes();
  1113.     PopulateSecuritySetupMenuRes();
  1114. }
  1115. /*****************************************************************************
  1116.  * FUNCTION
  1117.  *  populateSettingMenu
  1118.  * DESCRIPTION
  1119.  *  populating various resources
  1120.  * PARAMETERS
  1121.  *  void
  1122.  * RETURNS
  1123.  *  void
  1124.  *****************************************************************************/
  1125. void populateSettingMenu(void)
  1126. {
  1127.     /*----------------------------------------------------------------*/
  1128.     /* Local Variables                                                */
  1129.     /*----------------------------------------------------------------*/
  1130.     /*----------------------------------------------------------------*/
  1131.     /* Code Body                                                      */
  1132.     /*----------------------------------------------------------------*/
  1133.     ADD_APPLICATION_MENUITEM((MENU9100_CALL_SETTING, MAIN_MENU_SETTINGS_MENUID, 0,
  1134.                               SHOW, NONMOVEABLE, DISP_LIST, STR_MENU9100_CALL_SETTING, 0));
  1135.     ADD_APPLICATION_MENUITEM((MENU_SETTING_RESTORE, MAIN_MENU_SETTINGS_MENUID, 0,
  1136.                               SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_MENU_RESTORE, IMG_SETTING_STORE));
  1137. #ifdef __MMI_SETTING_APP_SETUP__
  1138.     
  1139.     /* add java setting menu and resource */
  1140. #ifdef __J2ME__
  1141.     ADD_APPLICATION_MENUITEM((MENU_SETTING_APP_SETUP_JAVA, MAIN_MENU_SETTINGS_MENUID, 0,
  1142. SHOW, MOVEABLEACROSSPARENT, DISP_LIST, STR_ID_APP_SETUP_JAVA, IMG_ID_APP_SETUP_JAVA));
  1143.     ADD_APPLICATION_STRING2(STR_ID_APP_SETUP_JAVA, "Java Settings", "Java Setup");
  1144.     ADD_APPLICATION_IMAGE2(
  1145.         IMG_ID_APP_SETUP_JAVA,
  1146.         CUST_IMG_PATH"\\MainLCD\\JAVA\\SB_JVST.pbm",
  1147.         "Java Submenu image for Java Settings");
  1148. #endif /* __J2ME__ */
  1149.     /* add message setting menu and resource */
  1150. #ifdef __MMI_UNIFIED_MESSAGE__
  1151.     ADD_APPLICATION_MENUITEM2((MENU_ID_UM_SETTING, MAIN_MENU_SETTINGS_MENUID,
  1152.     #ifndef __MMI_DUAL_SIM_MASTER__
  1153.         MENU_ID_SMS_MSG_SETTINGS, 
  1154.     #else /* __MMI_DUAL_SIM_MASTER__ */
  1155.         MENU_MTPNP_DM_MSG_SETTINGS,
  1156.     #endif /* __MMI_DUAL_SIM_MASTER__ */
  1157.         MENU_ID_UM_SETTING_MMS,
  1158.         MENU_ITEM_END,
  1159.         SHOW, MOVEABLEACROSSPARENT, DISP_LIST, STR_ID_APP_SETUP_MSG, IMG_ID_APP_SETUP_MSG));
  1160. #endif /* __MMI_UNIFIED_MESSAGE__ */
  1161.     ADD_APPLICATION_STRING2(STR_ID_APP_SETUP_MSG, "Message Settings", "UM Setup");
  1162.     ADD_APPLICATION_IMAGE2(
  1163.         IMG_ID_APP_SETUP_MSG,
  1164.         CUST_IMG_PATH"\\MainLCD\\UniMessage\\Uni_Set.pbm",
  1165.         "Message Submenu image for message Settings");
  1166. #endif /* __MMI_SETTING_APP_SETUP__ */
  1167. #if defined(__MMI_TOUCH_SCREEN__)
  1168. #if !defined(__MMI_OFN_MOUSE__)&&!defined(__MMI_VK_SUPPORT__)
  1169.     ADD_APPLICATION_MENUITEM((MENU_SETTING_CALIBRATION, MAIN_MENU_SETTINGS_MENUID, 0,
  1170.                               SHOW, SHORTCUTABLE, DISP_LIST, STR_CALIBRATION_SETTING, IMG_CALIBRATION_MENU_ICON));
  1171. #endif
  1172. #endif /* __MMI_TOUCH_SCREEN__ */ 
  1173.     ADD_APPLICATION_MENUITEM2((MENU9102_INITIAL_SETUP, MAIN_MENU_SETTINGS_MENUID, 
  1174.                           /* begin: zhangclc added at 2010-02-05 --- 增加"动感世界"G-SENSOR设置菜单项 */
  1175.                           #ifdef __MMI_INNERVATION_WORLD__
  1176.                               MENU_ID_INNERVATION_WORLD,
  1177.                           #endif
  1178.                           /* end: zhangclc added at 2010-02-05 --- 增加"动感世界"G-SENSOR设置菜单项 */
  1179. #ifdef __MMI_FREETYPE_SETTING_SUPPORT__
  1180.                               MENU_ID_PHNSET_FREETYPE_SETTING, 
  1181. #endif
  1182.                               MENU9141_TIME_AND_DATE, MENU_SETTING_SCHEDULE_POWER, MENU_SETTING_LANGUAGE,
  1183. #ifdef __MMI_PREFER_INPUT_METHOD__
  1184.                               MENU_SETTING_PREFERED_INPUT_METHOD,
  1185. #endif 
  1186. #if defined(__MMI_PREFER_WRITING_LANG__) || defined(__MMI_MIXED_LANG_SUPPORT__)
  1187.                               MENU_ID_PHNSET_PREFERED_WRITING_LANG,
  1188. #endif
  1189. #ifdef __MMI_SET_DEF_ENCODING_TYPE__
  1190.                               MENU_SETTING_DEF_ENCODING_TYPE,
  1191. #endif 
  1192.                               MENU_IDLE_SCR_DISP,
  1193. #ifdef __MMI_THEMES_APPLICATION__
  1194.                               MENU3101_THEMES, /* Theme, Wen */
  1195. #endif
  1196. #if !defined(__MMI_NO_CONTRAST_LEVEL__)
  1197.                               MENU_SETTING_CONTRAST_LEVEL,
  1198. #endif 
  1199.                               MENU9146_WELCOME_TEXT, 
  1200. #if ((!defined(__MMI_VERSION_2__) && !defined(__MMI_OP01_MENU_9MATRIX__)) || 
  1201.     (defined(__WIFI_WIZARD_SUPPORT__) && !defined(__MMI_BI_DEGREE_MAIN_MENU_STYLE__))) && !defined(__DISABLE_SHORTCUTS_MENU__)
  1202.                               EXTRA_SHORTCUTS_MENUID,
  1203. #endif 
  1204. #if defined(__MMI_DEDICATED_KEY_SHORTCUTS__)
  1205.                               MENU_SETTING_DEDICATED_KEYS,
  1206. #endif 
  1207. #if (defined(__MMI_NITZ__) && (!defined(__MMI_AUTOTIMEZONE_IN_DATEANDTIME__)))
  1208.                               MENU9145_SETTIMEANDDATENITZ,
  1209. #endif 
  1210. #ifdef __FLIGHT_MODE_SUPPORT__
  1211. #ifndef __MMI_DUAL_SIM_MASTER__
  1212.                               MENU_SETTING_FLIGHT_MODE,
  1213. #endif  /* __MMI_DUAL_SIM_MASTER__ */
  1214. #endif 
  1215. #if defined(__MMI_TOUCH_SCREEN__) && !defined(__MMI_NO_HANDWRITING__)
  1216.                               MENU_SETTING_HANDWRITING,
  1217. #endif 
  1218. #ifdef __MMI_TVOUT__
  1219.                               MENU_ID_SETTING_TVOUT,
  1220. #endif 
  1221. #ifdef __MMI_CHANGABLE_FONT__
  1222.                               MENU_ID_PHNSET_FONT_SIZE,
  1223. #endif 
  1224.         /* begin: zhangclc modified at: 2009-12-01 */
  1225. #if defined(__THAI_SUPPORT__)
  1226. #ifdef __MMI_DUAL_SIM_MASTER__
  1227.   MENU_ID_PHNSET_UART_SETUP,
  1228. #endif /* __MMI_DUAL_SIM_MASTER__ */
  1229. #endif
  1230.         /* end: zhangclc modified at: 2009-12-01 */
  1231.                               MENU_ID_PHNSET_GPIO_SETTING,
  1232.                               MENU_ITEM_END,
  1233.                               SHOW, MOVEABLEACROSSPARENT, DISP_LIST, STR_MENU9102_INITIAL_SETUP, IMG_SETTING_PHONE));
  1234.     ADD_APPLICATION_MENUITEM((MENU9146_WELCOME_TEXT, MENU9102_INITIAL_SETUP, 0,
  1235.                               SHOW, (MOVEABLEACROSSPARENT | SHORTCUTABLE), DISP_LIST, STR_MENU9146_WELCOME_TEXT, 0));
  1236.     PopulateFontSizeResData();
  1237.     PopulateGPIOSettingResData();
  1238. #ifdef __MMI_INNERVATION_WORLD__
  1239. PopulateInnerWorResDate();
  1240. #endif
  1241.     /* TV out related */
  1242. #ifdef __MMI_TVOUT__
  1243.     ADD_APPLICATION_MENUITEM((MENU_ID_SETTING_TVOUT, MENU9102_INITIAL_SETUP, 2,
  1244.                               MENU_ID_SETTING_TVOUT_SETTING,
  1245.                               MENU_ID_SETTING_TVOUT_ADJUST, SHOW, NONMOVEABLE, DISP_LIST, STR_ID_SETTING_TVOUT, 0));
  1246.     ADD_APPLICATION_MENUITEM((MENU_ID_SETTING_TVOUT_SETTING, MENU_ID_SETTING_TVOUT, 0,
  1247.                               SHOW, NONMOVEABLE, DISP_LIST, STR_GLOBAL_SETTINGS, 0));
  1248.     ADD_APPLICATION_MENUITEM((MENU_ID_SETTING_TVOUT_ADJUST, MENU_ID_SETTING_TVOUT, 0,
  1249.                               SHOW, NONMOVEABLE, DISP_LIST, STR_ID_SETTING_TVOUT_ADJUST, 0));
  1250. #endif /* __MMI_TVOUT__ */ 
  1251. /**************************************************************/
  1252.     /* Robin 0722
  1253.        NOTICE!!  This menu is not configure here
  1254.        It is dynamic list initialized in EntryPhnsetTimeAndDate() */
  1255. /**************************************************************/
  1256.     ADD_APPLICATION_MENUITEM((MENU9141_TIME_AND_DATE, MENU9102_INITIAL_SETUP, MENU_SETDT_NUM,
  1257. #ifndef __MMI_HIDE_HOMECITY__
  1258.                               MENU9142_SETHOMECITY,
  1259. #endif 
  1260. #ifdef __MMI_DUAL_CLOCK__
  1261.   MENU9142_SETFOREIGNCITY,
  1262. #endif
  1263. #ifndef __MMI_SEPARATE_DT_SETTING__
  1264.                               MENU9143_SETTIMEANDDATE, MENU9144_SETTIMEANDDATEFORMAT,
  1265. #else 
  1266.                               MENU_ID_SETTING_DATEANDFORMAT, MENU_ID_SETTING_TIMEANDFORMAT,
  1267. #endif 
  1268. #if defined(__MMI_TIMEZONE_CHANGE_DATETIME__)
  1269.                               MENU_ID_TZ_CHANGE_DATETIME,
  1270. #endif
  1271. #if (defined(__MMI_NITZ__) && defined(__MMI_AUTOTIMEZONE_IN_DATEANDTIME__))
  1272.                               MENU9145_SETTIMEANDDATENITZ,
  1273. #endif 
  1274.                               SHOW, MOVEABLEACROSSPARENT, DISP_LIST, STR_MENU9141_TIME_AND_DATE, 0));
  1275. #ifndef __MMI_HIDE_HOMECITY__
  1276. #ifdef __MMI_TWO_LAYER_HOMECITY__
  1277.     ADD_APPLICATION_MENUITEM((MENU9142_SETHOMECITY, MENU9141_TIME_AND_DATE, 0,
  1278.         SHOW, (MOVEABLEWITHINPARENT | SHORTCUTABLE), DISP_LIST, STR_MENU9142_SETTIMEZONE, 0));
  1279. #else /* __MMI_TWO_LAYER_HOMECITY__ */
  1280.     ADD_APPLICATION_MENUITEM((MENU9142_SETHOMECITY, MENU9141_TIME_AND_DATE, 0,
  1281.         SHOW, (MOVEABLEWITHINPARENT | SHORTCUTABLE), DISP_LIST, STR_MENU9142_SETHOMECITY, 0));
  1282. #endif /* __MMI_TWO_LAYER_HOMECITY__ */
  1283. #endif /* __MMI_HIDE_HOMECITY__ */ 
  1284. #ifdef __MMI_DUAL_CLOCK__
  1285.     ADD_APPLICATION_MENUITEM((MENU9142_SETFOREIGNCITY, MENU9141_TIME_AND_DATE, 0,
  1286.                               SHOW, (MOVEABLEWITHINPARENT | SHORTCUTABLE), DISP_LIST, STR_MENU9142_SETFRNCITY, 0));
  1287. #endif /* __MMI_OP11_HOMESCREEN__ */
  1288. #ifndef __MMI_SEPARATE_DT_SETTING__
  1289.     ADD_APPLICATION_MENUITEM((MENU9143_SETTIMEANDDATE, MENU9141_TIME_AND_DATE, 0,
  1290.                               SHOW, (MOVEABLEWITHINPARENT | SHORTCUTABLE), DISP_LIST, STR_ID_PHNSET_SET_DT, 0));
  1291.     ADD_APPLICATION_MENUITEM((MENU9144_SETTIMEANDDATEFORMAT, MENU9141_TIME_AND_DATE, 0,
  1292.                               SHOW, (MOVEABLEWITHINPARENT | SHORTCUTABLE), DISP_LIST, STR_MENU9144_SETTIMEANDDATEFORMAT,
  1293.                               0));
  1294. #else /* __MMI_SEPARATE_DT_SETTING__ */ 
  1295.     ADD_APPLICATION_MENUITEM((MENU_ID_SETTING_DATEANDFORMAT, MENU9141_TIME_AND_DATE, 0,
  1296.                               SHOW, (MOVEABLEWITHINPARENT | SHORTCUTABLE), DISP_LIST, STR_ID_PHNSET_SET_DATEANDFORMAT,
  1297.                               0));
  1298.     ADD_APPLICATION_MENUITEM((MENU_ID_SETTING_TIMEANDFORMAT, MENU9141_TIME_AND_DATE, 0,
  1299.                               SHOW, (MOVEABLEWITHINPARENT | SHORTCUTABLE), DISP_LIST, STR_ID_PHNSET_SET_TIMEANDFORMAT,
  1300.                               0));
  1301. #endif /* __MMI_SEPARATE_DT_SETTING__ */
  1302.     
  1303. #if defined(__MMI_TIMEZONE_CHANGE_DATETIME__)
  1304.     ADD_APPLICATION_MENUITEM((MENU_ID_TZ_CHANGE_DATETIME, MENU9141_TIME_AND_DATE, 0,
  1305.         SHOW, (MOVEABLEWITHINPARENT | SHORTCUTABLE), DISP_LIST, STR_ID_TZ_CHANGE_DATETIME, 0));
  1306. #endif /* defined(__MMI_TIMEZONE_CHANGE_DATETIME__) && defined(__MMI_NITZ__) */
  1307. #if (defined(__MMI_NITZ__) && defined(__MMI_AUTOTIMEZONE_IN_DATEANDTIME__))
  1308.     ADD_APPLICATION_MENUITEM((MENU9145_SETTIMEANDDATENITZ, MENU9141_TIME_AND_DATE, 0,
  1309.                               SHOW, (MOVEABLEACROSSPARENT | SHORTCUTABLE), DISP_LIST, STR_MENU_SETTING_MENU_TREE, 0));
  1310. #endif /* (defined(__MMI_NITZ__) && defined(__MMI_AUTOTIMEZONE_IN_DATEANDTIME__)) */ 
  1311.     ADD_APPLICATION_MENUITEM((MENU_SETTING_LANGUAGE, MENU9102_INITIAL_SETUP, 0,
  1312.                               SHOW, (MOVEABLEACROSSPARENT | SHORTCUTABLE), DISP_LIST, STR_MENU_LANGUAGE, 0));
  1313. #ifdef __FLIGHT_MODE_SUPPORT__
  1314. #ifndef __MMI_DUAL_SIM_MASTER__
  1315.     ADD_APPLICATION_MENUITEM((MENU_SETTING_FLIGHT_MODE, MENU9102_INITIAL_SETUP, 0,
  1316.                               SHOW, SHORTCUTABLE, DISP_LIST, STR_MENU_FLIGHT_MODE, 0));
  1317. #endif  /* __MMI_DUAL_SIM_MASTER__ */
  1318. #endif /* __FLIGHT_MODE_SUPPORT__ */ 
  1319. #ifdef __MMI_DUAL_SIM_MASTER__
  1320. ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_UART_SETUP, MENU9102_INITIAL_SETUP, 0,
  1321.                               SHOW, SHORTCUTABLE, DISP_LIST, STR_ID_PHNSET_UART_SETUP_TITLE, 0));
  1322. ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_UART_SETUP, MENU9102_INITIAL_SETUP, 
  1323. 2,
  1324. MENU_ID_PHNSET_UART_SIM1,
  1325. MENU_ID_PHNSET_UART_SIM2,
  1326.         SHOW, (MOVEABLEACROSSPARENT | SHORTCUTABLE), DISP_LIST, STR_ID_PHNSET_UART_SETUP_TITLE, 0));
  1327.     ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_UART_SIM1, MENU_SETTING_DEF_ENCODING_TYPE, 0,
  1328.                               SHOW, NONMOVEABLE, DISP_LIST, STRING_MTPNP_UART_SIM1, 0));
  1329.     ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_UART_SIM2, MENU_SETTING_DEF_ENCODING_TYPE, 0,
  1330.   SHOW, NONMOVEABLE, DISP_LIST, STRING_MTPNP_UART_SIM2, 0));
  1331. #endif /* __MMI_DUAL_SIM_MASTER__ */
  1332. ADD_APPLICATION_STRING2(STR_ID_PHNSET_UART_SETUP_TITLE, "UART Setup", "UART Setup");
  1333. ADD_APPLICATION_STRING2(STR_ID_PHNSET_UART_REBOOT, "After change UART Phone will reboot. Continue? ", "UART Reboot confirm");
  1334. ADD_APPLICATION_STRING2(STR_ID_PHNSET_UART_SETUP_REBOOT_PROCESSING, "Reboot Processing", "UART reboot process");
  1335.     ADD_APPLICATION_STRING2(STRING_MTPNP_UART_SIM1, "SIM1", "SIM1");
  1336.     ADD_APPLICATION_STRING2(STRING_MTPNP_UART_SIM2, "SIM2", "SIM2");    
  1337. #if defined(__MMI_PREFER_INPUT_METHOD__)
  1338.     ADD_APPLICATION_MENUITEM((MENU_SETTING_PREFERED_INPUT_METHOD, MENU9102_INITIAL_SETUP, 0,
  1339.                               SHOW, (MOVEABLEACROSSPARENT | SHORTCUTABLE), DISP_LIST, STR_MENU_INPUT_METHOD, 0));
  1340. #endif /* defined(__MMI_PREFER_INPUT_METHOD__) */ 
  1341. #if defined(__MMI_PREFER_WRITING_LANG__) || defined(__MMI_MIXED_LANG_SUPPORT__)
  1342. #if defined(__MMI_MIXED_LANG_SUPPORT__)
  1343.     ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_PREFERED_WRITING_LANG, MENU9102_INITIAL_SETUP, 2,
  1344.                               MENU_ID_PHNSET_PREFERED_WRITING_LANG_MAIN,
  1345.                               MENU_ID_PHNSET_PREFERED_WRITING_LANG_SUB,
  1346.                               SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_PREFERED_WRITING_LANG, 0));
  1347.     ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_PREFERED_WRITING_LANG_MAIN, MENU_ID_PHNSET_PREFERED_WRITING_LANG, 0,
  1348.                               SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_PREFERED_WRITING_LANG_MAIN, 0));
  1349.     ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_PREFERED_WRITING_LANG_SUB, MENU_ID_PHNSET_PREFERED_WRITING_LANG, 0,
  1350.                               SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_PREFERED_WRITING_LANG_SUB, 0));
  1351.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_PREFERED_WRITING_LANG_MAIN, "Main Language", "Main writing language");
  1352.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_PREFERED_WRITING_LANG_SUB, "Sub Language", "Sub writing language");
  1353. #else
  1354.     ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_PREFERED_WRITING_LANG, MENU9102_INITIAL_SETUP, 0,
  1355.                               SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_PREFERED_WRITING_LANG, 0));
  1356. #endif /* defined(__MMI_MIXED_LANG_SUPPORT__) */
  1357.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_PREFERED_WRITING_LANG, "Writing Language", "Preferred writing language");
  1358. #endif /* defined(__MMI_PREFER_WRITING_LANG__) */
  1359. #if defined(__MMI_SET_DEF_ENCODING_TYPE__)
  1360.     ADD_APPLICATION_MENUITEM((MENU_SETTING_DEF_ENCODING_TYPE, MENU9102_INITIAL_SETUP, 
  1361.                                 0
  1362. #ifdef __MMI_CHSET_BIG5__
  1363.                                 +1
  1364. #endif /* __MMI_CHSET_BIG5__ */
  1365. #ifdef __MMI_CHSET_GB2312__  
  1366.                                 +1
  1367. #endif /* __MMI_CHSET_GB2312__ */
  1368. #ifdef __MMI_CHSET_HKSCS__  
  1369.                                 +1
  1370. #endif /* __MMI_CHSET_HKSCS__ */
  1371. #ifdef __MMI_CHSET_GB18030__
  1372.                                 +1
  1373. #endif /* __MMI_CHSET_GB18030__ */
  1374.                                 ,
  1375. #ifdef __MMI_CHSET_BIG5__
  1376.                               MENU_SETTING_DEF_ENCODING_BIG2,
  1377. #endif /* __MMI_CHSET_BIG5__ */
  1378. #ifdef __MMI_CHSET_GB2312__
  1379.                               MENU_SETTING_DEF_ENCODING_GB2312,
  1380. #endif /* __MMI_CHSET_GB2312__ */
  1381. #ifdef __MMI_CHSET_HKSCS__
  1382.                               MENU_SETTING_DEF_ENCODING_HKSCS,
  1383. #endif /* __MMI_CHSET_HKSCS__ */
  1384. #ifdef __MMI_CHSET_GB18030__
  1385.                               MENU_SETTING_DEF_ENCODING_GB18030,
  1386. #endif /* __MMI_CHSET_GB18030__ */
  1387.                               SHOW, (MOVEABLEACROSSPARENT | SHORTCUTABLE), DISP_LIST, STR_DEF_ENCODING_TYPE_TITLE, 0));
  1388. #ifdef __MMI_CHSET_BIG5__
  1389.     ADD_APPLICATION_MENUITEM((MENU_SETTING_DEF_ENCODING_BIG2, MENU_SETTING_DEF_ENCODING_TYPE, 0,
  1390.                               SHOW, NONMOVEABLE, DISP_LIST, STR_DEF_ENCODING_TYPE_BIG5, 0));
  1391. #endif /* __MMI_CHSET_BIG5__ */
  1392. #ifdef __MMI_CHSET_GB2312__  
  1393.     ADD_APPLICATION_MENUITEM((MENU_SETTING_DEF_ENCODING_GB2312, MENU_SETTING_DEF_ENCODING_TYPE, 0,
  1394.                               SHOW, NONMOVEABLE, DISP_LIST, STR_DEF_ENCODING_TYPE_GB2312, 0));
  1395. #endif /* __MMI_CHSET_GB2312__ */
  1396. #ifdef __MMI_CHSET_HKSCS__  
  1397.     ADD_APPLICATION_MENUITEM((MENU_SETTING_DEF_ENCODING_HKSCS, MENU_SETTING_DEF_ENCODING_TYPE, 0,
  1398.                               SHOW, NONMOVEABLE, DISP_LIST, STR_DEF_ENCODING_TYPE_HKSCS, 0));
  1399. #endif /* __MMI_CHSET_HKSCS__ */
  1400. #ifdef __MMI_CHSET_GB18030__
  1401.     ADD_APPLICATION_MENUITEM((MENU_SETTING_DEF_ENCODING_GB18030, MENU_SETTING_DEF_ENCODING_TYPE, 0,
  1402.                               SHOW, NONMOVEABLE, DISP_LIST, STR_DEF_ENCODING_TYPE_GB18030, 0));
  1403. #endif /* __MMI_CHSET_GB18030__ */
  1404.     ADD_APPLICATION_MENUITEM((MENU_SETTING_DEF_ENCODING_UCS2, MENU_SETTING_DEF_ENCODING_TYPE, 0,
  1405.                               SHOW, NONMOVEABLE, DISP_LIST, STR_DEF_ENCODING_TYPE_UCS2, 0));
  1406.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_TITLE, "Default Encoding Type", "Default Encoding Type");
  1407.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_ISO_8859_1, "ISO-8859-1", "ISO-8859-1");
  1408.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_ISO_8859_2, "ISO-8859-2", "ISO-8859-2");
  1409.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_ISO_8859_3, "ISO-8859-3", "ISO-8859-3");
  1410.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_ISO_8859_4, "ISO-8859-4", "ISO-8859-4");
  1411.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_ISO_8859_6, "ISO-8859-6", "ISO-8859-6");
  1412.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_ISO_8859_7, "ISO-8859-7", "ISO-8859-7");
  1413.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_ISO_8859_8, "ISO-8859-8", "ISO-8859-8");
  1414.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_ISO_8859_9, "ISO-8859-9", "ISO-8859-9");
  1415.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_ISO_8859_10, "ISO-8859-10", "ISO-8859-10");
  1416.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_ISO_8859_15, "ISO-8859-15", "ISO-8859-15");
  1417.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_UTF_7, "UTF-7", "UTF-7");
  1418.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_UTF_8, "UTF-8", "UTF-8");
  1419.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_UTF_16LE, "UTF-16LE", "UTF-16LE");
  1420.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_UTF_16BE, "UTF-16BE", "UTF-16BE");
  1421.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_ASCII, "ASCII", "ASCII");
  1422.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_WINDOWS_1250, "Windows-1250", "Windows-1250");
  1423.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_WINDOWS_1252, "Windows-1252", "Windows-1252");
  1424.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_WINDOWS_1253, "Windows-1253", "Windows-1253");
  1425.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_WINDOWS_1254, "Windows-1254", "Windows-1254");
  1426.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_WINDOWS_1255, "Windows-1255", "Windows-1255");
  1427.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_WINDOWS_1256, "Windows-1256", "Windows-1256");
  1428.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_WINDOWS_1257, "Windows-1257", "Windows-1257");
  1429.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_WINDOWS_1258, "Windows-1258", "Windows-1258");
  1430.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_WINDOWS_874, "Windows-874", "Windows-874");
  1431.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_ISO_10585, "ISO-10585", "ISO-10585");
  1432.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_CP1097, "CP1097", "CP1097");
  1433.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_CP1098, "CP1098", "CP1098");
  1434.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_EUC_KR, "EUC-KR", "EUC-KR");
  1435.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_KOI8_R, "KOI8-R", "KOI8-R");
  1436.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_TIS_620, "TIS-620", "TIS-620");
  1437.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_BIG5, "Big5", "Big5");
  1438.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_GB2312, "GB2312", "GB2312");
  1439.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_GB18030, "GB18030", "GB18030");
  1440.     ADD_APPLICATION_STRING2(STR_DEF_ENCODING_TYPE_UCS2, "UCS2", "UCS2");
  1441. #endif /* defined(__MMI_SET_DEF_ENCODING_TYPE__) */ 
  1442.     ADD_APPLICATION_MENUITEM((MENU9171_ON, MENU_SETTING_SCH_POW_SET1_POW_ON, 0,
  1443.                               SHOW, NONMOVEABLE, DISP_LIST, STR_GLOBAL_ON, 0));
  1444.     ADD_APPLICATION_MENUITEM((MENU9172_OFF, MENU_SETTING_SCH_POW_SET1_POW_ON, 0,
  1445.                               SHOW, NONMOVEABLE, DISP_LIST, STR_GLOBAL_OFF, 0));
  1446. #if defined(__MMI_DEDICATED_KEY_SHORTCUTS__)
  1447.     ADD_APPLICATION_MENUITEM((MENU_SETTING_DEDICATED_KEYS, MENU9102_INITIAL_SETUP, 4,
  1448.                               MENU_SETTING_DEDICATED_UP_KEY,
  1449.                               MENU_SETTING_DEDICATED_DOWN_KEY,
  1450.                               MENU_SETTING_DEDICATED_LEFT_KEY,
  1451.                               MENU_SETTING_DEDICATED_RIGHT_KEY,
  1452.                               SHOW, (MOVEABLEWITHINPARENT | SHORTCUTABLE), DISP_LIST, STR_DEDICATED_KEY,
  1453.                               IMG_SETTING_PHONE));
  1454.     ADD_APPLICATION_MENUITEM((MENU_SETTING_DEDICATED_UP_KEY, MENU_SETTING_DEDICATED_KEYS, 0,
  1455.                               SHOW, NONMOVEABLE, DISP_LIST, STR_DEDICATED_UP_KEY, IMG_SETTING_PHONE));
  1456.     ADD_APPLICATION_MENUITEM((MENU_SETTING_DEDICATED_DOWN_KEY, MENU_SETTING_DEDICATED_KEYS, 0,
  1457.                               SHOW, NONMOVEABLE, DISP_LIST, STR_DEDICATED_DOWN, IMG_SETTING_PHONE));
  1458.     ADD_APPLICATION_MENUITEM((MENU_SETTING_DEDICATED_LEFT_KEY, MENU_SETTING_DEDICATED_KEYS, 0,
  1459.                               SHOW, NONMOVEABLE, DISP_LIST, STR_DEDICATED_LEFT, IMG_SETTING_PHONE));
  1460.     ADD_APPLICATION_MENUITEM((MENU_SETTING_DEDICATED_RIGHT_KEY, MENU_SETTING_DEDICATED_KEYS, 0,
  1461.                               SHOW, NONMOVEABLE, DISP_LIST, STR_DEDICATED_RIGHT, IMG_SETTING_PHONE));
  1462.     ADD_APPLICATION_STRING2(STR_DEDICATED_KEY, "Dedicated Key", "Dedicated Key");
  1463.     ADD_APPLICATION_STRING2(STR_DEDICATED_UP_KEY, "Up", "Up key");
  1464.     ADD_APPLICATION_STRING2(STR_DEDICATED_DOWN, "Down", "Down key");
  1465.     ADD_APPLICATION_STRING2(STR_DEDICATED_LEFT, "Left", "Left key");
  1466.     ADD_APPLICATION_STRING2(STR_DEDICATED_RIGHT, "Right", "Right key");
  1467. #endif /* defined(__MMI_DEDICATED_KEY_SHORTCUTS__) */ 
  1468. #if defined(__MMI_TOUCH_SCREEN__)
  1469.     ADD_APPLICATION_STRING2(STR_HANDWRITING_SETTING, "Handwriting", "Handwriting Setting");
  1470.     ADD_APPLICATION_STRING2(STR_CALIBRATION_SETTING, "Pen Calibration", "Calibration Setting");
  1471.     ADD_APPLICATION_STRING2(STR_HANDWRITING_PEN_SPEED, "Pen Speed", "Pen Speed");
  1472.     ADD_APPLICATION_STRING2(STR_HANDWRITING_PEN_COLOR, "Pen Color", "Pen Color");
  1473.     ADD_APPLICATION_STRING2(
  1474.         STR_CALIBRATION_WELCOME_TEXT,
  1475.         "Calibration wizard. You have to calibrate the touch-screen. Click anywhere on the screen with your stylus to start calibration.",
  1476.         "Calibration Screen Welcome Text");
  1477.     ADD_APPLICATION_STRING2(
  1478.         STR_CALIBRATION_TOP_LEFT_TEXT,
  1479.         "Click on the top-left point.",
  1480.         "Calibration Screen Top Left Text");
  1481.     ADD_APPLICATION_STRING2(
  1482.         STR_CALIBRATION_BOTTOM_RIGHT_TEXT,
  1483.         "Click on the bottom-right point.",
  1484.         "Calibration Screen Bottom Right Text");
  1485.     ADD_APPLICATION_STRING2(
  1486.         STR_CALIBRATION_CENTER_TEXT,
  1487.         "Click on the center point.",
  1488.         "Calibration Screen Center Text");
  1489.         
  1490. #if !defined(__MMI_NO_HANDWRITING__)
  1491.     ADD_APPLICATION_MENUITEM((MENU_SETTING_HANDWRITING, MENU9102_INITIAL_SETUP, 0, SHOW,
  1492.                               NONMOVEABLE, DISP_LIST, STR_HANDWRITING_SETTING, 0));
  1493. #endif /* !defined(__MMI_NO_HANDWRITING__) */
  1494.     ADD_APPLICATION_IMAGE2(
  1495.         IMG_CALIBRATION_TOP_LEFT,
  1496.         CUST_IMG_PATH "\\MainLCD\\UIElement\\Calibration\\CALI_SMALL.gif",
  1497.         "IMG_CALIBATION_TOP_LEFT");
  1498.     ADD_APPLICATION_IMAGE2(
  1499.         IMG_CALIBRAION_BOTTOM_RIGHT,
  1500.         CUST_IMG_PATH "\\MainLCD\\UIElement\\Calibration\\CALI_SMALL.gif",
  1501.         "IMG_CALIBRATION_BOTTOM_RIGHT");
  1502.     ADD_APPLICATION_IMAGE2(
  1503.         IMG_CALIBRATION_CENTER,
  1504.         CUST_IMG_PATH "\\MainLCD\\UIElement\\Calibration\\CALI_CENTER.gif",
  1505.         "IMG_CALIBRATION_CENTER");
  1506. #ifdef __MMI_HANDWRITING_PAD__
  1507.     ADD_APPLICATION_STRING2(
  1508.         STR_TEST_CONTROL_AREA_WELCOME_TEXT,
  1509.         "Click on each control area.",
  1510.         "Test control area description");
  1511. #endif /* __MMI_HANDWRITING_PAD__ */ 
  1512. #endif /* __MMI_TOUCH_SCREEN__ */ 
  1513.     ADD_APPLICATION_STRING2(STR_MENU9100_CALL_SETTING, "Call Setup", "Settings Call.");
  1514.     ADD_APPLICATION_STRING2(STR_MENU9102_INITIAL_SETUP, "Phone Setup", "Phone Setup.");
  1515.     ADD_APPLICATION_STRING2(STR_MENU9141_TIME_AND_DATE, "Time and Date", "Time And Date Selection.");
  1516.     ADD_APPLICATION_STRING2(STR_SETTIME_UNFINISHED, "Unfinish! (Year range from 2000 ~ 2030)", "Set Time Unfinish");
  1517.     ADD_APPLICATION_STRING2(STR_MENU9142_SETHOMECITY, "Set Home city", "Set Home City Title.");
  1518. ADD_APPLICATION_STRING2(STR_MENU9142_SETFRNCITY, "Set foreign city", "Set Home City Title.");
  1519.     ADD_APPLICATION_STRING2(STR_MENU9142_SETTIMEZONE, "Set time zone", "Set Home City Title.");
  1520.     ADD_APPLICATION_STRING2(STR_ID_TZ_CHANGE_DATETIME, "Auto date time update", "Auto Time zone change");
  1521. ADD_APPLICATION_STRING2(STR_ID_TZ_CHANGE_DATETIME_TITLE, "Auto date time update", "Auto Time zone change");
  1522. ADD_APPLICATION_STRING2(STR_ID_PHNSET_SET_DT, "Set Time/Date", "Set Time and Date.");
  1523. #ifdef __MMI_SEPARATE_DT_SETTING__
  1524.     ADD_APPLICATION_STRING2(
  1525.         STR_DATE_TIME_SET_FORMAT_CAPTION,
  1526.         "Set Date and Time..",
  1527.         "Set Date and Time Format String caption");
  1528.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_SET_DATEANDFORMAT, "Set Date and Format", "Set Date and Format.");
  1529.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_SET_TIMEANDFORMAT, "Set Time and Format", "Set Time and Format");
  1530. #endif /* __MMI_SEPARATE_DT_SETTING__ */ 
  1531.     ADD_APPLICATION_STRING2(STR_MENU9144_SETTIMEANDDATEFORMAT, "Set Format", "Set Time and Date Format.");
  1532.     ADD_APPLICATION_STRING2(STR_ID_PHNSET_SET_DST, "Day Light Saving", "Set Day Light Saving.");
  1533.     ADD_APPLICATION_STRING2(STR_ENTER_TIME_FORMAT_DISP_CAPTION, "HH:MM", "Display Time Entry Format.");
  1534.     ADD_APPLICATION_STRING2(STR_ENTER_DATE_FORMAT_DISP_CAPTION, "YYYY/MM/DD", "Display Date Entry Format.");
  1535.     ADD_APPLICATION_STRING2(STR_TIME_FORMAT_CAPTION, "Time Format:", "Time format Sring");
  1536.     ADD_APPLICATION_STRING2(STR_DATE_FORMAT_CAPTION, "Date Format:", "Set Date Format String");
  1537.     ADD_APPLICATION_STRING2(
  1538.         STR_DATE_TIME_SET_FORMAT_CAPTION,
  1539.         "Set Date and Time..",
  1540.         "Set Date and Time Format String caption");
  1541.     ADD_APPLICATION_STRING2(STR_MENU9146_WELCOME_TEXT, "Greeting Text", "Set Welcome Text.");
  1542.     ADD_APPLICATION_STRING2(STR_ID_DD_MM_YYYY_S, "dd mm yyyy", "Date Format 23-01-03.");
  1543.     ADD_APPLICATION_STRING2(STR_ID_MM_DD_YYYY_S, "mm dd yyyy", "Date Format 01/23/03.");
  1544.     ADD_APPLICATION_STRING2(STR_ID_YYYY_MM_DD_S, "yyyy mm dd", "Date Format 23/01/03.");
  1545. /* for seperator */
  1546. ADD_APPLICATION_STRING2(STR_ID_PHNSET_SET_DATE_SEP, "Seperator", "Date seperator.");
  1547. ADD_APPLICATION_STRING2(STR_DT_SEP_DOT, ".", "Date Format 23/01/03.");
  1548. ADD_APPLICATION_STRING2(STR_DT_SEP_COLON, ":", "Date Format 23/01/03.");
  1549. ADD_APPLICATION_STRING2(STR_DT_SEP_SLOPE, "/", "Date Format 23/01/03.");
  1550. ADD_APPLICATION_STRING2(STR_DT_SEP_LINE, "-", "Date Format 23/01/03.");
  1551.     ADD_APPLICATION_STRING2(STR_24, "24", "Time Format 24.");
  1552.     ADD_APPLICATION_STRING2(STR_12, "12", "Time Format 12.");
  1553. #if defined(__MMI_APHORISM__)
  1554. /* under construction !*/
  1555. /* under construction !*/
  1556. #endif /* defined(__MMI_APHORISM__) */ 
  1557. #ifdef __MMI_TVOUT__
  1558.     ADD_APPLICATION_STRING2(STR_ID_SETTING_TVOUT, "TV Out", "STR_ID_SETTING_TVOUT");
  1559.     ADD_APPLICATION_STRING2(STR_ID_SETTING_TVOUT_FORMAT, "Visual Format", "STR_ID_SETTING_TVOUT_FORMAT");
  1560.     ADD_APPLICATION_STRING2(STR_ID_SETTING_TVOUT_FORMAT_PAL, "PAL", "STR_ID_SETTING_TVOUT_FORMAT_PAL");
  1561.     ADD_APPLICATION_STRING2(STR_ID_SETTING_TVOUT_FORMAT_NTSC, "NTSC", "STR_ID_SETTING_TVOUT_FORMAT_NTSC");
  1562.     ADD_APPLICATION_STRING2(STR_ID_SETTING_TVOUT_AUD_PATH, "Audio Output", "STR_ID_SETTING_TVOUT_AUD_PATH");
  1563.     ADD_APPLICATION_STRING2(STR_ID_SETTING_TVOUT_AUD_PATH_BOTH, "TV and Phone", "STR_ID_SETTING_TVOUT_AUD_PATH_BOTH");
  1564.     ADD_APPLICATION_STRING2(STR_ID_SETTING_TVOUT_AUD_PATH_TV, "TV Only", "STR_ID_SETTING_TVOUT_AUD_PATH_TV");
  1565.     ADD_APPLICATION_STRING2(STR_ID_SETTING_TVOUT_ADJUST, "Adjust", "STR_ID_SETTING_TVOUT_ADJUST");
  1566.     ADD_APPLICATION_STRING2(STR_ID_SETTING_TVOUT_ADJUST_Y_GAMMA, "Gamma Y", "STR_ID_SETTING_TVOUT_MM_STYLE_PHONE");
  1567.     ADD_APPLICATION_STRING2(STR_ID_SETTING_TVOUT_ADJUST_U, "U", "STR_ID_SETTING_TVOUT_MM_STYLE_FULLSCR");
  1568.     ADD_APPLICATION_STRING2(STR_ID_SETTING_TVOUT_ADJUST_V, "V", "STR_ID_SETTING_TVOUT_MM_STYLE_FULLSCR");
  1569.     ADD_APPLICATION_STRING2(STR_ID_SETTING_TVOUT_PLUG_IN, "TV-Out plugged in", "STR_ID_SETTING_TVOUT_PLUG_IN");
  1570.     ADD_APPLICATION_STRING2(STR_ID_SETTING_TVOUT_PLUG_OUT, "TV-Out plugged out", "STR_ID_SETTING_TVOUT_PLUG_OUT");
  1571.     ADD_APPLICATION_STRING2(STR_ID_SETTING_TVOUT_NOT_READY, "TV-Out Not Ready", "STR_ID_SETTING_TVOUT_NOT_READY");
  1572. #endif /* __MMI_TVOUT__ */ 
  1573.     ADD_APPLICATION_STRING2(STR_MENU9146_ON, "Greeting Text:", "On Option.");
  1574.     ADD_APPLICATION_STRING2(STR_MENU9146_OFF, "Status", "Off Option.");
  1575.     ADD_APPLICATION_STRING2(STR_FDL_NOT_READY, "FDN not ready.", "FDN not Ready Try Again Message.");
  1576.     ADD_APPLICATION_STRING2(STR_BDL_NOT_READY, "Please try later.", "Please try later.");
  1577.     ADD_APPLICATION_STRING2(STR_MENU_RESTORE, "Restore Factory Settings", "Restore Factory Setting Option.");
  1578.     ADD_APPLICATION_STRING2(STR_ID_RESTORE_TITLE, "Restore Settings", "Restore Factory Setting Title");
  1579.     
  1580.     ADD_APPLICATION_STRING2(
  1581.         STR_SETTING_CODE_VERIFIED,
  1582.         "Code Accepted!",
  1583.         "String associated with Code Verified Screen.");
  1584.     ADD_APPLICATION_IMAGE2(
  1585.         IMG_TIME_AND_DATE_BLANK,
  1586.         CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
  1587.         "Image for Time And Date Selection.");
  1588.     ADD_APPLICATION_IMAGE2(
  1589.         IMG_MENU9142_SETHOMECITY,
  1590.         CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
  1591.         "Image Set Home City Caption.");
  1592.     ADD_APPLICATION_IMAGE2(
  1593.         IMG_DATE_TIME_SET_FORMAT_CAPTION,
  1594.         CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
  1595.         "Image Date and Time Format String caption.");
  1596.     ADD_APPLICATION_IMAGE2(
  1597.         IMG_SCR_SETTING_CAPTION,
  1598.         CUST_IMG_PATH "\\MainLCD\\TitleBar\\TB_ST.PNG",
  1599.         "Title Image For Settings Main Screen.");
  1600.     ADD_APPLICATION_IMAGE2(
  1601.         IMG_SETTING_CALL_SETUP,
  1602.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SB_SCALL.PBM",
  1603.         "Setting Submenu image for Call Setup.");
  1604. #ifdef __SUB_MENU_MATRIX_DISPLAY__
  1605.     ADD_APPLICATION_IMAGE2(
  1606.         IMG_SETTING_NETWORK,
  1607.         CUST_IMG_PATH"\\MainLCD\\MainMenu\\MATRIX\\setting\\DM_NETWORK.png",
  1608.         "Setting Submenu image for Network Setup.");
  1609.     ADD_APPLICATION_IMAGE2(
  1610.         IMG_SETTING_NETWORK_EX,
  1611.         CUST_IMG_PATH"\\MainLCD\\MainMenu\\MATRIX\\setting\\DM_NETWORK_ani.png",
  1612.         "Setting Submenu image for Network Setup.");
  1613. #else
  1614.     ADD_APPLICATION_IMAGE2(
  1615.         IMG_SETTING_NETWORK,
  1616.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SB_SNET.PBM",
  1617.         "Setting Submenu image for Network Setup.");
  1618. #endif
  1619. #ifdef __SUB_MENU_MATRIX_DISPLAY__
  1620.     ADD_APPLICATION_IMAGE2(
  1621.         IMG_SETTING_PHONE,
  1622.         CUST_IMG_PATH"\\MainLCD\\MainMenu\\MATRIX\\setting\\INITIAL.png",
  1623.         "Setting Submenu image for Phone Setup.");
  1624.     ADD_APPLICATION_IMAGE2(
  1625.         IMG_SETTING_PHONE_EX,
  1626.         CUST_IMG_PATH"\\MainLCD\\MainMenu\\MATRIX\\setting\\INITIAL_ani.png",
  1627.         "Setting Submenu image for Phone Setup.");
  1628. #else
  1629.     ADD_APPLICATION_IMAGE2(
  1630.         IMG_SETTING_PHONE,
  1631.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SB_SPH.PBM",
  1632.         "Setting Submenu image for Phone Setup.");
  1633. #endif
  1634. #ifdef __SUB_MENU_MATRIX_DISPLAY__
  1635.     ADD_APPLICATION_IMAGE2(
  1636.         IMG_SETTING_STORE,
  1637.         CUST_IMG_PATH"\\MainLCD\\MainMenu\\MATRIX\\setting\\RESTORE.png",
  1638.         "Setting Submenu image for Restore Setting.");
  1639.     ADD_APPLICATION_IMAGE2(
  1640.         IMG_SETTING_STORE_EX,
  1641.         CUST_IMG_PATH"\\MainLCD\\MainMenu\\MATRIX\\setting\\RESTORE_ani.png",
  1642.         "Setting Submenu image for Restore Setting.");
  1643. #else
  1644.     ADD_APPLICATION_IMAGE2(
  1645.         IMG_SETTING_STORE,
  1646.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SB_STORE.PBM",
  1647.         "Setting Submenu image for Restore Setting.");
  1648. #endif
  1649.     ADD_APPLICATION_IMAGE2(
  1650.         IMG_SETTING_SHORTCUT,
  1651.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Shortcut\\SB_SC.pbm",
  1652.         "Setting Submenu image for Time and Date.");
  1653. #if defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__)
  1654.     ADD_APPLICATION_IMAGE2(
  1655.         IMG_CALIBRATION_MENU_ICON,
  1656.         CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SB_PCA.pbm",
  1657.         "Setting Submenu image for Pen calibration.");
  1658. #endif /* defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__) */ 
  1659. #if !defined(__MMI_NO_CONTRAST_LEVEL__)
  1660. #ifndef __MMI_SUBLCD__
  1661.     ADD_APPLICATION_IMAGE2(
  1662.         IMG_CONTRAST_BACKGROUND,
  1663.         CUST_IMG_PATH "\\MainLCD\\UIElement\\ValueMap\\MAPBG.gif",
  1664.         "Background image for Contrast screen");
  1665. #endif /* __MMI_SUBLCD__ */ 
  1666. #endif /* !__MMI_NO_CONTRAST_LEVEL__ */
  1667.     ADD_APPLICATION_STRING2(STR_SETTING_RESTORE_CONFIRM, "ARE YOU SURE?", "Restore factory confirmation message.");
  1668.     ADD_APPLICATION_STRING2(STR_SETTING_NOTICE_SUCCESS_REBOOT_TEXT, 
  1669.         "Done.nPoweroff in 3 sec", "Restore String for Modis");
  1670.     
  1671.     ADD_APPLICATION_STRING2(STR_SETTING_DELETING, "Deleting", "setting deleting string");
  1672.     
  1673.     ADD_APPLICATION_STRING2(STR_SETTING_DELETED, "Deleted", "setting deleted string");
  1674.     ADD_APPLICATION_STRING2(
  1675.         STR_SETTING_RESTORE_PROCESSING,
  1676.         "Restore Processing...",
  1677.         "Restore factory confirmation message.");
  1678.     ADD_APPLICATION_STRING2(STR_SETTING_WRONG, "Wrong Password!", "Wrong.");
  1679.     ADD_APPLICATION_STRING2(STR_SETTING_BLOCK, "Password Blocked!", "Password Blocked!");
  1680.     ADD_APPLICATION_STRING2(STR_RESTORE_PHONE, "Enter Password", "Phone code check password.");
  1681.     PopulateSettingMenuRes();
  1682.     PopulateNetworkSetupResData();
  1683.     populateManageCalls();
  1684.     PopulatePhoneSetupResData();
  1685.     populateSecuritySetup();
  1686.     PopulateLanguageStrings();
  1687. #ifdef __MMI_SOUND_EFFECT__
  1688.     PopulateSoundEffectResData();
  1689. #endif 
  1690. #ifdef __FLIGHT_MODE_SUPPORT__
  1691.     PopulateFlightModeResData();
  1692. #endif 
  1693. }
  1694. #ifndef __MMI_REMOVE_CUG__
  1695. /*****************************************************************************
  1696.  * FUNCTION
  1697.  *  PopulategrouplistMenu
  1698.  * DESCRIPTION
  1699.  *  Populate Menu for GroupList
  1700.  * PARAMETERS
  1701.  *  void
  1702.  * RETURNS
  1703.  *  void
  1704.  *****************************************************************************/
  1705. void PopulategrouplistMenu(void)
  1706. {
  1707.     /*----------------------------------------------------------------*/
  1708.     /* Local Variables                                                */
  1709.     /*----------------------------------------------------------------*/
  1710.     /*----------------------------------------------------------------*/
  1711.     /* Code Body                                                      */
  1712.     /*----------------------------------------------------------------*/
  1713.     ADD_APPLICATION_MENUITEM((MAIN_MENU_GROUPLIST_OPTIONS_MENUID, 0, 5,
  1714.                               MAIN_MENU_GROUPLIST_EDIT,
  1715.                               MAIN_MENU_GROUPLIST_ADD,
  1716.                               MAIN_MENU_GROUPLIST_ACTIVATE,
  1717.                               MAIN_MENU_GROUPLIST_DEACTIVATE,
  1718.                               MAIN_MENU_GROUPLIST_DELETE, 0, NONMOVEABLE, 1, MAIN_MENU_GROUPLIST_TEXT, NULL));
  1719.     ADD_APPLICATION_MENUITEM((MAIN_MENU_GROUPLIST_EDIT, MAIN_MENU_GROUPLIST_OPTIONS_MENUID, 0, 0,
  1720.                               NONMOVEABLE, 1, STR_GLOBAL_EDIT, NULL));
  1721.     ADD_APPLICATION_MENUITEM((MAIN_MENU_GROUPLIST_ADD, MAIN_MENU_GROUPLIST_OPTIONS_MENUID, 0, 0, NONMOVEABLE, 1,
  1722.                               STR_GLOBAL_ADD, NULL));
  1723.     ADD_APPLICATION_MENUITEM((MAIN_MENU_GROUPLIST_ACTIVATE, MAIN_MENU_GROUPLIST_OPTIONS_MENUID, 0, 0, NONMOVEABLE, 1,
  1724.                               STR_GLOBAL_ACTIVATE, NULL));
  1725.     ADD_APPLICATION_MENUITEM((MAIN_MENU_GROUPLIST_DEACTIVATE, MAIN_MENU_GROUPLIST_OPTIONS_MENUID, 0, 0, NONMOVEABLE, 1,
  1726.                               STR_GLOBAL_DEACTIVATE, NULL));
  1727.     ADD_APPLICATION_MENUITEM((MAIN_MENU_GROUPLIST_DELETE, MAIN_MENU_GROUPLIST_OPTIONS_MENUID, 0, 0, NONMOVEABLE, 1,
  1728.                               STR_GLOBAL_DELETE, NULL));
  1729.     ADD_APPLICATION_MENUITEM((MAIN_MENU_GROUPLIST_OPTIONS_MENUID_SUB, IDLE_SCREEN_MENU_ID, 4,
  1730.                               MAIN_MENU_GROUPLIST_EDIT,
  1731.                               MAIN_MENU_GROUPLIST_ACTIVATE,
  1732.                               MAIN_MENU_GROUPLIST_DEACTIVATE,
  1733.                               MAIN_MENU_GROUPLIST_DELETE, 0, NONMOVEABLE, 1, MAIN_MENU_GROUPLIST_TEXT, NULL));
  1734.     ADD_APPLICATION_MENUITEM((MENU_CUG_INPUT_METHOD_AND_DONE_OPTION_ID, IDLE_SCREEN_MENU_ID, 2,
  1735.                               MENU_CUG_DONE_OPTION_ID,
  1736.                               MENU_CUG_INPUT_METHOD_OPTION_ID, 0, NONMOVEABLE, 1, MAIN_MENU_GROUPLIST_TEXT, NULL));
  1737.     ADD_APPLICATION_MENUITEM((MENU_CUG_DONE_OPTION_ID, MENU_CUG_INPUT_METHOD_AND_DONE_OPTION_ID, 0, 0, NONMOVEABLE, 1,
  1738.                               STR_GLOBAL_DONE, NULL));
  1739.     ADD_APPLICATION_MENUITEM((MENU_CUG_INPUT_METHOD_OPTION_ID, MENU_CUG_INPUT_METHOD_AND_DONE_OPTION_ID, 0, 0,
  1740.                               NONMOVEABLE, 1, STR_GLOBAL_INPUT_METHOD, NULL));
  1741.     ADD_APPLICATION_STRING2(STR_GROUPLIST_INVALID_INDEX, "Invalid index", "Invalid Index");
  1742.     ADD_APPLICATION_STRING2(MAIN_MENU_GROUPLIST_TEXT, "Closed User Group Options", "Closed User Group Options");
  1743.     ADD_APPLICATION_STRING2(STR_GROUPLIST_CAPTION, "Group List", "GroupList");
  1744.     ADD_APPLICATION_STRING2(STR_GROUPLIST_EDIT_INDEX, "Edit Index", "Index");
  1745.     ADD_APPLICATION_STRING2(STR_GROUPLIST_ADD_INDEX, "Add Index", "Index");
  1746.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MAIN_MENU_GROUPLIST_ACTIVATE, HighlightCALLSETCUGActive);
  1747.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MAIN_MENU_GROUPLIST_DEACTIVATE, HighlightCALLSETCUGDeactive);
  1748.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MAIN_MENU_GROUPLIST_ADD, HighlightCALLSETCUGAdd);
  1749.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MAIN_MENU_GROUPLIST_DELETE, HighlightCALLSETCUGDelete);
  1750.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MAIN_MENU_GROUPLIST_EDIT, HighlightCALLSETCUGEdit);
  1751.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_CUG_DONE_OPTION_ID, HighlightEditOptionsDone);
  1752.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_CUG_INPUT_METHOD_OPTION_ID, HighlightEditOptionsInputMethod);
  1753. }
  1754. #endif /* __MMI_REMOVE_CUG__ */ 
  1755. #ifdef __IP_NUMBER__
  1756. /*****************************************************************************
  1757.  * FUNCTION
  1758.  *  PopulateIPNumber
  1759.  * DESCRIPTION
  1760.  *  
  1761.  * PARAMETERS
  1762.  *  void
  1763.  * RETURNS
  1764.  *  void
  1765.  *****************************************************************************/
  1766. void PopulateIPNumber(void)
  1767. {
  1768.     /*----------------------------------------------------------------*/
  1769.     /* Local Variables                                                */
  1770.     /*----------------------------------------------------------------*/
  1771.     /*----------------------------------------------------------------*/
  1772.     /* Code Body                                                      */
  1773.     /*----------------------------------------------------------------*/
  1774.     ADD_APPLICATION_MENUITEM((MENU_SETTING_IP_NUMBER,
  1775.                           #ifdef __MMI_UCM__
  1776.                               MENU_ID_UCM_CALL_SETTING_MORE,
  1777.                           #else /* __MMI_UCM__ */
  1778.                               MENU8237_SCR8093_MNGCALL_MENU_MAIN, 
  1779.                           #endif /* __MMI_UCM__ */
  1780.                               0,
  1781.                               SHOW, NONMOVEABLE, DISP_LIST, STR_SETTING_IP_NUMBER, NULL));
  1782.     ADD_APPLICATION_MENUITEM((MENU_SETTING_IP_NUM_OPN, 0,
  1783.                                                 #ifdef __MMI_DUAL_SIM_MASTER__
  1784.                                                     3,
  1785.                                                 #else   /* __MMI_DUAL_SIM_MASTER__ */
  1786.                                                     2,
  1787.                                                 #endif  /* __MMI_DUAL_SIM_MASTER__ */
  1788.                                                     MENU_IP_NUM_ACTIVATE,
  1789.                                                 #ifdef __MMI_DUAL_SIM_MASTER__
  1790.                                                     MENU_MTPNP_IP_NUM_ACTIVATE,
  1791.                                                 #endif  /* __MMI_DUAL_SIM_MASTER__ */
  1792.                                                     MENU_IP_NUM_EDIT, 
  1793.                                                     0, NONMOVEABLE, 1, STR_SETTING_IP_NUMBER, NULL));
  1794. #ifdef __MMI_DUAL_SIM_MASTER__
  1795.     ADD_APPLICATION_MENUITEM((MENU_IP_NUM_ACTIVATE, MENU_SETTING_IP_NUM_OPN, 0,
  1796.                                 0, NONMOVEABLE, 1, STR_SETTING_IP_NUM_ACT, NULL));
  1797. #else /* __MMI_DUAL_SIM_MASTER__ */
  1798.     ADD_APPLICATION_MENUITEM((MENU_IP_NUM_ACTIVATE, MENU_SETTING_IP_NUM_OPN, 0,
  1799.                                 0, NONMOVEABLE, 1, STR_GLOBAL_ACTIVATE, NULL));
  1800. #endif /* __MMI_DUAL_SIM_MASTER__ */  
  1801.     ADD_APPLICATION_MENUITEM((MENU_IP_NUM_EDIT, MENU_SETTING_IP_NUM_OPN, 0, 0, NONMOVEABLE, 1, STR_GLOBAL_EDIT, NULL));
  1802.     ADD_APPLICATION_STRING2(STR_SETTING_IP_NUMBER, "IP Number", "STR_SETTING_IP_NUMBER");
  1803.     ADD_APPLICATION_STRING2(STR_SETTING_IP_NUM_ACT, "Active SIM1", "STR_SETTING_IP_NUM_ACT");
  1804. }
  1805. #endif /* __IP_NUMBER__ */ 
  1806. #ifdef __MMI_CM_BLACK_LIST__
  1807. /*****************************************************************************
  1808.  * FUNCTION
  1809.  *  PopulateBlackList
  1810.  * DESCRIPTION
  1811.  *  
  1812.  * PARAMETERS
  1813.  *  void
  1814.  * RETURNS
  1815.  *  void
  1816.  *****************************************************************************/
  1817. void PopulateBlackList(void)
  1818. {
  1819.     /*----------------------------------------------------------------*/
  1820.     /* Local Variables                                                */
  1821.     /*----------------------------------------------------------------*/
  1822.     /*----------------------------------------------------------------*/
  1823.     /* Code Body                                                      */
  1824.     /*----------------------------------------------------------------*/
  1825.     ADD_APPLICATION_MENUITEM((MENU_SETTING_BLACK_LIST,
  1826.                           #ifdef __MMI_UCM__
  1827.                               MENU_ID_UCM_CALL_SETTING_MORE,                           
  1828.                           #else /* __MMI_UCM__ */
  1829.                               MENU8237_SCR8093_MNGCALL_MENU_MAIN, 
  1830.                           #endif /* __MMI_UCM__ */
  1831.                           #ifdef __MMI_UCM_AUTO_REJECT_NO_CALL_ID__
  1832.                               3,
  1833.                               MENU_SETTING_BLACK_LIST_UNKNOWN_NUMBER_MODE,
  1834.                           #else /* __MMI_UCM_AUTO_REJECT_NO_CALL_ID__ */
  1835.                               2,
  1836.                           #endif /* __MMI_UCM_AUTO_REJECT_NO_CALL_ID__ */
  1837.                               MENU_SETTING_BLACK_LIST_MODE,
  1838.                               MENU_SETTING_BLACK_LIST_NUM, SHOW, NONMOVEABLE, DISP_LIST, STR_SETTING_BLACK_LIST, 0));
  1839.     ADD_APPLICATION_MENUITEM((MENU_SETTING_BLACK_LIST_MODE, MENU_SETTING_BLACK_LIST, 0,
  1840.                               SHOW, NONMOVEABLE, DISP_LIST, STR_SETTING_BLACK_LIST_MODE, 0));
  1841.     ADD_APPLICATION_MENUITEM((MENU_SETTING_BLACK_LIST_NUM, MENU_SETTING_BLACK_LIST, 0,
  1842.                               SHOW, NONMOVEABLE, DISP_LIST, STR_SETTING_BLACK_LIST_NUM, 0));
  1843. #ifdef __MMI_UCM_AUTO_REJECT_NO_CALL_ID__
  1844.     ADD_APPLICATION_MENUITEM((MENU_SETTING_BLACK_LIST_UNKNOWN_NUMBER_MODE, MENU_SETTING_BLACK_LIST, 0,
  1845.                               SHOW, NONMOVEABLE, DISP_LIST, STR_SETTING_BLACK_LIST_UNKNOWN_NUMBER_MODE, 0));
  1846.     ADD_APPLICATION_STRING2(STR_SETTING_BLACK_LIST_UNKNOWN_NUMBER_MODE, "Reject unknown numbers", "Reject unknown numbers");
  1847. #endif /* __MMI_UCM_AUTO_REJECT_NO_CALL_ID__ */
  1848.     ADD_APPLICATION_STRING2(STR_SETTING_BLACK_LIST, "Black List", "STR_SETTING_BLACK_LIST");
  1849.     ADD_APPLICATION_STRING2(STR_SETTING_BLACK_LIST_MODE, "Mode", "STR_SETTING_BLACK_LIST_MODE");
  1850.     ADD_APPLICATION_STRING2(STR_SETTING_BLACK_LIST_NUM, "Black List Number", "STR_SETTING_BLACK_LIST_NUM");
  1851.     ADD_APPLICATION_STRING2(STR_SETTING_BLACK_ERROR_FULL, "Black list is full", "STR_SETTING_BLACK_ERROR_FULL");
  1852.     ADD_APPLICATION_STRING2(STR_SETTING_BLACK_ERROR_TOO_LONG, "Number is too long", "STR_SETTING_BLACK_ERROR_FULL");
  1853. }
  1854. #endif /* __MMI_CM_BLACK_LIST__ */
  1855.  #ifdef __MMI_CM_WHITE_LIST__
  1856. /*****************************************************************************
  1857.  * FUNCTION
  1858.  *  PopulateBlackList
  1859.  * DESCRIPTION
  1860.  *  
  1861.  * PARAMETERS
  1862.  *  void
  1863.  * RETURNS
  1864.  *  void
  1865.  *****************************************************************************/
  1866. void PopulateWhiteList(void)
  1867. {
  1868.     /*----------------------------------------------------------------*/
  1869.     /* Local Variables                                                */
  1870.     /*----------------------------------------------------------------*/
  1871.     /*----------------------------------------------------------------*/
  1872.     /* Code Body                                                      */
  1873.     /*----------------------------------------------------------------*/
  1874.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WHITE_LIST,
  1875.                               MENU_ID_UCM_CALL_SETTING_MORE,
  1876.                               2,
  1877.                               MENU_SETTING_WHITE_LIST_MODE,
  1878.                               MENU_SETTING_WHITE_LIST_NUM, SHOW, NONMOVEABLE, DISP_LIST, STR_SETTING_WHITE_LIST, 0));
  1879.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WHITE_LIST_MODE, MENU_SETTING_WHITE_LIST, 0,
  1880.                               SHOW, NONMOVEABLE, DISP_LIST, STR_SETTING_WHITE_LIST_MODE, 0));
  1881.     ADD_APPLICATION_MENUITEM((MENU_SETTING_WHITE_LIST_NUM, MENU_SETTING_WHITE_LIST, 0,
  1882.                               SHOW, NONMOVEABLE, DISP_LIST, STR_SETTING_WHITE_LIST_NUM, 0));
  1883.     ADD_APPLICATION_STRING2(STR_SETTING_WHITE_LIST, "White List", "STR_SETTING_WHITE_LIST");
  1884.     ADD_APPLICATION_STRING2(STR_SETTING_WHITE_LIST_MODE, "Mode", "STR_SETTING_WHITE_LIST_MODE");
  1885.     ADD_APPLICATION_STRING2(STR_SETTING_WHITE_LIST_NUM, "White List Number", "STR_SETTING_WHITE_LIST_NUM");
  1886. }
  1887. #endif /* __MMI_CM_WHITE_LIST__ */ 
  1888. #ifdef __MMI_UCM_REJECT_BY_SMS__
  1889. /*****************************************************************************
  1890.  * FUNCTION
  1891.  *  mmi_callsetup_populate_rej_by_sms
  1892.  * DESCRIPTION
  1893.  *  
  1894.  * PARAMETERS
  1895.  *  void
  1896.  * RETURNS
  1897.  *  void
  1898.  *****************************************************************************/
  1899. void mmi_callsetup_populate_rej_by_sms(void)
  1900. {
  1901.     /*----------------------------------------------------------------*/
  1902.     /* Local Variables                                                */
  1903.     /*----------------------------------------------------------------*/
  1904.     /*----------------------------------------------------------------*/
  1905.     /* Code Body                                                      */
  1906.     /*----------------------------------------------------------------*/
  1907.     ADD_APPLICATION_MENUITEM((MENU_SETTING_REJ_BY_SMS, MENU_ID_UCM_CALL_SETTING_MORE, 0, SHOW, NONMOVEABLE, DISP_LIST, STR_SETTING_REJ_BY_SMS, NULL));
  1908.     ADD_APPLICATION_STRING2(STR_SETTING_REJ_BY_SMS, "Reject by SMS", "Reject Incoming Call By SMS.");
  1909.     ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_REJ_BY_SMS, mmi_highlight_rej_by_sms);
  1910.     ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_REJ_BY_SMS, mmi_hint_rej_by_sms);
  1911. }
  1912. #endif /* __MMI_UCM_REJECT_BY_SMS__ */