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

MTK

开发平台:

C/C++

  1.                 }
  2.                 else
  3.                 {
  4.                     pfnUnicodeStrcpy((PS8) hintData[(index)], (PS8) (ExtMelodyStruct->info[data].filename));
  5.                 }
  6.             #if (!defined(__MMI_SHOW_FILE_EXT__))
  7.                 PmgRemoveFileExt((S8*) hintData[(index)]);
  8.             #elif (!defined(__MMI_SHOW_DAF_FILE_EXT__))
  9.                 PmgRemoveFileDAFExt((S8*) hintData[(index)]);
  10.             #endif 
  11.                 selected = TRUE;
  12.                 break;
  13.             }
  14.         }
  15.     #endif /* defined(__MMI_PROFILE_EXTMELODY_SUPPORT__) */ 
  16.     #ifdef __MMI_DOWNLOADABLE_THEMES_SUPPORT__
  17.         if (!selected)
  18.         {
  19.             DYNAUDIOINFO *download_theme_tones;
  20.             if (GetThemeV2TonesInfo(&download_theme_tones) != 0 && mmi_tm_get_current_theme_ringtone())
  21.             {
  22.                 if (ToneID == (U16) download_theme_tones[0].AudioId)
  23.                 {
  24.                     pfnUnicodeStrcpy((PS8) hintData[(index)], GetString((U16) STR_PROFILES_CURR_THEME));
  25.                     selected = TRUE;
  26.                 }
  27.             }
  28.         }
  29.     #endif /* __MMI_DOWNLOADABLE_THEMES_SUPPORT__ */ 
  30.         ASSERT(selected);
  31.     }
  32. }
  33. /*****************************************************************************
  34.  * FUNCTION
  35.  *  HintHandlerPowerOffTone
  36.  * DESCRIPTION
  37.  *  Hint handlers for Power Off Tone
  38.  * PARAMETERS
  39.  *  index       [IN]        
  40.  * RETURNS
  41.  *  void
  42.  *****************************************************************************/
  43. void HintHandlerPowerOffTone(U16 index)
  44. {
  45.     /*----------------------------------------------------------------*/
  46.     /* Local Variables                                                */
  47.     /*----------------------------------------------------------------*/
  48.     U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
  49.     U8 AsciinStrItemList[4];    /* Stores the strings id of submenus returned */
  50.     U8 data = 0;
  51.     U16 ToneID;
  52. #ifdef __MMI_PROFILE_EXTMELODY_SUPPORT__
  53.     DYNEXTMELODYINFO *ExtMelodyStruct;
  54. #endif 
  55.     /*----------------------------------------------------------------*/
  56.     /* Code Body                                                      */
  57.     /*----------------------------------------------------------------*/
  58.     ToneID = gprofiles[gprofileId].toneSetup.powerOffTone;
  59.     memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  60.     if (ToneID >= gstartGeneralToneId && ToneID < gstartGeneralToneId + gtotalGeneralToneId)
  61.     {
  62.         S32 len = 0;
  63.         data = ((gprofiles[gprofileId].toneSetup.powerOffTone) - (gstartGeneralToneId));
  64.         memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  65.         sprintf((PS8) AsciinStrItemList, "%d", data + 1);
  66.         AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
  67.         len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
  68.         len = MAX_SUBMENU_CHARACTERS - len;
  69.         pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
  70.         pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
  71.     }
  72.     else if(ToneID == MESSAGE_SILENT)
  73.     {
  74.         pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
  75.     }
  76.     else
  77. {
  78.         BOOL selected = FALSE;
  79.     #if defined(__MMI_PROFILE_EXTMELODY_SUPPORT__)
  80.         POnOffPmgGetExtMelodyInfo(&ExtMelodyStruct);
  81.         for (data = 0; data < MAXIMUM_EXT_MELODY_NUM; data++)
  82.         {
  83.         
  84.             if (POnOffPmgIsEmptySlot(data) == MMI_FALSE && ToneID == ExtMelodyStruct->info[data].id)
  85.             {
  86.                 if (IS_EXTMELODY_SHORTNAME(ExtMelodyStruct->info[data].filepath))
  87.                 {
  88.                     mmi_chset_mixed_text_to_ucs2_str(
  89.                         hintData[(index)],
  90.                         (FMGR_MAX_FILE_LEN + 1) * ENCODING_LENGTH,
  91.                         (U8*) ExtMelodyStruct->info[data].filename,
  92.                         g_chset_text_encoding);
  93.                 }
  94.                 else
  95.                 {
  96.                     pfnUnicodeStrcpy((PS8) hintData[(index)], (PS8) (ExtMelodyStruct->info[data].filename));
  97.                 }
  98.             #if (!defined(__MMI_SHOW_FILE_EXT__))
  99.                 PmgRemoveFileExt((S8*) hintData[(index)]);
  100.             #elif (!defined(__MMI_SHOW_DAF_FILE_EXT__))
  101.                 PmgRemoveFileDAFExt((S8*) hintData[(index)]);
  102.             #endif 
  103.                 selected = TRUE;
  104.                 break;
  105.             }
  106.         }
  107.     #endif /* defined(__MMI_PROFILE_EXTMELODY_SUPPORT__) */ 
  108.     #ifdef __MMI_DOWNLOADABLE_THEMES_SUPPORT__
  109.         if (!selected)
  110.         {
  111.             DYNAUDIOINFO *download_theme_tones;
  112.             if (GetThemeV2TonesInfo(&download_theme_tones) != 0 && mmi_tm_get_current_theme_ringtone())
  113.             {
  114.                 if (ToneID == (U16) download_theme_tones[0].AudioId)
  115.                 {
  116.                     pfnUnicodeStrcpy((PS8) hintData[(index)], GetString((U16) STR_PROFILES_CURR_THEME));
  117.                     selected = TRUE;
  118.                 }
  119.             }
  120.         }
  121.     #endif /* __MMI_DOWNLOADABLE_THEMES_SUPPORT__ */ 
  122.         ASSERT(selected);
  123.     }
  124. }
  125. #else
  126. //KP Jerry add for changing the style of message tone list on 2007-4-10 end
  127. /*****************************************************************************
  128.  * FUNCTION
  129.  *  HintHandlerPowerOnTone
  130.  * DESCRIPTION
  131.  *  Hint handlers for Power On Tone
  132.  * PARAMETERS
  133.  *  index       [IN]        
  134.  * RETURNS
  135.  *  void
  136.  *****************************************************************************/
  137. void HintHandlerPowerOnTone(U16 index)
  138. {
  139.     /*----------------------------------------------------------------*/
  140.     /* Local Variables                                                */
  141.     /*----------------------------------------------------------------*/
  142.     U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
  143.     U8 AsciinStrItemList[4];    /* Stores the strings id of submenus returned */
  144.     U8 data = 0;
  145.     /*----------------------------------------------------------------*/
  146.     /* Code Body                                                      */
  147.     /*----------------------------------------------------------------*/
  148.     memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  149.     if ((gprofiles[gprofileId].toneSetup.powerOnTone) != POWERON_SILENT)
  150.     {
  151.         S32 len = 0;
  152.         data = ((gprofiles[gprofileId].toneSetup.powerOnTone) - (gstartGeneralToneId));
  153.         memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  154.         sprintf((PS8) AsciinStrItemList, "%d", data + 1);
  155.         AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
  156.         len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
  157.         len = MAX_SUBMENU_CHARACTERS - len;
  158.         pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
  159.         pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
  160.     }
  161.     else
  162.     {
  163.         pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
  164.     }
  165. }
  166. /*****************************************************************************
  167.  * FUNCTION
  168.  *  HintHandlerPowerOffTone
  169.  * DESCRIPTION
  170.  *  Hint handlers for Power Off Tone
  171.  * PARAMETERS
  172.  *  index       [IN]        
  173.  * RETURNS
  174.  *  void
  175.  *****************************************************************************/
  176. void HintHandlerPowerOffTone(U16 index)
  177. {
  178.     /*----------------------------------------------------------------*/
  179.     /* Local Variables                                                */
  180.     /*----------------------------------------------------------------*/
  181.     U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
  182.     U8 AsciinStrItemList[4];    /* Stores the strings id of submenus returned */
  183.     U8 data = 0;
  184.     /*----------------------------------------------------------------*/
  185.     /* Code Body                                                      */
  186.     /*----------------------------------------------------------------*/
  187.     memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  188.     if ((gprofiles[gprofileId].toneSetup.powerOffTone) != POWEROFF_SILENT)
  189.     {
  190.         S32 len = 0;
  191.         data = ((gprofiles[gprofileId].toneSetup.powerOffTone) - (gstartGeneralToneId));
  192.         memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  193.         sprintf((PS8) AsciinStrItemList, "%d", data + 1);
  194.         AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
  195.         len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
  196.         len = MAX_SUBMENU_CHARACTERS - len;
  197.         pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
  198.         pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
  199.     }
  200.     else
  201.     {
  202.         pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
  203.     }
  204. }
  205. #endif     //KP Jerry add for changing the style of message tone list on 2007-4-10
  206. /* MTK brian added to wrap cover open/close tone setup, 2003/10/18 */
  207. #ifdef __MMI_CLAMSHELL__
  208. //KP Jerry add for changing the style of message tone list on 2007-4-10 start
  209. #ifdef __MMI_TONE_LIST_STYLE_CHANGED__
  210. /*****************************************************************************
  211.  * FUNCTION
  212.  *  HintHandlerCoverOpenTone
  213.  * DESCRIPTION
  214.  *  Hint handlers for Power On Tone
  215.  * PARAMETERS
  216.  *  index       [IN]        
  217.  * RETURNS
  218.  *  void
  219.  *****************************************************************************/
  220. void HintHandlerCoverOpenTone(U16 index)
  221. {
  222.     /*----------------------------------------------------------------*/
  223.     /* Local Variables                                                */
  224.     /*----------------------------------------------------------------*/
  225.     U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
  226.     U8 AsciinStrItemList[4];    /* Stores the strings id of submenus returned */
  227.     U8 data = 0;
  228.     U16 ToneID;
  229. #ifdef __MMI_PROFILE_EXTMELODY_SUPPORT__
  230.     DYNEXTMELODYINFO *ExtMelodyStruct;
  231. #endif 
  232.     /*----------------------------------------------------------------*/
  233.     /* Code Body                                                      */
  234.     /*----------------------------------------------------------------*/
  235.     ToneID = gprofiles[gprofileId].toneSetup.coverOpenTone;
  236.     memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  237.     if (ToneID >= gstartGeneralToneId && ToneID < gstartGeneralToneId + gtotalGeneralToneId)
  238.     {
  239.         S32 len = 0;
  240.         data = ((gprofiles[gprofileId].toneSetup.coverOpenTone) - (gstartGeneralToneId));
  241.         memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  242.         sprintf((PS8) AsciinStrItemList, "%d", data + 1);
  243.         AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
  244.         len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
  245.         len = MAX_SUBMENU_CHARACTERS - len;
  246.         pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
  247.         pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
  248.     }
  249.     else if(ToneID == MESSAGE_SILENT)
  250.     {
  251.         pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
  252.     }
  253.     else
  254. {
  255.         BOOL selected = FALSE;
  256.     #if defined(__MMI_PROFILE_EXTMELODY_SUPPORT__)
  257.         POnOffPmgGetExtMelodyInfo(&ExtMelodyStruct);
  258.         for (data = 0; data < MAXIMUM_EXT_MELODY_NUM; data++)
  259.         {
  260.         
  261.             if (POnOffPmgIsEmptySlot(data) == MMI_FALSE && ToneID == ExtMelodyStruct->info[data].id)
  262.             {
  263.                 if (IS_EXTMELODY_SHORTNAME(ExtMelodyStruct->info[data].filepath))
  264.                 {
  265.                     mmi_chset_mixed_text_to_ucs2_str(
  266.                         hintData[(index)],
  267.                         (FMGR_MAX_FILE_LEN + 1) * ENCODING_LENGTH,
  268.                         (U8*) ExtMelodyStruct->info[data].filename,
  269.                         g_chset_text_encoding);
  270.                 }
  271.                 else
  272.                 {
  273.                     pfnUnicodeStrcpy((PS8) hintData[(index)], (PS8) (ExtMelodyStruct->info[data].filename));
  274.                 }
  275.             #if (!defined(__MMI_SHOW_FILE_EXT__))
  276.                 PmgRemoveFileExt((S8*) hintData[(index)]);
  277.             #elif (!defined(__MMI_SHOW_DAF_FILE_EXT__))
  278.                 PmgRemoveFileDAFExt((S8*) hintData[(index)]);
  279.             #endif 
  280.                 selected = TRUE;
  281.                 break;
  282.             }
  283.         }
  284.     #endif /* defined(__MMI_PROFILE_EXTMELODY_SUPPORT__) */ 
  285.     #ifdef __MMI_DOWNLOADABLE_THEMES_SUPPORT__
  286.         if (!selected)
  287.         {
  288.             DYNAUDIOINFO *download_theme_tones;
  289.             if (GetThemeV2TonesInfo(&download_theme_tones) != 0 && mmi_tm_get_current_theme_ringtone())
  290.             {
  291.                 if (ToneID == (U16) download_theme_tones[0].AudioId)
  292.                 {
  293.                     pfnUnicodeStrcpy((PS8) hintData[(index)], GetString((U16) STR_PROFILES_CURR_THEME));
  294.                     selected = TRUE;
  295.                 }
  296.             }
  297.         }
  298.     #endif /* __MMI_DOWNLOADABLE_THEMES_SUPPORT__ */ 
  299.         ASSERT(selected);
  300.     }
  301. }
  302. /*****************************************************************************
  303.  * FUNCTION
  304.  *  HintHandlerCoverCloseTone
  305.  * DESCRIPTION
  306.  *  Hint handlers for Power Off Tone
  307.  * PARAMETERS
  308.  *  index       [IN]        
  309.  * RETURNS
  310.  *  void
  311.  *****************************************************************************/
  312. void HintHandlerCoverCloseTone(U16 index)
  313. {
  314.     /*----------------------------------------------------------------*/
  315.     /* Local Variables                                                */
  316.     /*----------------------------------------------------------------*/
  317.     U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
  318.     U8 AsciinStrItemList[4];    /* Stores the strings id of submenus returned */
  319.     U8 data = 0;
  320.     U16 ToneID;
  321. #ifdef __MMI_PROFILE_EXTMELODY_SUPPORT__
  322.     DYNEXTMELODYINFO *ExtMelodyStruct;
  323. #endif 
  324.     /*----------------------------------------------------------------*/
  325.     /* Code Body                                                      */
  326.     /*----------------------------------------------------------------*/
  327.     ToneID = gprofiles[gprofileId].toneSetup.coverCloseTone;
  328.     memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  329.     if (ToneID >= gstartGeneralToneId && ToneID < gstartGeneralToneId + gtotalGeneralToneId)
  330.     {
  331.         S32 len = 0;
  332.         data = ((gprofiles[gprofileId].toneSetup.coverCloseTone) - (gstartGeneralToneId));
  333.         memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  334.         sprintf((PS8) AsciinStrItemList, "%d", data + 1);
  335.         AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
  336.         len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
  337.         len = MAX_SUBMENU_CHARACTERS - len;
  338.         pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
  339.         pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
  340.     }
  341.     else if(ToneID == MESSAGE_SILENT)
  342.     {
  343.         pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
  344.     }
  345.     else
  346. {
  347.         BOOL selected = FALSE;
  348.     #if defined(__MMI_PROFILE_EXTMELODY_SUPPORT__)
  349.         POnOffPmgGetExtMelodyInfo(&ExtMelodyStruct);
  350.         for (data = 0; data < MAXIMUM_EXT_MELODY_NUM; data++)
  351.         {
  352.         
  353.             if (POnOffPmgIsEmptySlot(data) == MMI_FALSE && ToneID == ExtMelodyStruct->info[data].id)
  354.             {
  355.                 if (IS_EXTMELODY_SHORTNAME(ExtMelodyStruct->info[data].filepath))
  356.                 {
  357.                     mmi_chset_mixed_text_to_ucs2_str(
  358.                         hintData[(index)],
  359.                         (FMGR_MAX_FILE_LEN + 1) * ENCODING_LENGTH,
  360.                         (U8*) ExtMelodyStruct->info[data].filename,
  361.                         g_chset_text_encoding);
  362.                 }
  363.                 else
  364.                 {
  365.                     pfnUnicodeStrcpy((PS8) hintData[(index)], (PS8) (ExtMelodyStruct->info[data].filename));
  366.                 }
  367.             #if (!defined(__MMI_SHOW_FILE_EXT__))
  368.                 PmgRemoveFileExt((S8*) hintData[(index)]);
  369.             #elif (!defined(__MMI_SHOW_DAF_FILE_EXT__))
  370.                 PmgRemoveFileDAFExt((S8*) hintData[(index)]);
  371.             #endif 
  372.                 selected = TRUE;
  373.                 break;
  374.             }
  375.         }
  376.     #endif /* defined(__MMI_PROFILE_EXTMELODY_SUPPORT__) */ 
  377.     #ifdef __MMI_DOWNLOADABLE_THEMES_SUPPORT__
  378.         if (!selected)
  379.         {
  380.             DYNAUDIOINFO *download_theme_tones;
  381.             if (GetThemeV2TonesInfo(&download_theme_tones) != 0 && mmi_tm_get_current_theme_ringtone())
  382.             {
  383.                 if (ToneID == (U16) download_theme_tones[0].AudioId)
  384.                 {
  385.                     pfnUnicodeStrcpy((PS8) hintData[(index)], GetString((U16) STR_PROFILES_CURR_THEME));
  386.                     selected = TRUE;
  387.                 }
  388.             }
  389.         }
  390.     #endif /* __MMI_DOWNLOADABLE_THEMES_SUPPORT__ */ 
  391.         ASSERT(selected);
  392.     }
  393. }
  394. #else
  395. //KP Jerry add for changing the style of message tone list on 2007-4-10 end
  396. /*****************************************************************************
  397.  * FUNCTION
  398.  *  HintHandlerCoverOpenTone
  399.  * DESCRIPTION
  400.  *  Hint handlers for Cover Open
  401.  * PARAMETERS
  402.  *  index       [IN]        
  403.  * RETURNS
  404.  *  void
  405.  *****************************************************************************/
  406. void HintHandlerCoverOpenTone(U16 index)
  407. {
  408.     /*----------------------------------------------------------------*/
  409.     /* Local Variables                                                */
  410.     /*----------------------------------------------------------------*/
  411.     U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
  412.     U8 AsciinStrItemList[4];    /* Stores the strings id of submenus returned */
  413.     U8 data = 0;
  414.     /*----------------------------------------------------------------*/
  415.     /* Code Body                                                      */
  416.     /*----------------------------------------------------------------*/
  417.     memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  418.     if ((gprofiles[gprofileId].toneSetup.coverOpenTone) != COVER_OPEN_SILENT)
  419.     {
  420.         S32 len = 0;
  421.         data = ((gprofiles[gprofileId].toneSetup.coverOpenTone) - (gstartGeneralToneId));
  422.         memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  423.         sprintf((PS8) AsciinStrItemList, "%d", data + 1);
  424.         AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
  425.         len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
  426.         len = MAX_SUBMENU_CHARACTERS - len;
  427.         pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
  428.         pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
  429.     }
  430.     else
  431.     {
  432.         pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
  433.     }
  434. }
  435. /*****************************************************************************
  436.  * FUNCTION
  437.  *  HintHandlerCoverCloseTone
  438.  * DESCRIPTION
  439.  *  Hint handlers for Cover Close
  440.  * PARAMETERS
  441.  *  index       [IN]        
  442.  * RETURNS
  443.  *  void
  444.  *****************************************************************************/
  445. void HintHandlerCoverCloseTone(U16 index)
  446. {
  447.     /*----------------------------------------------------------------*/
  448.     /* Local Variables                                                */
  449.     /*----------------------------------------------------------------*/
  450.     U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
  451.     U8 AsciinStrItemList[4];    /* Stores the strings id of submenus returned */
  452.     U8 data = 0;
  453.     /*----------------------------------------------------------------*/
  454.     /* Code Body                                                      */
  455.     /*----------------------------------------------------------------*/
  456.     memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  457.     if ((gprofiles[gprofileId].toneSetup.coverCloseTone) != COVER_CLOSE_SILENT)
  458.     {
  459.         S32 len = 0;
  460.         data = ((gprofiles[gprofileId].toneSetup.coverCloseTone) - (gstartGeneralToneId));
  461.         memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  462.         sprintf((PS8) AsciinStrItemList, "%d", data + 1);
  463.         AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
  464.         len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
  465.         len = MAX_SUBMENU_CHARACTERS - len;
  466.         pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
  467.         pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
  468.     }
  469.     else
  470.     {
  471.         pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
  472.     }
  473. }
  474. #endif     //KP Jerry add for changing the style of message tone list on 2007-4-10
  475. #endif /* __MMI_CLAMSHELL__ */ 
  476. /* MTK end */
  477. //KP Jerry add for changing the style of message tone list on 2007-4-10 start
  478. #ifdef __MMI_TONE_LIST_STYLE_CHANGED__
  479. /*****************************************************************************
  480.  * FUNCTION
  481.  *  HintHandlerMessgaeTone
  482.  * DESCRIPTION
  483.  *  Hint handlers for Message Tone
  484.  * PARAMETERS
  485.  *  index       [IN]        
  486.  * RETURNS
  487.  *  void
  488.  *****************************************************************************/
  489. void HintHandlerMessgaeTone(U16 index)
  490. {
  491.     /*----------------------------------------------------------------*/
  492.     /* Local Variables                                                */
  493.     /*----------------------------------------------------------------*/
  494.     U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
  495.     U8 AsciinStrItemList[4];    /* Stores the strings id of submenus returned */
  496.     U8 data = 0;
  497.     U16 ToneID;
  498. #ifdef __MMI_PROFILE_EXTMELODY_SUPPORT__
  499.     DYNEXTMELODYINFO *ExtMelodyStruct;
  500. #endif 
  501.     /*----------------------------------------------------------------*/
  502.     /* Code Body                                                      */
  503.     /*----------------------------------------------------------------*/
  504.     ToneID = gprofiles[gprofileId].toneSetup.messageTone;
  505.     memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  506.  
  507. if (ToneID >= gstartMiscToneId && ToneID < gstartMiscToneId + gtotalMiscToneId)
  508. {
  509.     S32 len = 0;
  510.     data = ((gprofiles[gprofileId].toneSetup.messageTone) - (gstartMiscToneId));
  511.     memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  512.     sprintf((PS8) AsciinStrItemList, "%d", data + 1);
  513.     AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
  514.     len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
  515.     len = MAX_SUBMENU_CHARACTERS - len;
  516.     pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
  517.     pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
  518. }
  519. else if(ToneID == MESSAGE_SILENT)
  520. {
  521.     pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
  522. }
  523. else
  524.      {
  525.         BOOL selected = FALSE;
  526.     #if defined(__MMI_PROFILE_EXTMELODY_SUPPORT__)
  527.         MSPmgGetExtMelodyInfo(&ExtMelodyStruct);
  528.         for (data = 0; data < MAXIMUM_EXT_MELODY_NUM; data++)
  529.         {
  530.         
  531.             if (MSPmgIsEmptySlot(data) == MMI_FALSE && ToneID == ExtMelodyStruct->info[data].id)
  532.             {
  533.                 if (IS_EXTMELODY_SHORTNAME(ExtMelodyStruct->info[data].filepath))
  534.                 {
  535.                     mmi_chset_mixed_text_to_ucs2_str(
  536.                         hintData[(index)],
  537.                         (FMGR_MAX_FILE_LEN + 1) * ENCODING_LENGTH,
  538.                         (U8*) ExtMelodyStruct->info[data].filename,
  539.                         g_chset_text_encoding);
  540.                 }
  541.                 else
  542.                 {
  543.                     pfnUnicodeStrcpy((PS8) hintData[(index)], (PS8) (ExtMelodyStruct->info[data].filename));
  544.                 }
  545.             #if (!defined(__MMI_SHOW_FILE_EXT__))
  546.                 PmgRemoveFileExt((S8*) hintData[(index)]);
  547.             #elif (!defined(__MMI_SHOW_DAF_FILE_EXT__))
  548.                 PmgRemoveFileDAFExt((S8*) hintData[(index)]);
  549.             #endif 
  550.                 selected = TRUE;
  551.                 break;
  552.             }
  553.         }
  554.     #endif /* defined(__MMI_PROFILE_EXTMELODY_SUPPORT__) */ 
  555.     #ifdef __MMI_DOWNLOADABLE_THEMES_SUPPORT__
  556.         if (!selected)
  557.         {
  558.             DYNAUDIOINFO *download_theme_tones;
  559.             if (GetThemeV2TonesInfo(&download_theme_tones) != 0 && mmi_tm_get_current_theme_ringtone())
  560.             {
  561.                 if (ToneID == (U16) download_theme_tones[0].AudioId)
  562.                 {
  563.                     pfnUnicodeStrcpy((PS8) hintData[(index)], GetString((U16) STR_PROFILES_CURR_THEME));
  564.                     selected = TRUE;
  565.                 }
  566.             }
  567.         }
  568.     #endif /* __MMI_DOWNLOADABLE_THEMES_SUPPORT__ */ 
  569.         ASSERT(selected);
  570.     }
  571. }
  572. #else
  573. //KP Jerry add for changing the style of message tone list on 2007-4-10 end
  574. /*****************************************************************************
  575.  * FUNCTION
  576.  *  HintHandlerMessgaeTone
  577.  * DESCRIPTION
  578.  *  Hint handlers for Message Tone
  579.  * PARAMETERS
  580.  *  index       [IN]        
  581.  * RETURNS
  582.  *  void
  583.  *****************************************************************************/
  584. void HintHandlerMessgaeTone(U16 index)
  585. {
  586.     /*----------------------------------------------------------------*/
  587.     /* Local Variables                                                */
  588.     /*----------------------------------------------------------------*/
  589.     U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
  590.     U8 AsciinStrItemList[4];    /* Stores the strings id of submenus returned */
  591.     U8 data = 0;
  592.     /*----------------------------------------------------------------*/
  593.     /* Code Body                                                      */
  594.     /*----------------------------------------------------------------*/
  595.     memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  596.     if ((gprofiles[gprofileId].toneSetup.messageTone) != MESSAGE_SILENT)
  597.     {
  598.         S32 len = 0;
  599.         data = ((gprofiles[gprofileId].toneSetup.messageTone) - (gstartMiscToneId));
  600.         memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  601.         sprintf((PS8) AsciinStrItemList, "%d", data + 1);
  602.         AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
  603.         len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
  604.         len = MAX_SUBMENU_CHARACTERS - len;
  605.         pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
  606.         pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
  607.     }
  608.     else
  609.     {
  610.         pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
  611.     }
  612. }
  613. #endif     //KP Jerry add for changing the style of message tone list on 2007-4-10
  614. /*****************************************************************************
  615.  * FUNCTION
  616.  *  HintHandlerKeypadTone
  617.  * DESCRIPTION
  618.  *  Hint handlers for Keypad Tone
  619.  * PARAMETERS
  620.  *  index       [IN]        
  621.  * RETURNS
  622.  *  void
  623.  *****************************************************************************/
  624. void HintHandlerKeypadTone(U16 index)
  625. {
  626.     /*----------------------------------------------------------------*/
  627.     /* Local Variables                                                */
  628.     /*----------------------------------------------------------------*/
  629.     /*----------------------------------------------------------------*/
  630.     /* Code Body                                                      */
  631.     /*----------------------------------------------------------------*/
  632.     memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  633.     switch (gprofiles[gprofileId].toneSetup.keypadTone)
  634.     {
  635.         case KEYPAD_SILENT:
  636.             pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_SILENT), MAX_SUBMENU_CHARACTERS);
  637.             break;
  638.         case KEYPAD_CLICK:
  639.             pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_CLICK), MAX_SUBMENU_CHARACTERS);
  640.             break;
  641.         case KEYPAD_TONE:
  642.             pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_TONE), MAX_SUBMENU_CHARACTERS);
  643.             break;
  644.     #if defined(__MMI_HUMAN_VOICE_KEYPAD_TONE__)
  645.         case KEYPAD_TONE_HUMAN_VOICE_1:
  646.             pfnUnicodeStrncpy(
  647.                 (PS8) hintData[(index)],
  648.                 GetString(STR_KEYPAD_TONE_HUMAN_VOICE_1),
  649.                 MAX_SUBMENU_CHARACTERS);
  650.             break;
  651.         case KEYPAD_TONE_HUMAN_VOICE_2:
  652.             pfnUnicodeStrncpy(
  653.                 (PS8) hintData[(index)],
  654.                 GetString(STR_KEYPAD_TONE_HUMAN_VOICE_2),
  655.                 MAX_SUBMENU_CHARACTERS);
  656.             break;
  657.         case KEYPAD_TONE_HUMAN_VOICE_3:
  658.             pfnUnicodeStrncpy(
  659.                 (PS8) hintData[(index)],
  660.                 GetString(STR_KEYPAD_TONE_HUMAN_VOICE_3),
  661.                 MAX_SUBMENU_CHARACTERS);
  662.             break;
  663.         case KEYPAD_TONE_HUMAN_VOICE_4:
  664.             pfnUnicodeStrncpy(
  665.                 (PS8) hintData[(index)],
  666.                 GetString(STR_KEYPAD_TONE_HUMAN_VOICE_4),
  667.                 MAX_SUBMENU_CHARACTERS);
  668.             break;
  669.         case KEYPAD_TONE_HUMAN_VOICE_5:
  670.             pfnUnicodeStrncpy(
  671.                 (PS8) hintData[(index)],
  672.                 GetString(STR_KEYPAD_TONE_HUMAN_VOICE_5),
  673.                 MAX_SUBMENU_CHARACTERS);
  674.             break;
  675.         case KEYPAD_TONE_HUMAN_VOICE_6:
  676.             pfnUnicodeStrncpy(
  677.                 (PS8) hintData[(index)],
  678.                 GetString(STR_KEYPAD_TONE_HUMAN_VOICE_6),
  679.                 MAX_SUBMENU_CHARACTERS);
  680.             break;
  681.     #endif /* defined(__MMI_HUMAN_VOICE_KEYPAD_TONE__) */ 
  682.     #if defined(__MMI_CUST_KEYPAD_TONE__)
  683.         case KEYPAD_TONE_CUST_1:
  684.             pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_CUST_1), MAX_SUBMENU_CHARACTERS);
  685.             break;
  686.         case KEYPAD_TONE_CUST_2:
  687.             pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_CUST_2), MAX_SUBMENU_CHARACTERS);
  688.             break;
  689.         case KEYPAD_TONE_CUST_3:
  690.             pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_CUST_3), MAX_SUBMENU_CHARACTERS);
  691.             break;
  692.         case KEYPAD_TONE_CUST_4:
  693.             pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_CUST_4), MAX_SUBMENU_CHARACTERS);
  694.             break;
  695.         case KEYPAD_TONE_CUST_5:
  696.             pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_CUST_5), MAX_SUBMENU_CHARACTERS);
  697.             break;
  698.         case KEYPAD_TONE_CUST_6:
  699.             pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_CUST_6), MAX_SUBMENU_CHARACTERS);
  700.             break;
  701.     #endif /* defined(__MMI_CUST_KEYPAD_TONE__) */ 
  702.     }
  703. }
  704. /*****************************************************************************
  705.  * FUNCTION
  706.  *  HintHandlerAlertType
  707.  * DESCRIPTION
  708.  *  Hint handlers for Alert Type
  709.  * PARAMETERS
  710.  *  index       [IN]        
  711.  * RETURNS
  712.  *  void
  713.  *****************************************************************************/
  714. void HintHandlerAlertType(U16 index)
  715. {
  716.     /*----------------------------------------------------------------*/
  717.     /* Local Variables                                                */
  718.     /*----------------------------------------------------------------*/
  719.     /*----------------------------------------------------------------*/
  720.     /* Code Body                                                      */
  721.     /*----------------------------------------------------------------*/
  722.     memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  723.     if (gprofiles[gprofileId].mtCallAlertTypeEnum == MMI_RING)
  724.     {
  725.         pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_RING), MAX_SUBMENU_CHARACTERS);
  726.     }
  727.     else if (gprofiles[gprofileId].mtCallAlertTypeEnum == MMI_VIBRATION_ONLY)
  728.     {
  729.         pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_VIBRATION_ONLY), MAX_SUBMENU_CHARACTERS);
  730.     }
  731.     else if (gprofiles[gprofileId].mtCallAlertTypeEnum == MMI_VIBRATION_AND_RING)
  732.     {
  733.         pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_VIBRATION_AND_RING), MAX_SUBMENU_CHARACTERS);
  734.     }
  735.     else if (gprofiles[gprofileId].mtCallAlertTypeEnum == MMI_VIBRATION_THEN_RING)
  736.     {
  737.         pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_VIBRATION_THEN_RING), MAX_SUBMENU_CHARACTERS);
  738.     }
  739.     else
  740.     {
  741.         pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_SILENT), MAX_SUBMENU_CHARACTERS);
  742.     }
  743. }
  744. /*****************************************************************************
  745.  * FUNCTION
  746.  *  HintHandlerRingType
  747.  * DESCRIPTION
  748.  *  Hint handlers for Ring Type
  749.  * PARAMETERS
  750.  *  index       [IN]        
  751.  * RETURNS
  752.  *  void
  753.  *****************************************************************************/
  754. void HintHandlerRingType(U16 index)
  755. {
  756.     /*----------------------------------------------------------------*/
  757.     /* Local Variables                                                */
  758.     /*----------------------------------------------------------------*/
  759.     /*----------------------------------------------------------------*/
  760.     /* Code Body                                                      */
  761.     /*----------------------------------------------------------------*/
  762.     memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  763.     switch (gprofiles[gprofileId].ringTypeEnum)
  764.     {
  765.         case SINGLE:
  766.             pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_RING_TYPE_SINGLE), MAX_SUBMENU_CHARACTERS);
  767.             break;
  768.         case REPEAT:
  769.             pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_RING_TYPE_REPEAT), MAX_SUBMENU_CHARACTERS);
  770.             break;
  771.         case ASCENDING:
  772.             pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_RING_TYPE_ASCENDNG), MAX_SUBMENU_CHARACTERS);
  773.             break;
  774.     }
  775. }
  776. #ifdef __MMI_CONNECT_NOTICE__
  777. /*****************************************************************************
  778.  * FUNCTION
  779.  *  HintHandlerConnectNotice
  780.  * DESCRIPTION
  781.  *  Hint handlers for Connect Notice Type
  782.  * PARAMETERS
  783.  *  index       [IN]        
  784.  * RETURNS
  785.  *  void
  786.  *****************************************************************************/
  787. void HintHandlerConnectNotice(U16 index)
  788. {
  789.     /*----------------------------------------------------------------*/
  790.     /* Local Variables                                                */
  791.     /*----------------------------------------------------------------*/
  792.     /*----------------------------------------------------------------*/
  793.     /* Code Body                                                      */
  794.     /*----------------------------------------------------------------*/
  795.     memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  796.     pfnUnicodeStrncpy(
  797.         (PS8) hintData[(index)],
  798.         GetString(STR_NOTICE_NONE + gprofiles[gprofileId].extraTone.connectTone),
  799.         MAX_SUBMENU_CHARACTERS);
  800. }
  801. #endif /* __MMI_CONNECT_NOTICE__ */ 
  802. /*****************************************************************************
  803.  * FUNCTION
  804.  *  HintHandlerRingVolume
  805.  * DESCRIPTION
  806.  *  Hint handlers for Ring Volume
  807.  * PARAMETERS
  808.  *  index       [IN]        
  809.  * RETURNS
  810.  *  void
  811.  *****************************************************************************/
  812. void HintHandlerRingVolume(U16 index)
  813. {
  814.     /*----------------------------------------------------------------*/
  815.     /* Local Variables                                                */
  816.     /*----------------------------------------------------------------*/
  817.     U8 value[MAX_SUB_MENU_HINT_SIZE];
  818.     /*----------------------------------------------------------------*/
  819.     /* Code Body                                                      */
  820.     /*----------------------------------------------------------------*/
  821.     sprintf((S8*) value, "%d", (gprofiles[gprofileId].ringVolumeLevel + 1));
  822. #ifdef __UCS2_ENCODING
  823.     AnsiiToUnicodeString((PS8) hintData[(index)], (PS8) value);
  824. #else 
  825.     pfnUnicodeStrcpy((S8*) hintData[index], (S8*) value);
  826. #endif 
  827. }
  828. /*****************************************************************************
  829.  * FUNCTION
  830.  *  HintHandlerKeyVolume
  831.  * DESCRIPTION
  832.  *  Hint handlers for Key Volume
  833.  * PARAMETERS
  834.  *  index       [IN]        
  835.  * RETURNS
  836.  *  void
  837.  *****************************************************************************/
  838. void HintHandlerKeyVolume(U16 index)
  839. {
  840.     /*----------------------------------------------------------------*/
  841.     /* Local Variables                                                */
  842.     /*----------------------------------------------------------------*/
  843.     U8 value[MAX_SUB_MENU_HINT_SIZE];
  844.     /*----------------------------------------------------------------*/
  845.     /* Code Body                                                      */
  846.     /*----------------------------------------------------------------*/
  847.     sprintf((S8*) value, "%d", (gprofiles[gprofileId].keypadVolumeLevel + 1));
  848. #ifdef __UCS2_ENCODING
  849.     AnsiiToUnicodeString((PS8) hintData[(index)], (PS8) value);
  850. #else 
  851.     pfnUnicodeStrcpy((S8*) hintData[index], (S8*) value);
  852. #endif 
  853. }
  854. /*****************************************************************************
  855.  * FUNCTION
  856.  *  HintHandlerLCDBacklight
  857.  * DESCRIPTION
  858.  *  Hint handlers for LCD BackLight
  859.  * PARAMETERS
  860.  *  index       [IN]        
  861.  * RETURNS
  862.  *  void
  863.  *****************************************************************************/
  864. void HintHandlerLCDBacklight(U16 index)
  865. {
  866.     /*----------------------------------------------------------------*/
  867.     /* Local Variables                                                */
  868.     /*----------------------------------------------------------------*/
  869.     U8 value[MAX_SUB_MENU_HINT_SIZE];
  870.     /*----------------------------------------------------------------*/
  871.     /* Code Body                                                      */
  872.     /*----------------------------------------------------------------*/
  873.     sprintf((S8*) value, "%d", gprofiles[gprofileId].light.timer.setsec);
  874. #ifdef __UCS2_ENCODING
  875.     AnsiiToUnicodeString((PS8) hintData[(index)], (PS8) value);
  876. #else 
  877.     pfnUnicodeStrcpy((S8*) hintData[index], (S8*) value);
  878. #endif 
  879. }
  880. #ifdef __MMI_STATUS_LED__
  881. /*****************************************************************************
  882.  * FUNCTION
  883.  *  HintHandlerStatusLED
  884.  * DESCRIPTION
  885.  *  Hint handlers for Status LED
  886.  * PARAMETERS
  887.  *  index       [IN]        
  888.  * RETURNS
  889.  *  void
  890.  *****************************************************************************/
  891. void HintHandlerStatusLED(U16 index)
  892. {
  893.     /*----------------------------------------------------------------*/
  894.     /* Local Variables                                                */
  895.     /*----------------------------------------------------------------*/
  896.     /*----------------------------------------------------------------*/
  897.     /* Code Body                                                      */
  898.     /*----------------------------------------------------------------*/
  899.     memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  900.     switch (gprofiles[gprofileId].light.status)
  901.     {
  902.         case NO_COLOR:
  903.             pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_LIGHT_STATUS_NONE), MAX_SUBMENU_CHARACTERS);
  904.             break;
  905.         case COLOR_PATTERN1:
  906.             pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_LIGHT_STATUS_COLOR1), MAX_SUBMENU_CHARACTERS);
  907.             break;
  908.         case COLOR_PATTERN2:
  909.             pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_LIGHT_STATUS_COLOR2), MAX_SUBMENU_CHARACTERS);
  910.             break;
  911.         case COLOR_PATTERN3:
  912.             pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_LIGHT_STATUS_COLOR3), MAX_SUBMENU_CHARACTERS);
  913.             break;
  914.         case COLOR_PATTERN4:
  915.             pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_LIGHT_STATUS_COLOR4), MAX_SUBMENU_CHARACTERS);
  916.             break;
  917.         case COLOR_PATTERN5:
  918.             pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_LIGHT_STATUS_COLOR5), MAX_SUBMENU_CHARACTERS);
  919.             break;
  920.         case COLOR_PATTERN6:
  921.             pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_LIGHT_STATUS_COLOR6), MAX_SUBMENU_CHARACTERS);
  922.             break;
  923.     }
  924. }
  925. #endif /* __MMI_STATUS_LED__ */ 
  926. /************************************HighLight Handlers***************************/
  927. /*****************************************************************************
  928.  * FUNCTION
  929.  *  HighlightProfiles
  930.  * DESCRIPTION
  931.  *  Highlight profile menu item
  932.  * PARAMETERS
  933.  *  void
  934.  * RETURNS
  935.  *  void
  936.  *****************************************************************************/
  937. void HighlightProfiles(void)
  938. {
  939.     /*----------------------------------------------------------------*/
  940.     /* Local Variables                                                */
  941.     /*----------------------------------------------------------------*/
  942.     /*----------------------------------------------------------------*/
  943.     /* Code Body                                                      */
  944.     /*----------------------------------------------------------------*/
  945.     /* 1 Change left soft key icon and label */
  946.     ChangeLeftSoftkey(STR_GLOBAL_OPTIONS, 0);
  947.     /* 2 Change right soft key icon and label */
  948.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  949.     /* 3 Register function for left soft key */
  950.     SetLeftSoftkeyFunction(EntryScrProfiles, KEY_EVENT_UP);
  951.     /* 4 Register function for right soft key */
  952.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  953.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  954.     SetKeyHandler(EntryScrProfiles, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  955. }
  956. /*****************************************************************************
  957.  * FUNCTION
  958.  *  HighlightGeneralProfile
  959.  * DESCRIPTION
  960.  *  Highlight General profile menu item
  961.  * PARAMETERS
  962.  *  void
  963.  * RETURNS
  964.  *  void
  965.  *****************************************************************************/
  966. void HighlightGeneralProfile(void)
  967. {
  968.     /*----------------------------------------------------------------*/
  969.     /* Local Variables                                                */
  970.     /*----------------------------------------------------------------*/
  971.     /*----------------------------------------------------------------*/
  972.     /* Code Body                                                      */
  973.     /*----------------------------------------------------------------*/
  974.     gcurrHiliteIndexOne = MMI_PROFILE_GENERAL;
  975.     /* Register function for left soft key */
  976. #ifdef __MMI_PROF_MENU_ACTIVE_SHRINK__
  977.     SetLeftSoftkeyFunction(EntryScrProfilesCustomize, KEY_EVENT_UP);
  978.     SetKeyHandler(EntryScrProfilesCustomize, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  979. #else /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */ 
  980.     SetLeftSoftkeyFunction(EntryScrProfilesOptions, KEY_EVENT_UP);
  981.     SetKeyHandler(EntryScrProfilesOptions, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  982. #endif /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */ 
  983. }
  984. /*****************************************************************************
  985.  * FUNCTION
  986.  *  HighlightMeetingProfile
  987.  * DESCRIPTION
  988.  *  Highlight Meeting profile menu item
  989.  * PARAMETERS
  990.  *  void
  991.  * RETURNS
  992.  *  void
  993.  *****************************************************************************/
  994. void HighlightMeetingProfile(void)
  995. {
  996.     /*----------------------------------------------------------------*/
  997.     /* Local Variables                                                */
  998.     /*----------------------------------------------------------------*/
  999.     /*----------------------------------------------------------------*/
  1000.     /* Code Body                                                      */
  1001.     /*----------------------------------------------------------------*/
  1002.     gcurrHiliteIndexOne = MMI_PROFILE_MEETING;
  1003.     /* Register function for left soft key */
  1004. #ifdef __MMI_PROF_MENU_ACTIVE_SHRINK__
  1005.     SetLeftSoftkeyFunction(EntryScrProfilesCustomize, KEY_EVENT_UP);
  1006.     SetKeyHandler(EntryScrProfilesCustomize, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1007. #else /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */ 
  1008.     SetLeftSoftkeyFunction(EntryScrProfilesOptions, KEY_EVENT_UP);
  1009.     SetKeyHandler(EntryScrProfilesOptions, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1010. #endif /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */ 
  1011. }
  1012. /*****************************************************************************
  1013.  * FUNCTION
  1014.  *  HighlightOutdoorProfile
  1015.  * DESCRIPTION
  1016.  *  Highlight Outdoor profile menu item
  1017.  * PARAMETERS
  1018.  *  void
  1019.  * RETURNS
  1020.  *  void
  1021.  *****************************************************************************/
  1022. void HighlightOutdoorProfile(void)
  1023. {
  1024.     /*----------------------------------------------------------------*/
  1025.     /* Local Variables                                                */
  1026.     /*----------------------------------------------------------------*/
  1027.     /*----------------------------------------------------------------*/
  1028.     /* Code Body                                                      */
  1029.     /*----------------------------------------------------------------*/
  1030.     gcurrHiliteIndexOne = MMI_PROFILE_OUTDOOR;
  1031.     /* Register function for left soft key */
  1032. #ifdef __MMI_PROF_MENU_ACTIVE_SHRINK__
  1033.     SetLeftSoftkeyFunction(EntryScrProfilesCustomize, KEY_EVENT_UP);
  1034.     SetKeyHandler(EntryScrProfilesCustomize, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1035. #else /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */ 
  1036.     SetLeftSoftkeyFunction(EntryScrProfilesOptions, KEY_EVENT_UP);
  1037.     SetKeyHandler(EntryScrProfilesOptions, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1038. #endif /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */ 
  1039. }
  1040. /*****************************************************************************
  1041.  * FUNCTION
  1042.  *  HighlightIndoorProfile
  1043.  * DESCRIPTION
  1044.  *  Highlight Indoor profile menu item
  1045.  * PARAMETERS
  1046.  *  void
  1047.  * RETURNS
  1048.  *  void
  1049.  *****************************************************************************/
  1050. void HighlightIndoorProfile(void)
  1051. {
  1052.     /*----------------------------------------------------------------*/
  1053.     /* Local Variables                                                */
  1054.     /*----------------------------------------------------------------*/
  1055.     /*----------------------------------------------------------------*/
  1056.     /* Code Body                                                      */
  1057.     /*----------------------------------------------------------------*/
  1058.     gcurrHiliteIndexOne = MMI_PROFILE_INDOOR;
  1059.     /* Register function for left soft key */
  1060. #ifdef __MMI_PROF_MENU_ACTIVE_SHRINK__
  1061.     SetLeftSoftkeyFunction(EntryScrProfilesCustomize, KEY_EVENT_UP);
  1062.     SetKeyHandler(EntryScrProfilesCustomize, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1063. #else /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */ 
  1064.     SetLeftSoftkeyFunction(EntryScrProfilesOptions, KEY_EVENT_UP);
  1065.     SetKeyHandler(EntryScrProfilesOptions, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1066. #endif /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */ 
  1067. }
  1068. /*****************************************************************************
  1069.  * FUNCTION
  1070.  *  HighlightHeadsetProfile
  1071.  * DESCRIPTION
  1072.  *  Highlight Headset profile menu item
  1073.  * PARAMETERS
  1074.  *  void
  1075.  * RETURNS
  1076.  *  void
  1077.  *****************************************************************************/
  1078. void HighlightHeadsetProfile(void)
  1079. {
  1080.     /*----------------------------------------------------------------*/
  1081.     /* Local Variables                                                */
  1082.     /*----------------------------------------------------------------*/
  1083.     /*----------------------------------------------------------------*/
  1084.     /* Code Body                                                      */
  1085.     /*----------------------------------------------------------------*/
  1086.     gcurrHiliteIndexOne = MMI_PROFILE_HEADSET;
  1087.     /* Register function for left soft key */
  1088. #ifdef __MMI_PROF_MENU_ACTIVE_SHRINK__
  1089.     SetLeftSoftkeyFunction(EntryScrProfilesCustomize, KEY_EVENT_UP);
  1090.     SetKeyHandler(EntryScrProfilesCustomize, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1091. #else /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */ 
  1092.     SetLeftSoftkeyFunction(EntryScrProfilesOptions, KEY_EVENT_UP);
  1093.     SetKeyHandler(EntryScrProfilesOptions, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1094. #endif /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */ 
  1095. }
  1096. #ifdef __MMI_BT_PROFILE__
  1097. /*****************************************************************************
  1098.  * FUNCTION
  1099.  *  mmi_profiles_bt_profile_highlight_hdlr
  1100.  * DESCRIPTION
  1101.  *  highlight BT profile menu item
  1102.  * PARAMETERS
  1103.  *  void
  1104.  * RETURNS
  1105.  *  void
  1106.  *****************************************************************************/
  1107. void mmi_profiles_bt_profile_highlight_hdlr(void)
  1108. {
  1109.     /*----------------------------------------------------------------*/
  1110.     /* Local Variables                                                */
  1111.     /*----------------------------------------------------------------*/
  1112.     /*----------------------------------------------------------------*/
  1113.     /* Code Body                                                      */
  1114.     /*----------------------------------------------------------------*/
  1115.     gcurrHiliteIndexOne = MMI_PROFILE_BT;
  1116.     /* Register function for left soft key */
  1117. #ifdef __MMI_PROF_MENU_ACTIVE_SHRINK__
  1118.     SetLeftSoftkeyFunction(EntryScrProfilesCustomize, KEY_EVENT_UP);
  1119.     SetKeyHandler(EntryScrProfilesCustomize, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1120. #else /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */ 
  1121.     SetLeftSoftkeyFunction(EntryScrProfilesOptions, KEY_EVENT_UP);
  1122.     SetKeyHandler(EntryScrProfilesOptions, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1123. #endif /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */ 
  1124. }
  1125. #endif /* __MMI_BT_PROFILE__ */ /* MMI_BT_PROFILE__ */
  1126. /*****************************************************************************
  1127.  * FUNCTION
  1128.  *  HighlightProfilesOptions
  1129.  * DESCRIPTION
  1130.  *  Highlight profile Options menu item
  1131.  * PARAMETERS
  1132.  *  void
  1133.  * RETURNS
  1134.  *  void
  1135.  *****************************************************************************/
  1136. void HighlightProfilesOptions(void)
  1137. {
  1138.     /*----------------------------------------------------------------*/
  1139.     /* Local Variables                                                */
  1140.     /*----------------------------------------------------------------*/
  1141.     /*----------------------------------------------------------------*/
  1142.     /* Code Body                                                      */
  1143.     /*----------------------------------------------------------------*/
  1144.     /* 1 Change left soft key icon and label */
  1145.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1146.     /* 2 Change right soft key icon and label */
  1147.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1148.     /* 4 Register function for right soft key */
  1149.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1150.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1151. }
  1152. /*****************************************************************************
  1153.  * FUNCTION
  1154.  *  HighlightProfileActivateOptions
  1155.  * DESCRIPTION
  1156.  *  Highlight profile Activate Options menu item
  1157.  * PARAMETERS
  1158.  *  void
  1159.  * RETURNS
  1160.  *  void
  1161.  *****************************************************************************/
  1162. void HighlightProfileActivateOptions(void)
  1163. {
  1164.     /*----------------------------------------------------------------*/
  1165.     /* Local Variables                                                */
  1166.     /*----------------------------------------------------------------*/
  1167.     /*----------------------------------------------------------------*/
  1168.     /* Code Body                                                      */
  1169.     /*----------------------------------------------------------------*/
  1170.     /* 1 Change left soft key icon and label */
  1171.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1172.     /* 2 Change right soft key icon and label */
  1173.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1174.     /* 3 Register function for left soft key */
  1175.     SetLeftSoftkeyFunction(EntryScrProfilesActivate, KEY_EVENT_UP);
  1176.     /* 4 Register function for right soft key */
  1177.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1178.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1179.     /* MTK added, Max: to clear key handler 1221 */
  1180.     ClearKeyHandler(KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1181.     /* MTK end */
  1182. }
  1183. /*****************************************************************************
  1184.  * FUNCTION
  1185.  *  HighlightProfilesCustomize
  1186.  * DESCRIPTION
  1187.  *  Highlight profile Customize menu item
  1188.  * PARAMETERS
  1189.  *  void
  1190.  * RETURNS
  1191.  *  void
  1192.  *****************************************************************************/
  1193. void HighlightProfilesCustomize(void)
  1194. {
  1195.     /*----------------------------------------------------------------*/
  1196.     /* Local Variables                                                */
  1197.     /*----------------------------------------------------------------*/
  1198.     /*----------------------------------------------------------------*/
  1199.     /* Code Body                                                      */
  1200.     /*----------------------------------------------------------------*/
  1201.     /* 1 Change left soft key icon and label */
  1202.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1203.     /* 2 Change right soft key icon and label */
  1204.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1205.     /* 3 Register function for left soft key */
  1206.     SetLeftSoftkeyFunction(EntryScrProfilesCustomize, KEY_EVENT_UP);
  1207.     /* 4 Register function for right soft key */
  1208.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1209.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1210.     SetKeyHandler(EntryScrProfilesCustomize, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1211. }
  1212. /*****************************************************************************
  1213.  * FUNCTION
  1214.  *  HighlightProfilesVolumeLevel
  1215.  * DESCRIPTION
  1216.  *  Highlight profile Volume Level
  1217.  * PARAMETERS
  1218.  *  void
  1219.  * RETURNS
  1220.  *  void
  1221.  *****************************************************************************/
  1222. void HighlightProfilesVolumeLevel(void)
  1223. {
  1224.     /*----------------------------------------------------------------*/
  1225.     /* Local Variables                                                */
  1226.     /*----------------------------------------------------------------*/
  1227.     /*----------------------------------------------------------------*/
  1228.     /* Code Body                                                      */
  1229.     /*----------------------------------------------------------------*/
  1230.     /* 1 Change left soft key icon and label */
  1231.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1232.     /* 2 Change right soft key icon and label */
  1233.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1234.     /* 3 Register function for left soft key */
  1235.     SetLeftSoftkeyFunction(EntryScrProfilesVolumeType, KEY_EVENT_UP);
  1236.     /* 4 Register function for right soft key */
  1237.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1238.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1239.     SetKeyHandler(EntryScrProfilesVolumeType, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1240. }
  1241. /*****************************************************************************
  1242.  * FUNCTION
  1243.  *  HighlightProfilesCallAlert
  1244.  * DESCRIPTION
  1245.  *  Highlight profile Call Alert menu item
  1246.  * PARAMETERS
  1247.  *  void
  1248.  * RETURNS
  1249.  *  void
  1250.  *****************************************************************************/
  1251. void HighlightProfilesCallAlert(void)
  1252. {
  1253.     /*----------------------------------------------------------------*/
  1254.     /* Local Variables                                                */
  1255.     /*----------------------------------------------------------------*/
  1256.     /*----------------------------------------------------------------*/
  1257.     /* Code Body                                                      */
  1258.     /*----------------------------------------------------------------*/
  1259.     /* 1 Change left soft key icon and label */
  1260.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1261.     /* 2 Change right soft key icon and label */
  1262.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1263.     /* 3 Register function for left soft key */
  1264.     SetLeftSoftkeyFunction(EntryScrProfilesCallAlert, KEY_EVENT_UP);
  1265.     /* 4 Register function for right soft key */
  1266.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1267.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1268.     SetKeyHandler(EntryScrProfilesCallAlert, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1269. }
  1270. /*****************************************************************************
  1271.  * FUNCTION
  1272.  *  HighlightProfilesRingType
  1273.  * DESCRIPTION
  1274.  *  Highlight profile Call Alert menu item
  1275.  * PARAMETERS
  1276.  *  void
  1277.  * RETURNS
  1278.  *  void
  1279.  *****************************************************************************/
  1280. void HighlightProfilesRingType(void)
  1281. {
  1282.     /*----------------------------------------------------------------*/
  1283.     /* Local Variables                                                */
  1284.     /*----------------------------------------------------------------*/
  1285.     /*----------------------------------------------------------------*/
  1286.     /* Code Body                                                      */
  1287.     /*----------------------------------------------------------------*/
  1288.     /* 1 Change left soft key icon and label */
  1289.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1290.     /* 2 Change right soft key icon and label */
  1291.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1292.     /* 3 Register function for left soft key */
  1293.     SetLeftSoftkeyFunction(EntryScrProfilesRingType, KEY_EVENT_UP);
  1294.     /* 4 Register function for right soft key */
  1295.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1296.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1297.     SetKeyHandler(EntryScrProfilesRingType, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1298. }
  1299. /*****************************************************************************
  1300.  * FUNCTION
  1301.  *  HighlightProfilesAnsweringMode
  1302.  * DESCRIPTION
  1303.  *  Highlight profile Answering mode menu item
  1304.  * PARAMETERS
  1305.  *  void
  1306.  * RETURNS
  1307.  *  void
  1308.  *****************************************************************************/
  1309. void HighlightProfilesAnsweringMode(void)
  1310. {
  1311.     /*----------------------------------------------------------------*/
  1312.     /* Local Variables                                                */
  1313.     /*----------------------------------------------------------------*/
  1314.     /*----------------------------------------------------------------*/
  1315.     /* Code Body                                                      */
  1316.     /*----------------------------------------------------------------*/
  1317.     /* 1 Change left soft key icon and label */
  1318.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1319.     /* 2 Change right soft key icon and label */
  1320.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1321.     /* 3 Register function for left soft key */
  1322.     SetLeftSoftkeyFunction(EntryScrProfilesAnsweringMode, KEY_EVENT_UP);
  1323.     /* 4 Register function for right soft key */
  1324.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1325.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1326.     SetKeyHandler(EntryScrProfilesAnsweringMode, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1327. }
  1328. #ifdef __MMI_STATUS_LED__
  1329. /*****************************************************************************
  1330.  * FUNCTION
  1331.  *  HighlightProfilesStatus
  1332.  * DESCRIPTION
  1333.  *  Highlight profile Status menu item
  1334.  * PARAMETERS
  1335.  *  void
  1336.  * RETURNS
  1337.  *  void
  1338.  *****************************************************************************/
  1339. void HighlightProfilesStatus(void)
  1340. {
  1341.     /*----------------------------------------------------------------*/
  1342.     /* Local Variables                                                */
  1343.     /*----------------------------------------------------------------*/
  1344.     /*----------------------------------------------------------------*/
  1345.     /* Code Body                                                      */
  1346.     /*----------------------------------------------------------------*/
  1347.     /* 1 Change left soft key icon and label */
  1348.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1349.     /* 2 Change right soft key icon and label */
  1350.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1351.     /* 3 Register function for left soft key */
  1352.     SetLeftSoftkeyFunction(EntryScrStatusLEDPatterns, KEY_EVENT_UP);
  1353.     /* 4 Register function for right soft key */
  1354.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1355.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1356.     SetKeyHandler(EntryScrStatusLEDPatterns, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1357. }
  1358. #endif /* __MMI_STATUS_LED__ */ 
  1359. //KP Jerry add on 2007-03-31 start
  1360. #ifdef __MMI_PROFILE_POWER_SAVING__
  1361. /*****************************************************************************
  1362.  * FUNCTION
  1363.  *  HighlightPowerSavingProfile
  1364.  * DESCRIPTION
  1365.  *  Highlight General profile menu item
  1366.  * PARAMETERS
  1367.  *  void
  1368.  * RETURNS
  1369.  *  void
  1370.  *****************************************************************************/
  1371. void HighlightPowerSavingProfile(void)
  1372. {
  1373.     /*----------------------------------------------------------------*/
  1374.     /* Local Variables                                                */
  1375.     /*----------------------------------------------------------------*/
  1376.     /*----------------------------------------------------------------*/
  1377.     /* Code Body                                                      */
  1378.     /*----------------------------------------------------------------*/
  1379.     gcurrHiliteIndexOne = MMI_PROFILE_POWER_SAVING;
  1380.     /* Register function for left soft key */
  1381. #ifdef __MMI_PROF_MENU_ACTIVE_SHRINK__
  1382.     SetLeftSoftkeyFunction(EntryScrProfilesCustomize, KEY_EVENT_UP);
  1383.     SetKeyHandler(EntryScrProfilesCustomize, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1384. #else /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */ 
  1385.     SetLeftSoftkeyFunction(EntryScrProfilesOptions, KEY_EVENT_UP);
  1386.     SetKeyHandler(EntryScrProfilesOptions, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1387. #endif /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */ 
  1388. }
  1389. /*****************************************************************************
  1390.  * FUNCTION
  1391.  *  HighlightProfilesLCDBL
  1392.  * DESCRIPTION
  1393.  *  ...
  1394.  * PARAMETERS
  1395.  *  void
  1396.  * RETURNS
  1397.  *  void
  1398.  *****************************************************************************/
  1399. void HighlightProfilesLCDBL(void)
  1400. {
  1401.     /*----------------------------------------------------------------*/
  1402.     /* Local Variables                                                */
  1403.     /*----------------------------------------------------------------*/
  1404.     /*----------------------------------------------------------------*/
  1405.     /* Code Body                                                      */
  1406.     /*----------------------------------------------------------------*/
  1407.     ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK);
  1408.     ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK);
  1409.     SetLeftSoftkeyFunction(EntryProfilesSetLCDBackLite, KEY_EVENT_UP);
  1410.     SetKeyHandler(EntryProfilesSetLCDBackLite, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1411.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1412.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1413. }
  1414. /*****************************************************************************
  1415.  * FUNCTION
  1416.  *  HighlightProfilesSetBackLiteLevel
  1417.  * DESCRIPTION
  1418.  *  
  1419.  * PARAMETERS
  1420.  *  index       [IN]        
  1421.  * RETURNS
  1422.  *  void
  1423.  *****************************************************************************/
  1424. void HighlightProfilesSetBackLiteLevel(S32 index)
  1425. {
  1426.     /*----------------------------------------------------------------*/
  1427.     /* Local Variables                                                */
  1428.     /*----------------------------------------------------------------*/
  1429.     /*----------------------------------------------------------------*/
  1430.     /* Code Body                                                      */
  1431.     /*----------------------------------------------------------------*/
  1432.     if (index > 0 && index <= 5)
  1433.     {
  1434.         //gprofiles[gprofileId].lcdbacklight.lcdBacklightlevel = index;
  1435.         TempLCDBKLevel = index;
  1436.         if (gactivatedprofile == gprofileId)
  1437.         {
  1438.               //memcpy(&gcurrentprofile, &gprofiles[gprofileId], sizeof(PROFILE));
  1439. g_phnset_gpio_cntx_p->bl_setting_level = index;   
  1440.        SetGPIOLevelReq(GPIO_DEV_LED_MAINLCD, LED_LIGHT_LEVEL5);
  1441.  }
  1442.     }
  1443. }
  1444. /*****************************************************************************
  1445.  * FUNCTION
  1446.  *  HighlightProfilesSetBackLiteHFTime
  1447.  * DESCRIPTION
  1448.  *  This function is highlight handler for Phonesetup-> Contrast -> SubLCD
  1449.  *  Follow functions:
  1450.  * PARAMETERS
  1451.  *  index       [IN]        
  1452.  * RETURNS
  1453.  *  void
  1454.  *****************************************************************************/
  1455. void HighlightProfilesSetBackLiteHFTime(S32 index)
  1456. {
  1457.     /*----------------------------------------------------------------*/
  1458.     /* Local Variables                                                */
  1459.     /*----------------------------------------------------------------*/
  1460.     /*----------------------------------------------------------------*/
  1461.     /* Code Body                                                      */
  1462.     /*----------------------------------------------------------------*/
  1463.     if (index >= 5 && index <= 60)
  1464.     {
  1465.         //gprofiles[gprofileId].lcdbacklight.lcdBacklighttime = index;
  1466.         TempLCDBKTime = index;
  1467.  if (gactivatedprofile == gprofileId)
  1468.  {
  1469. //memcpy(&gcurrentprofile, &gprofiles[gprofileId], sizeof(PROFILE));
  1470. g_phnset_gpio_cntx_p->bl_setting_hftime = index;
  1471.  }
  1472.     }
  1473. }
  1474. /*****************************************************************************
  1475.  * FUNCTION
  1476.  *  HighlightProfilesKEYBL
  1477.  * DESCRIPTION
  1478.  *  highlight phone lock option in security setup
  1479.  * PARAMETERS
  1480.  *  void
  1481.  * RETURNS
  1482.  *  void
  1483.  *****************************************************************************/
  1484. void HighlightProfilesKEYBL(void)
  1485. {
  1486.     /*----------------------------------------------------------------*/
  1487.     /* Local Variables                                                */
  1488.     /*----------------------------------------------------------------*/
  1489.     /*----------------------------------------------------------------*/
  1490.     /* Code Body                                                      */
  1491.     /*----------------------------------------------------------------*/
  1492.     if (gprofiles[gprofileId].keybacklight)
  1493.     {
  1494.         ChangeLeftSoftkey(STR_GLOBAL_OFF, 0);
  1495.     }
  1496.     else
  1497.     {
  1498.         ChangeLeftSoftkey(STR_GLOBAL_ON, 0);
  1499.     }
  1500.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1501.     SetLeftSoftkeyFunction(EntryProfilesSetKeyBacklight, KEY_EVENT_UP);
  1502.     /* micha0529 */
  1503.     SetKeyHandler(EntryProfilesSetKeyBacklight, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1504.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1505.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1506. }
  1507. /*****************************************************************************
  1508.  * FUNCTION
  1509.  *  HintProfilesKEYBL
  1510.  * DESCRIPTION
  1511.  *  ...
  1512.  * PARAMETERS
  1513.  *  index       [IN]        
  1514.  * RETURNS
  1515.  *  void
  1516.  *****************************************************************************/
  1517. void HintProfilesKEYBL(U16 index)
  1518. {
  1519.     /*----------------------------------------------------------------*/
  1520.     /* Local Variables                                                */
  1521.     /*----------------------------------------------------------------*/
  1522.     /*----------------------------------------------------------------*/
  1523.     /* Code Body                                                      */
  1524.     /*----------------------------------------------------------------*/
  1525.     if (gprofiles[gprofileId].keybacklight == 1)
  1526.     {
  1527.         pfnUnicodeStrcpy((PS8) hintData[index], (PS8) GetString(STR_GLOBAL_ON));
  1528.     }
  1529.     else
  1530.     {
  1531.         pfnUnicodeStrcpy((PS8) hintData[index], (PS8) GetString(STR_GLOBAL_OFF));
  1532.     }
  1533. }
  1534. #endif
  1535. //KP Jerry add on 2007-03-31 end
  1536. /*****************************************************************************
  1537.  * FUNCTION
  1538.  *  HighlightProfilesToneSetup
  1539.  * DESCRIPTION
  1540.  *  Highlight profile Tone Setup menu item
  1541.  * PARAMETERS
  1542.  *  void
  1543.  * RETURNS
  1544.  *  void
  1545.  *****************************************************************************/
  1546. void HighlightProfilesToneSetup(void)
  1547. {
  1548.     /*----------------------------------------------------------------*/
  1549.     /* Local Variables                                                */
  1550.     /*----------------------------------------------------------------*/
  1551.     /*----------------------------------------------------------------*/
  1552.     /* Code Body                                                      */
  1553.     /*----------------------------------------------------------------*/
  1554.     /* 1 Change left soft key icon and label */
  1555.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1556.     /* 2 Change right soft key icon and label */
  1557.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1558.     /* 3 Register function for left soft key */
  1559.     SetLeftSoftkeyFunction(EntryScrProfilesToneSetup, KEY_EVENT_UP);
  1560.     /* 4 Register function for right soft key */
  1561.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1562.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1563.     SetKeyHandler(EntryScrProfilesToneSetup, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1564. }
  1565. /*****************************************************************************
  1566.  * FUNCTION
  1567.  *  HighlightProfilesRingToneSetup
  1568.  * DESCRIPTION
  1569.  *  Highlight profile Ring Tone Setup menu item
  1570.  * PARAMETERS
  1571.  *  void
  1572.  * RETURNS
  1573.  *  void
  1574.  *****************************************************************************/
  1575. void HighlightProfilesRingToneSetup(void)
  1576. {
  1577.     /*----------------------------------------------------------------*/
  1578.     /* Local Variables                                                */
  1579.     /*----------------------------------------------------------------*/
  1580.     /*----------------------------------------------------------------*/
  1581.     /* Code Body                                                      */
  1582.     /*----------------------------------------------------------------*/
  1583.     /* 1 Change left soft key icon and label */
  1584.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1585.     /* 2 Change right soft key icon and label */
  1586.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1587.     /* 3 Register function for left soft key */
  1588.     SetLeftSoftkeyFunction(mmi_profiles_entry_ring_tone_list, KEY_EVENT_UP);
  1589.     /* 4 Register function for right soft key */
  1590.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1591.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1592.     SetKeyHandler(mmi_profiles_entry_ring_tone_list, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1593. }
  1594. /*****************************************************************************
  1595.  * FUNCTION
  1596.  *  HighlightProfilesPoweronToneSetup
  1597.  * DESCRIPTION
  1598.  *  Highlight profile Poweron Tone Setup menu item
  1599.  * PARAMETERS
  1600.  *  void
  1601.  * RETURNS
  1602.  *  void
  1603.  *****************************************************************************/
  1604. void HighlightProfilesPoweronToneSetup(void)
  1605. {
  1606.     /*----------------------------------------------------------------*/
  1607.     /* Local Variables                                                */
  1608.     /*----------------------------------------------------------------*/
  1609.     /*----------------------------------------------------------------*/
  1610.     /* Code Body                                                      */
  1611.     /*----------------------------------------------------------------*/
  1612.     /* 1 Change left soft key icon and label */
  1613.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1614.     /* 2 Change right soft key icon and label */
  1615.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1616.     /* 3 Register function for left soft key */
  1617.     SetLeftSoftkeyFunction(EntryScrProfilesPoweronToneSetup, KEY_EVENT_UP);
  1618.     /* 4 Register function for right soft key */
  1619.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1620.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1621.     SetKeyHandler(EntryScrProfilesPoweronToneSetup, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1622. }
  1623. /*****************************************************************************
  1624.  * FUNCTION
  1625.  *  HighlightProfilesPoweroffToneSetup
  1626.  * DESCRIPTION
  1627.  *  Highlight profile Poweroff Tone Setup menu item
  1628.  * PARAMETERS
  1629.  *  void
  1630.  * RETURNS
  1631.  *  void
  1632.  *****************************************************************************/
  1633. void HighlightProfilesPoweroffToneSetup(void)
  1634. {
  1635.     /*----------------------------------------------------------------*/
  1636.     /* Local Variables                                                */
  1637.     /*----------------------------------------------------------------*/
  1638.     /*----------------------------------------------------------------*/
  1639.     /* Code Body                                                      */
  1640.     /*----------------------------------------------------------------*/
  1641.     /* 1 Change left soft key icon and label */
  1642.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1643.     /* 2 Change right soft key icon and label */
  1644.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1645.     /* 3 Register function for left soft key */
  1646.     SetLeftSoftkeyFunction(EntryScrProfilesPoweroffToneSetup, KEY_EVENT_UP);
  1647.     /* 4 Register function for right soft key */
  1648.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1649.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1650.     SetKeyHandler(EntryScrProfilesPoweroffToneSetup, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1651. }
  1652. /*****************************************************************************
  1653.  * FUNCTION
  1654.  *  HighlightProfilesMessageToneSetup
  1655.  * DESCRIPTION
  1656.  *  Highlight profile Message Tone Setup menu item
  1657.  * PARAMETERS
  1658.  *  void
  1659.  * RETURNS
  1660.  *  void
  1661.  *****************************************************************************/
  1662. void HighlightProfilesMessageToneSetup(void)
  1663. {
  1664.     /*----------------------------------------------------------------*/
  1665.     /* Local Variables                                                */
  1666.     /*----------------------------------------------------------------*/
  1667.     /*----------------------------------------------------------------*/
  1668.     /* Code Body                                                      */
  1669.     /*----------------------------------------------------------------*/
  1670.     /* 1 Change left soft key icon and label */
  1671.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1672.     /* 2 Change right soft key icon and label */
  1673.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1674.     /* 3 Register function for left soft key */
  1675.     SetLeftSoftkeyFunction(EntryScrProfilesMessageToneSetup, KEY_EVENT_UP);
  1676.     /* 4 Register function for right soft key */
  1677.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1678.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1679.     SetKeyHandler(EntryScrProfilesMessageToneSetup, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1680. }
  1681. /*****************************************************************************
  1682.  * FUNCTION
  1683.  *  HighlightProfilesKeypadToneSetup
  1684.  * DESCRIPTION
  1685.  *  Highlight profile Keypad Tone Setup menu item
  1686.  * PARAMETERS
  1687.  *  void
  1688.  * RETURNS
  1689.  *  void
  1690.  *****************************************************************************/
  1691. void HighlightProfilesKeypadToneSetup(void)
  1692. {
  1693.     /*----------------------------------------------------------------*/
  1694.     /* Local Variables                                                */
  1695.     /*----------------------------------------------------------------*/
  1696.     /*----------------------------------------------------------------*/
  1697.     /* Code Body                                                      */
  1698.     /*----------------------------------------------------------------*/
  1699.     /* 1 Change left soft key icon and label */
  1700.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1701.     /* 2 Change right soft key icon and label */
  1702.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1703.     /* 3 Register function for left soft key */
  1704.     SetLeftSoftkeyFunction(EntryScrProfilesKeypadToneSetup, KEY_EVENT_UP);
  1705.     /* 4 Register function for right soft key */
  1706.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1707.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1708.     SetKeyHandler(EntryScrProfilesKeypadToneSetup, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1709. }
  1710. #ifndef __MMI_ALM_CUSTOMIZE_TONE__
  1711. /*****************************************************************************
  1712.  * FUNCTION
  1713.  *  HighlightAlarmToneSetup
  1714.  * DESCRIPTION
  1715.  *  Highlight profile Alarm Tone Setup menu item
  1716.  * PARAMETERS
  1717.  *  void
  1718.  * RETURNS
  1719.  *  void
  1720.  *****************************************************************************/
  1721. void HighlightAlarmToneSetup(void)
  1722. {
  1723.     /*----------------------------------------------------------------*/
  1724.     /* Local Variables                                                */
  1725.     /*----------------------------------------------------------------*/
  1726.     /*----------------------------------------------------------------*/
  1727.     /* Code Body                                                      */
  1728.     /*----------------------------------------------------------------*/
  1729.     /* 1 Change left soft key icon and label */
  1730.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1731.     /* 2 Change right soft key icon and label */
  1732.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1733.     /* 3 Register function for left soft key */
  1734.     SetLeftSoftkeyFunction(EntryScrProfilesAlarmToneSetup, KEY_EVENT_UP);
  1735.     /* 4 Register function for right soft key */
  1736.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1737.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1738.     SetKeyHandler(EntryScrProfilesAlarmToneSetup, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1739. }
  1740. #endif /* __MMI_ALM_CUSTOMIZE_TONE__ */ 
  1741. /*****************************************************************************
  1742.  * FUNCTION
  1743.  *  HighlightExtraToneSetup
  1744.  * DESCRIPTION
  1745.  *  Highlight profile Extra Tone Setup menu item
  1746.  * PARAMETERS
  1747.  *  void
  1748.  * RETURNS
  1749.  *  void
  1750.  *****************************************************************************/
  1751. void HighlightExtraToneSetup(void)
  1752. {
  1753.     /*----------------------------------------------------------------*/
  1754.     /* Local Variables                                                */
  1755.     /*----------------------------------------------------------------*/
  1756.     /*----------------------------------------------------------------*/
  1757.     /* Code Body                                                      */
  1758.     /*----------------------------------------------------------------*/
  1759.     /* 1 Change left soft key icon and label */
  1760.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1761.     /* 2 Change right soft key icon and label */
  1762.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1763.     /* 3 Register function for left soft key */
  1764.     SetLeftSoftkeyFunction(EntryScrProfilesExtraToneSetup, KEY_EVENT_UP);
  1765.     /* 4 Register function for right soft key */
  1766.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1767.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1768.     SetKeyHandler(EntryScrProfilesExtraToneSetup, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1769. }
  1770. /*****************************************************************************
  1771.  * FUNCTION
  1772.  *  HighlightRingToneVolume
  1773.  * DESCRIPTION
  1774.  *  Adjust Ring Tone Volume
  1775.  * PARAMETERS
  1776.  *  void
  1777.  * RETURNS
  1778.  *  void
  1779.  *****************************************************************************/
  1780. void HighlightRingToneVolume(void)
  1781. {
  1782.     /*----------------------------------------------------------------*/
  1783.     /* Local Variables                                                */
  1784.     /*----------------------------------------------------------------*/
  1785.     /*----------------------------------------------------------------*/
  1786.     /* Code Body                                                      */
  1787.     /*----------------------------------------------------------------*/
  1788.     /* PMT SUKRIT START 20051226 */
  1789. #ifdef __MMI_PROFILES_TWO_LINE_MENUITEM_DISPLAY__
  1790.     if (!is_level_select_menuitem_displayed_in_volume_screen)
  1791.     {
  1792. #endif /* __MMI_PROFILES_TWO_LINE_MENUITEM_DISPLAY__ */ 
  1793.         /* 1 Change left soft key icon and label */
  1794.         ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1795.         /* 2 Change right soft key icon and label */
  1796.         ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1797.         /* 3 Register function for left soft key */
  1798.         SetLeftSoftkeyFunction(EntryScrProfilesCommonVolumeLevel1, KEY_EVENT_UP);
  1799.         /* 4 Register function for right soft key */
  1800.         SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1801.         SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1802.         SetKeyHandler(EntryScrProfilesCommonVolumeLevel1, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1803.         gcommonvolumehandler = 0;
  1804.     #ifdef __MMI_PROFILES_TWO_LINE_MENUITEM_DISPLAY__
  1805.     }
  1806.     else
  1807.     {
  1808.         ChangeLeftSoftkey(0, 0);
  1809.         SetRingerVolume(default_value_ring_volume);
  1810.         mdi_audio_stop_all();   /* use stop all because it might be play file or play id */
  1811.         AudioPlayToneWithCallBackVolPath(
  1812.             gprofiles[gprofileId].toneSetup.ringTone,
  1813.             REPEAT,
  1814.             INCOMING_CALL_TONE,
  1815.             (U8) default_value_ring_volume,
  1816.             MDI_DEVICE_SPEAKER2);
  1817.         mmi_profiles_set_ring_tone_playing(TRUE);
  1818.         /* MTK Brian added for play ring tone after MT message, 2003/11/10 */
  1819.         SetProtocolEventHandler(ContinueRingTone_TwoLine, PRT_EQ_PLAY_AUDIO_FINISH_IND);
  1820.         SetLeftSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1821.         SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1822.     }
  1823.     #endif /* __MMI_PROFILES_TWO_LINE_MENUITEM_DISPLAY__ */ 
  1824.     /* PMT SUKRIT START 20051226 */
  1825. }
  1826. /*****************************************************************************
  1827.  * FUNCTION
  1828.  *  HighlightKeyToneVolume
  1829.  * DESCRIPTION
  1830.  *  Adjust KeyPad Tone Volume
  1831.  * PARAMETERS
  1832.  *  void
  1833.  * RETURNS
  1834.  *  void
  1835.  *****************************************************************************/
  1836. void HighlightKeyToneVolume(void)
  1837. {
  1838.     /*----------------------------------------------------------------*/
  1839.     /* Local Variables                                                */
  1840.     /*----------------------------------------------------------------*/
  1841.     /*----------------------------------------------------------------*/
  1842.     /* Code Body                                                      */
  1843.     /*----------------------------------------------------------------*/
  1844.     /* PMT SUKRIT START 20051226 */
  1845. #ifdef __MMI_PROFILES_TWO_LINE_MENUITEM_DISPLAY__
  1846.     if (!is_level_select_menuitem_displayed_in_volume_screen)
  1847.     {
  1848. #endif /* __MMI_PROFILES_TWO_LINE_MENUITEM_DISPLAY__ */ 
  1849.         /* 1 Change left soft key icon and label */
  1850.         ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1851.         /* 2 Change right soft key icon and label */
  1852.         ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1853.         /* 3 Register function for left soft key */
  1854.         SetLeftSoftkeyFunction(EntryScrProfilesCommonVolumeLevel1, KEY_EVENT_UP);
  1855.         /* 4 Register function for right soft key */
  1856.         SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1857.         SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1858.         SetKeyHandler(EntryScrProfilesCommonVolumeLevel1, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1859.         gcommonvolumehandler = 1;
  1860.     #ifdef __MMI_PROFILES_TWO_LINE_MENUITEM_DISPLAY__
  1861.     }
  1862.     else
  1863.     {
  1864.         ChangeLeftSoftkey(0, 0);
  1865.         SetKeyPadVolume(default_value_keypad_volume);
  1866.         AudioStopReq((U16) gprofiles[gprofileId].toneSetup.keypadTone);
  1867.         SetLeftSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1868.         SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1869.     }
  1870.     #endif /* __MMI_PROFILES_TWO_LINE_MENUITEM_DISPLAY__ */ 
  1871.     /* PMT SUKRIT END 20051226 */
  1872. }
  1873. /*****************************************************************************
  1874.  * FUNCTION
  1875.  *  HighlightCallAlertRing
  1876.  * DESCRIPTION
  1877.  *  Set Call Alert as Ring
  1878.  * PARAMETERS
  1879.  *  void
  1880.  * RETURNS
  1881.  *  void
  1882.  *****************************************************************************/
  1883. void HighlightCallAlertRing(void)
  1884. {
  1885.     /*----------------------------------------------------------------*/
  1886.     /* Local Variables                                                */
  1887.     /*----------------------------------------------------------------*/
  1888.     /*----------------------------------------------------------------*/
  1889.     /* Code Body                                                      */
  1890.     /*----------------------------------------------------------------*/
  1891.     /* 1 Change left soft key icon and label */
  1892.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1893.     /* 2 Change right soft key icon and label */
  1894.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1895.     /* 9.Register function with right softkey */
  1896.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1897.     SetLeftSoftkeyFunction(SetMtCallAlertRing, KEY_EVENT_UP);
  1898.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1899. }
  1900. /*****************************************************************************
  1901.  * FUNCTION
  1902.  *  HighlightCalAlertVibrationOnly
  1903.  * DESCRIPTION
  1904.  *  Set Call Alert as Vibration Only
  1905.  * PARAMETERS
  1906.  *  void
  1907.  * RETURNS
  1908.  *  void
  1909.  *****************************************************************************/
  1910. void HighlightCalAlertVibrationOnly(void)
  1911. {
  1912.     /*----------------------------------------------------------------*/
  1913.     /* Local Variables                                                */
  1914.     /*----------------------------------------------------------------*/
  1915.     /*----------------------------------------------------------------*/
  1916.     /* Code Body                                                      */
  1917.     /*----------------------------------------------------------------*/
  1918.     /* 1 Change left soft key icon and label */
  1919.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1920.     /* 2 Change right soft key icon and label */
  1921.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1922.     /* 9.Register function with right softkey */
  1923.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1924.     SetLeftSoftkeyFunction(SetMtCallAlertVibrationOnly, KEY_EVENT_UP);
  1925.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1926. }
  1927. /*****************************************************************************
  1928.  * FUNCTION
  1929.  *  HighlightCallAlertVibrationAndRing
  1930.  * DESCRIPTION
  1931.  *  Set Call Alert as Vibration and Ring
  1932.  * PARAMETERS
  1933.  *  void
  1934.  * RETURNS
  1935.  *  void
  1936.  *****************************************************************************/
  1937. void HighlightCallAlertVibrationAndRing(void)
  1938. {
  1939.     /*----------------------------------------------------------------*/
  1940.     /* Local Variables                                                */
  1941.     /*----------------------------------------------------------------*/
  1942.     /*----------------------------------------------------------------*/
  1943.     /* Code Body                                                      */
  1944.     /*----------------------------------------------------------------*/
  1945.     /* 1 Change left soft key icon and label */
  1946.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1947.     /* 2 Change right soft key icon and label */
  1948.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1949.     /* 9.Register function with right softkey */
  1950.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1951.     SetLeftSoftkeyFunction(SetMtCallAlertVibrationAndRing, KEY_EVENT_UP);
  1952.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1953. }
  1954. /*****************************************************************************
  1955.  * FUNCTION
  1956.  *  HighlightCallAlertVibrationThenRing
  1957.  * DESCRIPTION
  1958.  *  Set Call Alert as Vibration then Ring
  1959.  * PARAMETERS
  1960.  *  void
  1961.  * RETURNS
  1962.  *  void
  1963.  *****************************************************************************/
  1964. void HighlightCallAlertVibrationThenRing(void)
  1965. {
  1966.     /*----------------------------------------------------------------*/
  1967.     /* Local Variables                                                */
  1968.     /*----------------------------------------------------------------*/
  1969.     /*----------------------------------------------------------------*/
  1970.     /* Code Body                                                      */
  1971.     /*----------------------------------------------------------------*/
  1972.     /* 1 Change left soft key icon and label */
  1973.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1974.     /* 2 Change right soft key icon and label */
  1975.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1976.     /* 9.Register function with right softkey */
  1977.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1978.     SetLeftSoftkeyFunction(SetMtCallAlertVibrationThenRing, KEY_EVENT_UP);
  1979.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1980. }
  1981. /*****************************************************************************
  1982.  * FUNCTION
  1983.  *  HighlightCallAlertSilent
  1984.  * DESCRIPTION
  1985.  *  Set Call Alert as Silent
  1986.  * PARAMETERS
  1987.  *  void
  1988.  * RETURNS
  1989.  *  void
  1990.  *****************************************************************************/
  1991. void HighlightCallAlertSilent(void)
  1992. {
  1993.     /*----------------------------------------------------------------*/
  1994.     /* Local Variables                                                */
  1995.     /*----------------------------------------------------------------*/
  1996.     /*----------------------------------------------------------------*/
  1997.     /* Code Body                                                      */
  1998.     /*----------------------------------------------------------------*/
  1999.     /* 1 Change left soft key icon and label */
  2000.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2001.     /* 2 Change right soft key icon and label */
  2002.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2003.     /* 9.Register function with right softkey */
  2004.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2005.     SetLeftSoftkeyFunction(SetMtCallAlertSilent, KEY_EVENT_UP);
  2006.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2007. }
  2008. /*****************************************************************************
  2009.  * FUNCTION
  2010.  *  HighlightRingTypeSingle
  2011.  * DESCRIPTION
  2012.  *  Highlight Ring type Single
  2013.  * PARAMETERS
  2014.  *  void
  2015.  * RETURNS
  2016.  *  void
  2017.  *****************************************************************************/
  2018. void HighlightRingTypeSingle(void)
  2019. {
  2020.     /*----------------------------------------------------------------*/
  2021.     /* Local Variables                                                */
  2022.     /*----------------------------------------------------------------*/
  2023.     /*----------------------------------------------------------------*/
  2024.     /* Code Body                                                      */
  2025.     /*----------------------------------------------------------------*/
  2026.     /* 1 Change left soft key icon and label */
  2027.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2028.     /* 2 Change right soft key icon and label */
  2029.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2030.     /* 9.Register function with right softkey */
  2031.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2032.     SetLeftSoftkeyFunction(SetRingTypeSingle, KEY_EVENT_UP);
  2033.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2034. }
  2035. /*****************************************************************************
  2036.  * FUNCTION
  2037.  *  HighlightRingTypeRepeat
  2038.  * DESCRIPTION
  2039.  *  Highlight Ring type Repeat
  2040.  * PARAMETERS
  2041.  *  void
  2042.  * RETURNS
  2043.  *  void
  2044.  *****************************************************************************/
  2045. void HighlightRingTypeRepeat(void)
  2046. {
  2047.     /*----------------------------------------------------------------*/
  2048.     /* Local Variables                                                */
  2049.     /*----------------------------------------------------------------*/
  2050.     /*----------------------------------------------------------------*/
  2051.     /* Code Body                                                      */
  2052.     /*----------------------------------------------------------------*/
  2053.     /* 1 Change left soft key icon and label */
  2054.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2055.     /* 2 Change right soft key icon and label */
  2056.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2057.     /* 9.Register function with right softkey */
  2058.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2059.     SetLeftSoftkeyFunction(SetRingTypeRepeat, KEY_EVENT_UP);
  2060.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2061. }
  2062. /*****************************************************************************
  2063.  * FUNCTION
  2064.  *  HighlightRingTypeAscending
  2065.  * DESCRIPTION
  2066.  *  Highlight Ring type Ascending
  2067.  * PARAMETERS
  2068.  *  void
  2069.  * RETURNS
  2070.  *  void
  2071.  *****************************************************************************/
  2072. void HighlightRingTypeAscending(void)
  2073. {
  2074.     /*----------------------------------------------------------------*/
  2075.     /* Local Variables                                                */
  2076.     /*----------------------------------------------------------------*/
  2077.     /*----------------------------------------------------------------*/
  2078.     /* Code Body                                                      */
  2079.     /*----------------------------------------------------------------*/
  2080.     /* 1 Change left soft key icon and label */
  2081.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2082.     /* 2 Change right soft key icon and label */
  2083.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2084.     /* 9.Register function with right softkey */
  2085.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2086.     SetLeftSoftkeyFunction(SetRingTypeAscending, KEY_EVENT_UP);
  2087.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2088. }
  2089. /*****************************************************************************
  2090.  * FUNCTION
  2091.  *  HighlightKeyPadToneSilent
  2092.  * DESCRIPTION
  2093.  *  Highlight Keypad Tone Silent
  2094.  * PARAMETERS
  2095.  *  void
  2096.  * RETURNS
  2097.  *  void
  2098.  *****************************************************************************/
  2099. void HighlightKeyPadToneSilent(void)
  2100. {
  2101.     /*----------------------------------------------------------------*/
  2102.     /* Local Variables                                                */
  2103.     /*----------------------------------------------------------------*/
  2104.     /*----------------------------------------------------------------*/
  2105.     /* Code Body                                                      */
  2106.     /*----------------------------------------------------------------*/
  2107.     /* 1 Change left soft key icon and label */
  2108.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2109.     /* 2 Change right soft key icon and label */
  2110.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2111.     /* 9.Register function with right softkey */
  2112.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2113.     /* 10.Register function with Left softkey */
  2114.     SetLeftSoftkeyFunction(SetKeyPadToneSilent, KEY_EVENT_UP);
  2115.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2116. }
  2117. /*****************************************************************************
  2118.  * FUNCTION
  2119.  *  HighlightKeyPadToneClick
  2120.  * DESCRIPTION
  2121.  *  Highlight Keypad Tone Click
  2122.  * PARAMETERS
  2123.  *  void
  2124.  * RETURNS
  2125.  *  void
  2126.  *****************************************************************************/
  2127. void HighlightKeyPadToneClick(void)
  2128. {
  2129.     /*----------------------------------------------------------------*/
  2130.     /* Local Variables                                                */
  2131.     /*----------------------------------------------------------------*/
  2132.     /*----------------------------------------------------------------*/
  2133.     /* Code Body                                                      */
  2134.     /*----------------------------------------------------------------*/
  2135.     /* 1 Change left soft key icon and label */
  2136.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2137.     /* 2 Change right soft key icon and label */
  2138.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2139.     /* 9.Register function with right softkey */
  2140.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2141.     /* 10.Register function with Left softkey */
  2142.     SetLeftSoftkeyFunction(SetKeyPadToneClick, KEY_EVENT_UP);
  2143.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2144. }
  2145. /*****************************************************************************
  2146.  * FUNCTION
  2147.  *  HighlightKeyPadToneTone
  2148.  * DESCRIPTION
  2149.  *  Highlight Keypad Tone as Tone
  2150.  * PARAMETERS
  2151.  *  void
  2152.  * RETURNS
  2153.  *  void
  2154.  *****************************************************************************/
  2155. void HighlightKeyPadToneTone(void)
  2156. {
  2157.     /*----------------------------------------------------------------*/
  2158.     /* Local Variables                                                */
  2159.     /*----------------------------------------------------------------*/
  2160.     /*----------------------------------------------------------------*/
  2161.     /* Code Body                                                      */
  2162.     /*----------------------------------------------------------------*/
  2163.     /* 1 Change left soft key icon and label */
  2164.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2165.     /* 2 Change right soft key icon and label */
  2166.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2167.     /* 9.Register function with right softkey */
  2168.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2169.     /* 10.Register function with Left softkey */
  2170.     SetLeftSoftkeyFunction(SetKeyPadToneTone, KEY_EVENT_UP);
  2171.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2172. }
  2173. #if defined(__MMI_HUMAN_VOICE_KEYPAD_TONE__)
  2174. /*****************************************************************************
  2175.  * FUNCTION
  2176.  *  HighlightKeyPadToneHumanVoice1
  2177.  * DESCRIPTION
  2178.  *  
  2179.  * PARAMETERS
  2180.  *  void
  2181.  * RETURNS
  2182.  *  void
  2183.  *****************************************************************************/
  2184. void HighlightKeyPadToneHumanVoice1(void)
  2185. {
  2186.     /*----------------------------------------------------------------*/
  2187.     /* Local Variables                                                */
  2188.     /*----------------------------------------------------------------*/
  2189.     /*----------------------------------------------------------------*/
  2190.     /* Code Body                                                      */
  2191.     /*----------------------------------------------------------------*/
  2192.     /* 1 Change left soft key icon and label */
  2193.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2194.     /* 2 Change right soft key icon and label */
  2195.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2196.     /* 9.Register function with right softkey */
  2197.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2198.     /* 10.Register function with Left softkey */
  2199.     SetLeftSoftkeyFunction(SetKeyPadToneHumanVoice1, KEY_EVENT_UP);
  2200.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2201. }
  2202. /*****************************************************************************
  2203.  * FUNCTION
  2204.  *  HighlightKeyPadToneHumanVoice2
  2205.  * DESCRIPTION
  2206.  *  
  2207.  * PARAMETERS
  2208.  *  void
  2209.  * RETURNS
  2210.  *  void
  2211.  *****************************************************************************/
  2212. void HighlightKeyPadToneHumanVoice2(void)
  2213. {
  2214.     /*----------------------------------------------------------------*/
  2215.     /* Local Variables                                                */
  2216.     /*----------------------------------------------------------------*/
  2217.     /*----------------------------------------------------------------*/
  2218.     /* Code Body                                                      */
  2219.     /*----------------------------------------------------------------*/
  2220.     /* 1 Change left soft key icon and label */
  2221.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2222.     /* 2 Change right soft key icon and label */
  2223.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2224.     /* 9.Register function with right softkey */
  2225.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2226.     /* 10.Register function with Left softkey */
  2227.     SetLeftSoftkeyFunction(SetKeyPadToneHumanVoice2, KEY_EVENT_UP);
  2228.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2229. }
  2230. /*****************************************************************************
  2231.  * FUNCTION
  2232.  *  HighlightKeyPadToneHumanVoice3
  2233.  * DESCRIPTION
  2234.  *  
  2235.  * PARAMETERS
  2236.  *  void
  2237.  * RETURNS
  2238.  *  void
  2239.  *****************************************************************************/
  2240. void HighlightKeyPadToneHumanVoice3(void)
  2241. {
  2242.     /*----------------------------------------------------------------*/
  2243.     /* Local Variables                                                */
  2244.     /*----------------------------------------------------------------*/
  2245.     /*----------------------------------------------------------------*/
  2246.     /* Code Body                                                      */
  2247.     /*----------------------------------------------------------------*/
  2248.     /* 1 Change left soft key icon and label */
  2249.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2250.     /* 2 Change right soft key icon and label */
  2251.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2252.     /* 9.Register function with right softkey */
  2253.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2254.     /* 10.Register function with Left softkey */
  2255.     SetLeftSoftkeyFunction(SetKeyPadToneHumanVoice3, KEY_EVENT_UP);
  2256.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2257. }
  2258. /*****************************************************************************
  2259.  * FUNCTION
  2260.  *  HighlightKeyPadToneHumanVoice4
  2261.  * DESCRIPTION
  2262.  *  
  2263.  * PARAMETERS
  2264.  *  void
  2265.  * RETURNS
  2266.  *  void
  2267.  *****************************************************************************/
  2268. void HighlightKeyPadToneHumanVoice4(void)
  2269. {
  2270.     /*----------------------------------------------------------------*/
  2271.     /* Local Variables                                                */
  2272.     /*----------------------------------------------------------------*/
  2273.     /*----------------------------------------------------------------*/
  2274.     /* Code Body                                                      */
  2275.     /*----------------------------------------------------------------*/
  2276.     /* 1 Change left soft key icon and label */
  2277.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2278.     /* 2 Change right soft key icon and label */
  2279.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2280.     /* 9.Register function with right softkey */
  2281.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2282.     /* 10.Register function with Left softkey */
  2283.     SetLeftSoftkeyFunction(SetKeyPadToneHumanVoice4, KEY_EVENT_UP);
  2284.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2285. }
  2286. /*****************************************************************************
  2287.  * FUNCTION
  2288.  *  HighlightKeyPadToneHumanVoice5
  2289.  * DESCRIPTION
  2290.  *  
  2291.  * PARAMETERS
  2292.  *  void
  2293.  * RETURNS
  2294.  *  void
  2295.  *****************************************************************************/
  2296. void HighlightKeyPadToneHumanVoice5(void)
  2297. {
  2298.     /*----------------------------------------------------------------*/
  2299.     /* Local Variables                                                */
  2300.     /*----------------------------------------------------------------*/
  2301.     /*----------------------------------------------------------------*/
  2302.     /* Code Body                                                      */
  2303.     /*----------------------------------------------------------------*/
  2304.     /* 1 Change left soft key icon and label */
  2305.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2306.     /* 2 Change right soft key icon and label */
  2307.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2308.     /* 9.Register function with right softkey */
  2309.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2310.     /* 10.Register function with Left softkey */
  2311.     SetLeftSoftkeyFunction(SetKeyPadToneHumanVoice5, KEY_EVENT_UP);
  2312.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2313. }
  2314. /*****************************************************************************
  2315.  * FUNCTION
  2316.  *  HighlightKeyPadToneHumanVoice6
  2317.  * DESCRIPTION
  2318.  *  
  2319.  * PARAMETERS
  2320.  *  void
  2321.  * RETURNS
  2322.  *  void
  2323.  *****************************************************************************/
  2324. void HighlightKeyPadToneHumanVoice6(void)
  2325. {
  2326.     /*----------------------------------------------------------------*/
  2327.     /* Local Variables                                                */
  2328.     /*----------------------------------------------------------------*/
  2329.     /*----------------------------------------------------------------*/
  2330.     /* Code Body                                                      */
  2331.     /*----------------------------------------------------------------*/
  2332.     /* 1 Change left soft key icon and label */
  2333.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2334.     /* 2 Change right soft key icon and label */
  2335.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2336.     /* 9.Register function with right softkey */
  2337.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2338.     /* 10.Register function with Left softkey */
  2339.     SetLeftSoftkeyFunction(SetKeyPadToneHumanVoice6, KEY_EVENT_UP);
  2340.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2341. }
  2342. #endif /* defined(__MMI_HUMAN_VOICE_KEYPAD_TONE__) */ 
  2343. #if defined(__MMI_CUST_KEYPAD_TONE__)
  2344. /*****************************************************************************
  2345.  * FUNCTION
  2346.  *  HighlightKeyPadToneCust1
  2347.  * DESCRIPTION
  2348.  *  
  2349.  * PARAMETERS
  2350.  *  void
  2351.  * RETURNS
  2352.  *  void
  2353.  *****************************************************************************/
  2354. void HighlightKeyPadToneCust1(void)
  2355. {
  2356.     /*----------------------------------------------------------------*/
  2357.     /* Local Variables                                                */
  2358.     /*----------------------------------------------------------------*/
  2359.     /*----------------------------------------------------------------*/
  2360.     /* Code Body                                                      */
  2361.     /*----------------------------------------------------------------*/
  2362.     /* 1 Change left soft key icon and label */
  2363.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2364.     /* 2 Change right soft key icon and label */
  2365.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2366.     /* 9.Register function with right softkey */
  2367.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2368.     /* 10.Register function with Left softkey */
  2369.     SetLeftSoftkeyFunction(SetKeyPadToneCust1, KEY_EVENT_UP);
  2370.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2371. }
  2372. /*****************************************************************************
  2373.  * FUNCTION
  2374.  *  HighlightKeyPadToneCust2
  2375.  * DESCRIPTION
  2376.  *  
  2377.  * PARAMETERS
  2378.  *  void
  2379.  * RETURNS
  2380.  *  void
  2381.  *****************************************************************************/
  2382. void HighlightKeyPadToneCust2(void)
  2383. {
  2384.     /*----------------------------------------------------------------*/
  2385.     /* Local Variables                                                */
  2386.     /*----------------------------------------------------------------*/
  2387.     /*----------------------------------------------------------------*/
  2388.     /* Code Body                                                      */
  2389.     /*----------------------------------------------------------------*/
  2390.     /* 1 Change left soft key icon and label */
  2391.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2392.     /* 2 Change right soft key icon and label */
  2393.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2394.     /* 9.Register function with right softkey */
  2395.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2396.     /* 10.Register function with Left softkey */
  2397.     SetLeftSoftkeyFunction(SetKeyPadToneCust2, KEY_EVENT_UP);
  2398.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2399. }
  2400. /*****************************************************************************
  2401.  * FUNCTION
  2402.  *  HighlightKeyPadToneCust3
  2403.  * DESCRIPTION
  2404.  *  
  2405.  * PARAMETERS
  2406.  *  void
  2407.  * RETURNS
  2408.  *  void
  2409.  *****************************************************************************/
  2410. void HighlightKeyPadToneCust3(void)
  2411. {
  2412.     /*----------------------------------------------------------------*/
  2413.     /* Local Variables                                                */
  2414.     /*----------------------------------------------------------------*/
  2415.     /*----------------------------------------------------------------*/
  2416.     /* Code Body                                                      */
  2417.     /*----------------------------------------------------------------*/
  2418.     /* 1 Change left soft key icon and label */
  2419.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2420.     /* 2 Change right soft key icon and label */
  2421.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2422.     /* 9.Register function with right softkey */
  2423.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2424.     /* 10.Register function with Left softkey */
  2425.     SetLeftSoftkeyFunction(SetKeyPadToneCust3, KEY_EVENT_UP);
  2426.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2427. }
  2428. /*****************************************************************************
  2429.  * FUNCTION
  2430.  *  HighlightKeyPadToneCust4
  2431.  * DESCRIPTION
  2432.  *  
  2433.  * PARAMETERS
  2434.  *  void
  2435.  * RETURNS
  2436.  *  void
  2437.  *****************************************************************************/
  2438. void HighlightKeyPadToneCust4(void)
  2439. {
  2440.     /*----------------------------------------------------------------*/
  2441.     /* Local Variables                                                */
  2442.     /*----------------------------------------------------------------*/
  2443.     /*----------------------------------------------------------------*/
  2444.     /* Code Body                                                      */
  2445.     /*----------------------------------------------------------------*/
  2446.     /* 1 Change left soft key icon and label */
  2447.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2448.     /* 2 Change right soft key icon and label */
  2449.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2450.     /* 9.Register function with right softkey */
  2451.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2452.     /* 10.Register function with Left softkey */
  2453.     SetLeftSoftkeyFunction(SetKeyPadToneCust4, KEY_EVENT_UP);
  2454.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2455. }
  2456. /*****************************************************************************
  2457.  * FUNCTION
  2458.  *  HighlightKeyPadToneCust5
  2459.  * DESCRIPTION
  2460.  *  
  2461.  * PARAMETERS
  2462.  *  void
  2463.  * RETURNS
  2464.  *  void
  2465.  *****************************************************************************/
  2466. void HighlightKeyPadToneCust5(void)
  2467. {
  2468.     /*----------------------------------------------------------------*/
  2469.     /* Local Variables                                                */
  2470.     /*----------------------------------------------------------------*/
  2471.     /*----------------------------------------------------------------*/
  2472.     /* Code Body                                                      */
  2473.     /*----------------------------------------------------------------*/
  2474.     /* 1 Change left soft key icon and label */
  2475.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2476.     /* 2 Change right soft key icon and label */
  2477.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2478.     /* 9.Register function with right softkey */
  2479.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2480.     /* 10.Register function with Left softkey */
  2481.     SetLeftSoftkeyFunction(SetKeyPadToneCust5, KEY_EVENT_UP);
  2482.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2483. }
  2484. /*****************************************************************************
  2485.  * FUNCTION
  2486.  *  HighlightKeyPadToneCust6
  2487.  * DESCRIPTION
  2488.  *  
  2489.  * PARAMETERS
  2490.  *  void
  2491.  * RETURNS
  2492.  *  void
  2493.  *****************************************************************************/
  2494. void HighlightKeyPadToneCust6(void)
  2495. {
  2496.     /*----------------------------------------------------------------*/
  2497.     /* Local Variables                                                */
  2498.     /*----------------------------------------------------------------*/
  2499.     /*----------------------------------------------------------------*/
  2500.     /* Code Body                                                      */
  2501.     /*----------------------------------------------------------------*/
  2502.     /* 1 Change left soft key icon and label */
  2503.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2504.     /* 2 Change right soft key icon and label */
  2505.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2506.     /* 9.Register function with right softkey */
  2507.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2508.     /* 10.Register function with Left softkey */
  2509.     SetLeftSoftkeyFunction(SetKeyPadToneCust6, KEY_EVENT_UP);
  2510.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2511. }
  2512. #endif /* defined(__MMI_CUST_KEYPAD_TONE__) */ 
  2513. #ifdef __MMI_CONNECT_NOTICE__
  2514. /*****************************************************************************
  2515.  * FUNCTION
  2516.  *  HighlightProfilesConnectNotice
  2517.  * DESCRIPTION
  2518.  *  Highlight profile Call Alert menu item
  2519.  * PARAMETERS
  2520.  *  void
  2521.  * RETURNS
  2522.  *  void
  2523.  *****************************************************************************/
  2524. void HighlightProfilesConnectNotice(void)
  2525. {
  2526.     /*----------------------------------------------------------------*/
  2527.     /* Local Variables                                                */
  2528.     /*----------------------------------------------------------------*/
  2529.     /*----------------------------------------------------------------*/
  2530.     /* Code Body                                                      */
  2531.     /*----------------------------------------------------------------*/
  2532.     /* 1 Change left soft key icon and label */
  2533.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2534.     /* 2 Change right soft key icon and label */
  2535.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2536.     /* 3 Register function for left soft key */
  2537.     SetLeftSoftkeyFunction(EntryScrProfilesConnectNotice, KEY_EVENT_UP);
  2538.     /* 4 Register function for right soft key */
  2539.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2540.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2541.     SetKeyHandler(EntryScrProfilesConnectNotice, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  2542. }
  2543. /*****************************************************************************
  2544.  * FUNCTION
  2545.  *  HighlightConnectNoticeNone
  2546.  * DESCRIPTION
  2547.  *  Highlight Connect Notice None
  2548.  * PARAMETERS
  2549.  *  void
  2550.  * RETURNS
  2551.  *  void
  2552.  *****************************************************************************/
  2553. void HighlightConnectNoticeNone(void)
  2554. {
  2555.     /*----------------------------------------------------------------*/
  2556.     /* Local Variables                                                */
  2557.     /*----------------------------------------------------------------*/
  2558.     /*----------------------------------------------------------------*/
  2559.     /* Code Body                                                      */
  2560.     /*----------------------------------------------------------------*/
  2561.     /* 1 Change left soft key icon and label */
  2562.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2563.     /* 2 Change right soft key icon and label */
  2564.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2565.     /* 9.Register function with right softkey */
  2566.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2567.     /* 10.Register function with Left softkey */
  2568.     SetLeftSoftkeyFunction(SetConnectNoticeNone, KEY_EVENT_UP);
  2569.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2570. }
  2571. /*****************************************************************************
  2572.  * FUNCTION
  2573.  *  HighlightConnectNoticeToneOnly
  2574.  * DESCRIPTION
  2575.  *  Highlight Connect Notice Tone Only
  2576.  * PARAMETERS
  2577.  *  void
  2578.  * RETURNS
  2579.  *  void
  2580.  *****************************************************************************/
  2581. void HighlightConnectNoticeToneOnly(void)
  2582. {
  2583.     /*----------------------------------------------------------------*/
  2584.     /* Local Variables                                                */
  2585.     /*----------------------------------------------------------------*/
  2586.     /*----------------------------------------------------------------*/
  2587.     /* Code Body                                                      */
  2588.     /*----------------------------------------------------------------*/
  2589.     /* 1 Change left soft key icon and label */
  2590.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2591.     /* 2 Change right soft key icon and label */
  2592.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2593.     /* 9.Register function with right softkey */
  2594.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2595.     /* 10.Register function with Left softkey */
  2596.     SetLeftSoftkeyFunction(SetConnectNoticeToneOnly, KEY_EVENT_UP);
  2597.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2598. }
  2599. /*****************************************************************************
  2600.  * FUNCTION
  2601.  *  HighlightConnectNoticeVibOnly
  2602.  * DESCRIPTION
  2603.  *  Highlight Connect Notice Vib Only
  2604.  * PARAMETERS
  2605.  *  void
  2606.  * RETURNS
  2607.  *  void
  2608.  *****************************************************************************/
  2609. void HighlightConnectNoticeVibOnly(void)
  2610. {
  2611.     /*----------------------------------------------------------------*/
  2612.     /* Local Variables                                                */
  2613.     /*----------------------------------------------------------------*/
  2614.     /*----------------------------------------------------------------*/
  2615.     /* Code Body                                                      */
  2616.     /*----------------------------------------------------------------*/
  2617.     /* 1 Change left soft key icon and label */
  2618.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2619.     /* 2 Change right soft key icon and label */
  2620.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2621.     /* 9.Register function with right softkey */
  2622.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2623.     /* 10.Register function with Left softkey */
  2624.     SetLeftSoftkeyFunction(SetConnectNoticeVibOnly, KEY_EVENT_UP);
  2625.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2626. }
  2627. /*****************************************************************************
  2628.  * FUNCTION
  2629.  *  HighlightConnectNoticeToneAndVib
  2630.  * DESCRIPTION
  2631.  *  Highlight Connect Notice Tone & Vib
  2632.  * PARAMETERS
  2633.  *  void
  2634.  * RETURNS
  2635.  *  void
  2636.  *****************************************************************************/
  2637. void HighlightConnectNoticeToneAndVib(void)
  2638. {
  2639.     /*----------------------------------------------------------------*/
  2640.     /* Local Variables                                                */
  2641.     /*----------------------------------------------------------------*/
  2642.     /*----------------------------------------------------------------*/
  2643.     /* Code Body                                                      */
  2644.     /*----------------------------------------------------------------*/
  2645.     /* 1 Change left soft key icon and label */
  2646.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2647.     /* 2 Change right soft key icon and label */
  2648.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2649.     /* 9.Register function with right softkey */
  2650.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2651.     /* 10.Register function with Left softkey */
  2652.     SetLeftSoftkeyFunction(SetConnectNoticeToneAndVib, KEY_EVENT_UP);
  2653.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2654. }
  2655. #endif /* __MMI_CONNECT_NOTICE__ */ 
  2656. #if defined(__MMI_INTELLIGENT_CALL_ALERT__)
  2657. /*****************************************************************************
  2658.  * FUNCTION
  2659.  *  HighlightHandlerIntelligentCallAlert
  2660.  * DESCRIPTION
  2661.  *  HighlightHandlerIntelligentCallAlert
  2662.  * PARAMETERS
  2663.  *  void
  2664.  * RETURNS
  2665.  *  void
  2666.  *****************************************************************************/
  2667. void HighlightHandlerIntelligentCallAlert(void)
  2668. {
  2669.     /*----------------------------------------------------------------*/
  2670.     /* Local Variables                                                */
  2671.     /*----------------------------------------------------------------*/
  2672.     /*----------------------------------------------------------------*/
  2673.     /* Code Body                                                      */
  2674.     /*----------------------------------------------------------------*/
  2675.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2676.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2677.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2678.     SetLeftSoftkeyFunction(EntryScrIntelligentCallAlert, KEY_EVENT_UP);
  2679.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2680.     SetKeyHandler(EntryScrIntelligentCallAlert, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  2681. }
  2682. /*****************************************************************************
  2683.  * FUNCTION
  2684.  *  HintIntelligentCallAlert
  2685.  * DESCRIPTION
  2686.  *  HintHandlerIntelligentCallAlert
  2687.  * PARAMETERS
  2688.  *  index       [IN]        
  2689.  * RETURNS
  2690.  *  void
  2691.  *****************************************************************************/
  2692. void HintIntelligentCallAlert(U16 index)
  2693. {
  2694.     /*----------------------------------------------------------------*/
  2695.     /* Local Variables                                                */
  2696.     /*----------------------------------------------------------------*/
  2697.     U16 str_id;
  2698.     /*----------------------------------------------------------------*/
  2699.     /* Code Body                                                      */
  2700.     /*----------------------------------------------------------------*/
  2701.     memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
  2702.     if (gprofiles[gprofileId].intelligentCallAlert == MMI_INTELLIGENT_CALL_ALERT_ON)
  2703.     {
  2704.         str_id = STR_GLOBAL_ON;
  2705.     }
  2706.     else
  2707.     {
  2708.         str_id = STR_GLOBAL_OFF;
  2709.     }
  2710.     pfnUnicodeStrcpy((S8*) hintData[(index)], GetString(str_id));
  2711. }
  2712. /*****************************************************************************
  2713.  * FUNCTION
  2714.  *  HighlightHandlerIntelligentCallAlertOn
  2715.  * DESCRIPTION
  2716.  *  HighlightHandlerIntelligentCallAlertOn
  2717.  * PARAMETERS
  2718.  *  void
  2719.  * RETURNS
  2720.  *  void
  2721.  *****************************************************************************/
  2722. void HighlightHandlerIntelligentCallAlertOn(void)
  2723. {
  2724.     /*----------------------------------------------------------------*/
  2725.     /* Local Variables                                                */
  2726.     /*----------------------------------------------------------------*/
  2727.     /*----------------------------------------------------------------*/
  2728.     /* Code Body                                                      */
  2729.     /*----------------------------------------------------------------*/
  2730.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2731.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2732.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2733.     SetLeftSoftkeyFunction(SetIntelligentCallAlertOn, KEY_EVENT_UP);
  2734.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2735. }
  2736. /*****************************************************************************
  2737.  * FUNCTION
  2738.  *  HighlightHandlerIntelligentCallAlertOff
  2739.  * DESCRIPTION
  2740.  *  HighlightHandlerIntelligentCallAlertOff
  2741.  * PARAMETERS
  2742.  *  void
  2743.  * RETURNS
  2744.  *  void
  2745.  *****************************************************************************/
  2746. void HighlightHandlerIntelligentCallAlertOff(void)
  2747. {
  2748.     /*----------------------------------------------------------------*/
  2749.     /* Local Variables                                                */
  2750.     /*----------------------------------------------------------------*/
  2751.     /*----------------------------------------------------------------*/
  2752.     /* Code Body                                                      */
  2753.     /*----------------------------------------------------------------*/
  2754.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  2755.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  2756.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2757.     SetLeftSoftkeyFunction(SetIntelligentCallAlertOff, KEY_EVENT_UP);
  2758.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  2759. }
  2760. /*****************************************************************************
  2761.  * FUNCTION
  2762.  *  SetIntelligentCallAlertOn
  2763.  * DESCRIPTION
  2764.  *  SetIntelligentCallAlertOn
  2765.  * PARAMETERS
  2766.  *  void
  2767.  * RETURNS
  2768.  *  void
  2769.  *****************************************************************************/
  2770. void SetIntelligentCallAlertOn(void)
  2771. {
  2772.     /*----------------------------------------------------------------*/
  2773.     /* Local Variables                                                */
  2774.     /*----------------------------------------------------------------*/
  2775.     /*----------------------------------------------------------------*/
  2776.     /* Code Body                                                      */
  2777.     /*----------------------------------------------------------------*/
  2778.     SetIntelligentCallAert(MMI_INTELLIGENT_CALL_ALERT_ON);
  2779.     DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, UI_POPUP_NOTIFYDURATION_TIME, SUCCESS_TONE);
  2780.     DeleteScreenIfPresent(SCR_PROFILES_INTELLIGENT_CALL_ALERT);
  2781. }
  2782. /*****************************************************************************
  2783.  * FUNCTION
  2784.  *  SetIntelligentCallAlertOff
  2785.  * DESCRIPTION
  2786.  *  SetIntelligentCallAlertOff
  2787.  * PARAMETERS
  2788.  *  void
  2789.  * RETURNS
  2790.  *  void
  2791.  *****************************************************************************/
  2792. void SetIntelligentCallAlertOff(void)
  2793. {
  2794.     /*----------------------------------------------------------------*/
  2795.     /* Local Variables                                                */
  2796.     /*----------------------------------------------------------------*/
  2797.     /*----------------------------------------------------------------*/
  2798.     /* Code Body                                                      */
  2799.     /*----------------------------------------------------------------*/
  2800.     SetIntelligentCallAert(MMI_INTELLIGENT_CALL_ALERT_OFF);
  2801.     DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, UI_POPUP_NOTIFYDURATION_TIME, SUCCESS_TONE);
  2802.     DeleteScreenIfPresent(SCR_PROFILES_INTELLIGENT_CALL_ALERT);
  2803. }
  2804. #endif /* defined(__MMI_INTELLIGENT_CALL_ALERT__) */ 
  2805. /*********************End (Hilite HAndlers)*********************************************/