SettingScreenProf.c
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:477k
源码类别:
MTK
开发平台:
C/C++
- }
- else
- {
- pfnUnicodeStrcpy((PS8) hintData[(index)], (PS8) (ExtMelodyStruct->info[data].filename));
- }
- #if (!defined(__MMI_SHOW_FILE_EXT__))
- PmgRemoveFileExt((S8*) hintData[(index)]);
- #elif (!defined(__MMI_SHOW_DAF_FILE_EXT__))
- PmgRemoveFileDAFExt((S8*) hintData[(index)]);
- #endif
- selected = TRUE;
- break;
- }
- }
- #endif /* defined(__MMI_PROFILE_EXTMELODY_SUPPORT__) */
- #ifdef __MMI_DOWNLOADABLE_THEMES_SUPPORT__
- if (!selected)
- {
- DYNAUDIOINFO *download_theme_tones;
- if (GetThemeV2TonesInfo(&download_theme_tones) != 0 && mmi_tm_get_current_theme_ringtone())
- {
- if (ToneID == (U16) download_theme_tones[0].AudioId)
- {
- pfnUnicodeStrcpy((PS8) hintData[(index)], GetString((U16) STR_PROFILES_CURR_THEME));
- selected = TRUE;
- }
- }
- }
- #endif /* __MMI_DOWNLOADABLE_THEMES_SUPPORT__ */
- ASSERT(selected);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * HintHandlerPowerOffTone
- * DESCRIPTION
- * Hint handlers for Power Off Tone
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintHandlerPowerOffTone(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
- U8 AsciinStrItemList[4]; /* Stores the strings id of submenus returned */
- U8 data = 0;
- U16 ToneID;
- #ifdef __MMI_PROFILE_EXTMELODY_SUPPORT__
- DYNEXTMELODYINFO *ExtMelodyStruct;
- #endif
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ToneID = gprofiles[gprofileId].toneSetup.powerOffTone;
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- if (ToneID >= gstartGeneralToneId && ToneID < gstartGeneralToneId + gtotalGeneralToneId)
- {
- S32 len = 0;
- data = ((gprofiles[gprofileId].toneSetup.powerOffTone) - (gstartGeneralToneId));
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- sprintf((PS8) AsciinStrItemList, "%d", data + 1);
- AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
- len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
- len = MAX_SUBMENU_CHARACTERS - len;
- pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
- pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
- }
- else if(ToneID == MESSAGE_SILENT)
- {
- pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
- }
- else
- {
- BOOL selected = FALSE;
- #if defined(__MMI_PROFILE_EXTMELODY_SUPPORT__)
- POnOffPmgGetExtMelodyInfo(&ExtMelodyStruct);
- for (data = 0; data < MAXIMUM_EXT_MELODY_NUM; data++)
- {
- if (POnOffPmgIsEmptySlot(data) == MMI_FALSE && ToneID == ExtMelodyStruct->info[data].id)
- {
- if (IS_EXTMELODY_SHORTNAME(ExtMelodyStruct->info[data].filepath))
- {
- mmi_chset_mixed_text_to_ucs2_str(
- hintData[(index)],
- (FMGR_MAX_FILE_LEN + 1) * ENCODING_LENGTH,
- (U8*) ExtMelodyStruct->info[data].filename,
- g_chset_text_encoding);
- }
- else
- {
- pfnUnicodeStrcpy((PS8) hintData[(index)], (PS8) (ExtMelodyStruct->info[data].filename));
- }
- #if (!defined(__MMI_SHOW_FILE_EXT__))
- PmgRemoveFileExt((S8*) hintData[(index)]);
- #elif (!defined(__MMI_SHOW_DAF_FILE_EXT__))
- PmgRemoveFileDAFExt((S8*) hintData[(index)]);
- #endif
- selected = TRUE;
- break;
- }
- }
- #endif /* defined(__MMI_PROFILE_EXTMELODY_SUPPORT__) */
- #ifdef __MMI_DOWNLOADABLE_THEMES_SUPPORT__
- if (!selected)
- {
- DYNAUDIOINFO *download_theme_tones;
- if (GetThemeV2TonesInfo(&download_theme_tones) != 0 && mmi_tm_get_current_theme_ringtone())
- {
- if (ToneID == (U16) download_theme_tones[0].AudioId)
- {
- pfnUnicodeStrcpy((PS8) hintData[(index)], GetString((U16) STR_PROFILES_CURR_THEME));
- selected = TRUE;
- }
- }
- }
- #endif /* __MMI_DOWNLOADABLE_THEMES_SUPPORT__ */
- ASSERT(selected);
- }
- }
- #else
- //KP Jerry add for changing the style of message tone list on 2007-4-10 end
- /*****************************************************************************
- * FUNCTION
- * HintHandlerPowerOnTone
- * DESCRIPTION
- * Hint handlers for Power On Tone
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintHandlerPowerOnTone(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
- U8 AsciinStrItemList[4]; /* Stores the strings id of submenus returned */
- U8 data = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- if ((gprofiles[gprofileId].toneSetup.powerOnTone) != POWERON_SILENT)
- {
- S32 len = 0;
- data = ((gprofiles[gprofileId].toneSetup.powerOnTone) - (gstartGeneralToneId));
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- sprintf((PS8) AsciinStrItemList, "%d", data + 1);
- AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
- len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
- len = MAX_SUBMENU_CHARACTERS - len;
- pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
- pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
- }
- else
- {
- pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * HintHandlerPowerOffTone
- * DESCRIPTION
- * Hint handlers for Power Off Tone
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintHandlerPowerOffTone(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
- U8 AsciinStrItemList[4]; /* Stores the strings id of submenus returned */
- U8 data = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- if ((gprofiles[gprofileId].toneSetup.powerOffTone) != POWEROFF_SILENT)
- {
- S32 len = 0;
- data = ((gprofiles[gprofileId].toneSetup.powerOffTone) - (gstartGeneralToneId));
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- sprintf((PS8) AsciinStrItemList, "%d", data + 1);
- AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
- len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
- len = MAX_SUBMENU_CHARACTERS - len;
- pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
- pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
- }
- else
- {
- pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
- }
- }
- #endif //KP Jerry add for changing the style of message tone list on 2007-4-10
- /* MTK brian added to wrap cover open/close tone setup, 2003/10/18 */
- #ifdef __MMI_CLAMSHELL__
- //KP Jerry add for changing the style of message tone list on 2007-4-10 start
- #ifdef __MMI_TONE_LIST_STYLE_CHANGED__
- /*****************************************************************************
- * FUNCTION
- * HintHandlerCoverOpenTone
- * DESCRIPTION
- * Hint handlers for Power On Tone
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintHandlerCoverOpenTone(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
- U8 AsciinStrItemList[4]; /* Stores the strings id of submenus returned */
- U8 data = 0;
- U16 ToneID;
- #ifdef __MMI_PROFILE_EXTMELODY_SUPPORT__
- DYNEXTMELODYINFO *ExtMelodyStruct;
- #endif
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ToneID = gprofiles[gprofileId].toneSetup.coverOpenTone;
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- if (ToneID >= gstartGeneralToneId && ToneID < gstartGeneralToneId + gtotalGeneralToneId)
- {
- S32 len = 0;
- data = ((gprofiles[gprofileId].toneSetup.coverOpenTone) - (gstartGeneralToneId));
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- sprintf((PS8) AsciinStrItemList, "%d", data + 1);
- AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
- len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
- len = MAX_SUBMENU_CHARACTERS - len;
- pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
- pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
- }
- else if(ToneID == MESSAGE_SILENT)
- {
- pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
- }
- else
- {
- BOOL selected = FALSE;
- #if defined(__MMI_PROFILE_EXTMELODY_SUPPORT__)
- POnOffPmgGetExtMelodyInfo(&ExtMelodyStruct);
- for (data = 0; data < MAXIMUM_EXT_MELODY_NUM; data++)
- {
- if (POnOffPmgIsEmptySlot(data) == MMI_FALSE && ToneID == ExtMelodyStruct->info[data].id)
- {
- if (IS_EXTMELODY_SHORTNAME(ExtMelodyStruct->info[data].filepath))
- {
- mmi_chset_mixed_text_to_ucs2_str(
- hintData[(index)],
- (FMGR_MAX_FILE_LEN + 1) * ENCODING_LENGTH,
- (U8*) ExtMelodyStruct->info[data].filename,
- g_chset_text_encoding);
- }
- else
- {
- pfnUnicodeStrcpy((PS8) hintData[(index)], (PS8) (ExtMelodyStruct->info[data].filename));
- }
- #if (!defined(__MMI_SHOW_FILE_EXT__))
- PmgRemoveFileExt((S8*) hintData[(index)]);
- #elif (!defined(__MMI_SHOW_DAF_FILE_EXT__))
- PmgRemoveFileDAFExt((S8*) hintData[(index)]);
- #endif
- selected = TRUE;
- break;
- }
- }
- #endif /* defined(__MMI_PROFILE_EXTMELODY_SUPPORT__) */
- #ifdef __MMI_DOWNLOADABLE_THEMES_SUPPORT__
- if (!selected)
- {
- DYNAUDIOINFO *download_theme_tones;
- if (GetThemeV2TonesInfo(&download_theme_tones) != 0 && mmi_tm_get_current_theme_ringtone())
- {
- if (ToneID == (U16) download_theme_tones[0].AudioId)
- {
- pfnUnicodeStrcpy((PS8) hintData[(index)], GetString((U16) STR_PROFILES_CURR_THEME));
- selected = TRUE;
- }
- }
- }
- #endif /* __MMI_DOWNLOADABLE_THEMES_SUPPORT__ */
- ASSERT(selected);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * HintHandlerCoverCloseTone
- * DESCRIPTION
- * Hint handlers for Power Off Tone
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintHandlerCoverCloseTone(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
- U8 AsciinStrItemList[4]; /* Stores the strings id of submenus returned */
- U8 data = 0;
- U16 ToneID;
- #ifdef __MMI_PROFILE_EXTMELODY_SUPPORT__
- DYNEXTMELODYINFO *ExtMelodyStruct;
- #endif
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ToneID = gprofiles[gprofileId].toneSetup.coverCloseTone;
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- if (ToneID >= gstartGeneralToneId && ToneID < gstartGeneralToneId + gtotalGeneralToneId)
- {
- S32 len = 0;
- data = ((gprofiles[gprofileId].toneSetup.coverCloseTone) - (gstartGeneralToneId));
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- sprintf((PS8) AsciinStrItemList, "%d", data + 1);
- AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
- len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
- len = MAX_SUBMENU_CHARACTERS - len;
- pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
- pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
- }
- else if(ToneID == MESSAGE_SILENT)
- {
- pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
- }
- else
- {
- BOOL selected = FALSE;
- #if defined(__MMI_PROFILE_EXTMELODY_SUPPORT__)
- POnOffPmgGetExtMelodyInfo(&ExtMelodyStruct);
- for (data = 0; data < MAXIMUM_EXT_MELODY_NUM; data++)
- {
- if (POnOffPmgIsEmptySlot(data) == MMI_FALSE && ToneID == ExtMelodyStruct->info[data].id)
- {
- if (IS_EXTMELODY_SHORTNAME(ExtMelodyStruct->info[data].filepath))
- {
- mmi_chset_mixed_text_to_ucs2_str(
- hintData[(index)],
- (FMGR_MAX_FILE_LEN + 1) * ENCODING_LENGTH,
- (U8*) ExtMelodyStruct->info[data].filename,
- g_chset_text_encoding);
- }
- else
- {
- pfnUnicodeStrcpy((PS8) hintData[(index)], (PS8) (ExtMelodyStruct->info[data].filename));
- }
- #if (!defined(__MMI_SHOW_FILE_EXT__))
- PmgRemoveFileExt((S8*) hintData[(index)]);
- #elif (!defined(__MMI_SHOW_DAF_FILE_EXT__))
- PmgRemoveFileDAFExt((S8*) hintData[(index)]);
- #endif
- selected = TRUE;
- break;
- }
- }
- #endif /* defined(__MMI_PROFILE_EXTMELODY_SUPPORT__) */
- #ifdef __MMI_DOWNLOADABLE_THEMES_SUPPORT__
- if (!selected)
- {
- DYNAUDIOINFO *download_theme_tones;
- if (GetThemeV2TonesInfo(&download_theme_tones) != 0 && mmi_tm_get_current_theme_ringtone())
- {
- if (ToneID == (U16) download_theme_tones[0].AudioId)
- {
- pfnUnicodeStrcpy((PS8) hintData[(index)], GetString((U16) STR_PROFILES_CURR_THEME));
- selected = TRUE;
- }
- }
- }
- #endif /* __MMI_DOWNLOADABLE_THEMES_SUPPORT__ */
- ASSERT(selected);
- }
- }
- #else
- //KP Jerry add for changing the style of message tone list on 2007-4-10 end
- /*****************************************************************************
- * FUNCTION
- * HintHandlerCoverOpenTone
- * DESCRIPTION
- * Hint handlers for Cover Open
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintHandlerCoverOpenTone(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
- U8 AsciinStrItemList[4]; /* Stores the strings id of submenus returned */
- U8 data = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- if ((gprofiles[gprofileId].toneSetup.coverOpenTone) != COVER_OPEN_SILENT)
- {
- S32 len = 0;
- data = ((gprofiles[gprofileId].toneSetup.coverOpenTone) - (gstartGeneralToneId));
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- sprintf((PS8) AsciinStrItemList, "%d", data + 1);
- AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
- len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
- len = MAX_SUBMENU_CHARACTERS - len;
- pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
- pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
- }
- else
- {
- pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * HintHandlerCoverCloseTone
- * DESCRIPTION
- * Hint handlers for Cover Close
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintHandlerCoverCloseTone(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
- U8 AsciinStrItemList[4]; /* Stores the strings id of submenus returned */
- U8 data = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- if ((gprofiles[gprofileId].toneSetup.coverCloseTone) != COVER_CLOSE_SILENT)
- {
- S32 len = 0;
- data = ((gprofiles[gprofileId].toneSetup.coverCloseTone) - (gstartGeneralToneId));
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- sprintf((PS8) AsciinStrItemList, "%d", data + 1);
- AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
- len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
- len = MAX_SUBMENU_CHARACTERS - len;
- pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
- pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
- }
- else
- {
- pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
- }
- }
- #endif //KP Jerry add for changing the style of message tone list on 2007-4-10
- #endif /* __MMI_CLAMSHELL__ */
- /* MTK end */
- //KP Jerry add for changing the style of message tone list on 2007-4-10 start
- #ifdef __MMI_TONE_LIST_STYLE_CHANGED__
- /*****************************************************************************
- * FUNCTION
- * HintHandlerMessgaeTone
- * DESCRIPTION
- * Hint handlers for Message Tone
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintHandlerMessgaeTone(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
- U8 AsciinStrItemList[4]; /* Stores the strings id of submenus returned */
- U8 data = 0;
- U16 ToneID;
- #ifdef __MMI_PROFILE_EXTMELODY_SUPPORT__
- DYNEXTMELODYINFO *ExtMelodyStruct;
- #endif
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ToneID = gprofiles[gprofileId].toneSetup.messageTone;
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- if (ToneID >= gstartMiscToneId && ToneID < gstartMiscToneId + gtotalMiscToneId)
- {
- S32 len = 0;
- data = ((gprofiles[gprofileId].toneSetup.messageTone) - (gstartMiscToneId));
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- sprintf((PS8) AsciinStrItemList, "%d", data + 1);
- AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
- len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
- len = MAX_SUBMENU_CHARACTERS - len;
- pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
- pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
- }
- else if(ToneID == MESSAGE_SILENT)
- {
- pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
- }
- else
- {
- BOOL selected = FALSE;
- #if defined(__MMI_PROFILE_EXTMELODY_SUPPORT__)
- MSPmgGetExtMelodyInfo(&ExtMelodyStruct);
- for (data = 0; data < MAXIMUM_EXT_MELODY_NUM; data++)
- {
- if (MSPmgIsEmptySlot(data) == MMI_FALSE && ToneID == ExtMelodyStruct->info[data].id)
- {
- if (IS_EXTMELODY_SHORTNAME(ExtMelodyStruct->info[data].filepath))
- {
- mmi_chset_mixed_text_to_ucs2_str(
- hintData[(index)],
- (FMGR_MAX_FILE_LEN + 1) * ENCODING_LENGTH,
- (U8*) ExtMelodyStruct->info[data].filename,
- g_chset_text_encoding);
- }
- else
- {
- pfnUnicodeStrcpy((PS8) hintData[(index)], (PS8) (ExtMelodyStruct->info[data].filename));
- }
- #if (!defined(__MMI_SHOW_FILE_EXT__))
- PmgRemoveFileExt((S8*) hintData[(index)]);
- #elif (!defined(__MMI_SHOW_DAF_FILE_EXT__))
- PmgRemoveFileDAFExt((S8*) hintData[(index)]);
- #endif
- selected = TRUE;
- break;
- }
- }
- #endif /* defined(__MMI_PROFILE_EXTMELODY_SUPPORT__) */
- #ifdef __MMI_DOWNLOADABLE_THEMES_SUPPORT__
- if (!selected)
- {
- DYNAUDIOINFO *download_theme_tones;
- if (GetThemeV2TonesInfo(&download_theme_tones) != 0 && mmi_tm_get_current_theme_ringtone())
- {
- if (ToneID == (U16) download_theme_tones[0].AudioId)
- {
- pfnUnicodeStrcpy((PS8) hintData[(index)], GetString((U16) STR_PROFILES_CURR_THEME));
- selected = TRUE;
- }
- }
- }
- #endif /* __MMI_DOWNLOADABLE_THEMES_SUPPORT__ */
- ASSERT(selected);
- }
- }
- #else
- //KP Jerry add for changing the style of message tone list on 2007-4-10 end
- /*****************************************************************************
- * FUNCTION
- * HintHandlerMessgaeTone
- * DESCRIPTION
- * Hint handlers for Message Tone
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintHandlerMessgaeTone(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 UnicodenStrItemList[10]; /* Stores the strings id of submenus returned */
- U8 AsciinStrItemList[4]; /* Stores the strings id of submenus returned */
- U8 data = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- if ((gprofiles[gprofileId].toneSetup.messageTone) != MESSAGE_SILENT)
- {
- S32 len = 0;
- data = ((gprofiles[gprofileId].toneSetup.messageTone) - (gstartMiscToneId));
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- sprintf((PS8) AsciinStrItemList, "%d", data + 1);
- AnsiiToUnicodeString((PS8) UnicodenStrItemList, (PS8) AsciinStrItemList);
- len = pfnUnicodeStrlen((PS8) UnicodenStrItemList);
- len = MAX_SUBMENU_CHARACTERS - len;
- pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_PROFILES_TONE), MAX_SUBMENU_CHARACTERS);
- pfnUnicodeStrcat((S8*) hintData[(index)], (PS8) UnicodenStrItemList);
- }
- else
- {
- pfnUnicodeStrncpy((S8*) hintData[(index)], (S8*) GetString(STR_PROFILES_SILENT), MAX_SUBMENU_CHARACTERS);
- }
- }
- #endif //KP Jerry add for changing the style of message tone list on 2007-4-10
- /*****************************************************************************
- * FUNCTION
- * HintHandlerKeypadTone
- * DESCRIPTION
- * Hint handlers for Keypad Tone
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintHandlerKeypadTone(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- switch (gprofiles[gprofileId].toneSetup.keypadTone)
- {
- case KEYPAD_SILENT:
- pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_SILENT), MAX_SUBMENU_CHARACTERS);
- break;
- case KEYPAD_CLICK:
- pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_CLICK), MAX_SUBMENU_CHARACTERS);
- break;
- case KEYPAD_TONE:
- pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_TONE), MAX_SUBMENU_CHARACTERS);
- break;
- #if defined(__MMI_HUMAN_VOICE_KEYPAD_TONE__)
- case KEYPAD_TONE_HUMAN_VOICE_1:
- pfnUnicodeStrncpy(
- (PS8) hintData[(index)],
- GetString(STR_KEYPAD_TONE_HUMAN_VOICE_1),
- MAX_SUBMENU_CHARACTERS);
- break;
- case KEYPAD_TONE_HUMAN_VOICE_2:
- pfnUnicodeStrncpy(
- (PS8) hintData[(index)],
- GetString(STR_KEYPAD_TONE_HUMAN_VOICE_2),
- MAX_SUBMENU_CHARACTERS);
- break;
- case KEYPAD_TONE_HUMAN_VOICE_3:
- pfnUnicodeStrncpy(
- (PS8) hintData[(index)],
- GetString(STR_KEYPAD_TONE_HUMAN_VOICE_3),
- MAX_SUBMENU_CHARACTERS);
- break;
- case KEYPAD_TONE_HUMAN_VOICE_4:
- pfnUnicodeStrncpy(
- (PS8) hintData[(index)],
- GetString(STR_KEYPAD_TONE_HUMAN_VOICE_4),
- MAX_SUBMENU_CHARACTERS);
- break;
- case KEYPAD_TONE_HUMAN_VOICE_5:
- pfnUnicodeStrncpy(
- (PS8) hintData[(index)],
- GetString(STR_KEYPAD_TONE_HUMAN_VOICE_5),
- MAX_SUBMENU_CHARACTERS);
- break;
- case KEYPAD_TONE_HUMAN_VOICE_6:
- pfnUnicodeStrncpy(
- (PS8) hintData[(index)],
- GetString(STR_KEYPAD_TONE_HUMAN_VOICE_6),
- MAX_SUBMENU_CHARACTERS);
- break;
- #endif /* defined(__MMI_HUMAN_VOICE_KEYPAD_TONE__) */
- #if defined(__MMI_CUST_KEYPAD_TONE__)
- case KEYPAD_TONE_CUST_1:
- pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_CUST_1), MAX_SUBMENU_CHARACTERS);
- break;
- case KEYPAD_TONE_CUST_2:
- pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_CUST_2), MAX_SUBMENU_CHARACTERS);
- break;
- case KEYPAD_TONE_CUST_3:
- pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_CUST_3), MAX_SUBMENU_CHARACTERS);
- break;
- case KEYPAD_TONE_CUST_4:
- pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_CUST_4), MAX_SUBMENU_CHARACTERS);
- break;
- case KEYPAD_TONE_CUST_5:
- pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_CUST_5), MAX_SUBMENU_CHARACTERS);
- break;
- case KEYPAD_TONE_CUST_6:
- pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_KEYPAD_TONE_CUST_6), MAX_SUBMENU_CHARACTERS);
- break;
- #endif /* defined(__MMI_CUST_KEYPAD_TONE__) */
- }
- }
- /*****************************************************************************
- * FUNCTION
- * HintHandlerAlertType
- * DESCRIPTION
- * Hint handlers for Alert Type
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintHandlerAlertType(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- if (gprofiles[gprofileId].mtCallAlertTypeEnum == MMI_RING)
- {
- pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_RING), MAX_SUBMENU_CHARACTERS);
- }
- else if (gprofiles[gprofileId].mtCallAlertTypeEnum == MMI_VIBRATION_ONLY)
- {
- pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_VIBRATION_ONLY), MAX_SUBMENU_CHARACTERS);
- }
- else if (gprofiles[gprofileId].mtCallAlertTypeEnum == MMI_VIBRATION_AND_RING)
- {
- pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_VIBRATION_AND_RING), MAX_SUBMENU_CHARACTERS);
- }
- else if (gprofiles[gprofileId].mtCallAlertTypeEnum == MMI_VIBRATION_THEN_RING)
- {
- pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_VIBRATION_THEN_RING), MAX_SUBMENU_CHARACTERS);
- }
- else
- {
- pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_SILENT), MAX_SUBMENU_CHARACTERS);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * HintHandlerRingType
- * DESCRIPTION
- * Hint handlers for Ring Type
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintHandlerRingType(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- switch (gprofiles[gprofileId].ringTypeEnum)
- {
- case SINGLE:
- pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_RING_TYPE_SINGLE), MAX_SUBMENU_CHARACTERS);
- break;
- case REPEAT:
- pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_RING_TYPE_REPEAT), MAX_SUBMENU_CHARACTERS);
- break;
- case ASCENDING:
- pfnUnicodeStrncpy((PS8) hintData[(index)], GetString(STR_RING_TYPE_ASCENDNG), MAX_SUBMENU_CHARACTERS);
- break;
- }
- }
- #ifdef __MMI_CONNECT_NOTICE__
- /*****************************************************************************
- * FUNCTION
- * HintHandlerConnectNotice
- * DESCRIPTION
- * Hint handlers for Connect Notice Type
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintHandlerConnectNotice(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- pfnUnicodeStrncpy(
- (PS8) hintData[(index)],
- GetString(STR_NOTICE_NONE + gprofiles[gprofileId].extraTone.connectTone),
- MAX_SUBMENU_CHARACTERS);
- }
- #endif /* __MMI_CONNECT_NOTICE__ */
- /*****************************************************************************
- * FUNCTION
- * HintHandlerRingVolume
- * DESCRIPTION
- * Hint handlers for Ring Volume
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintHandlerRingVolume(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 value[MAX_SUB_MENU_HINT_SIZE];
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- sprintf((S8*) value, "%d", (gprofiles[gprofileId].ringVolumeLevel + 1));
- #ifdef __UCS2_ENCODING
- AnsiiToUnicodeString((PS8) hintData[(index)], (PS8) value);
- #else
- pfnUnicodeStrcpy((S8*) hintData[index], (S8*) value);
- #endif
- }
- /*****************************************************************************
- * FUNCTION
- * HintHandlerKeyVolume
- * DESCRIPTION
- * Hint handlers for Key Volume
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintHandlerKeyVolume(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 value[MAX_SUB_MENU_HINT_SIZE];
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- sprintf((S8*) value, "%d", (gprofiles[gprofileId].keypadVolumeLevel + 1));
- #ifdef __UCS2_ENCODING
- AnsiiToUnicodeString((PS8) hintData[(index)], (PS8) value);
- #else
- pfnUnicodeStrcpy((S8*) hintData[index], (S8*) value);
- #endif
- }
- /*****************************************************************************
- * FUNCTION
- * HintHandlerLCDBacklight
- * DESCRIPTION
- * Hint handlers for LCD BackLight
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintHandlerLCDBacklight(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 value[MAX_SUB_MENU_HINT_SIZE];
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- sprintf((S8*) value, "%d", gprofiles[gprofileId].light.timer.setsec);
- #ifdef __UCS2_ENCODING
- AnsiiToUnicodeString((PS8) hintData[(index)], (PS8) value);
- #else
- pfnUnicodeStrcpy((S8*) hintData[index], (S8*) value);
- #endif
- }
- #ifdef __MMI_STATUS_LED__
- /*****************************************************************************
- * FUNCTION
- * HintHandlerStatusLED
- * DESCRIPTION
- * Hint handlers for Status LED
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintHandlerStatusLED(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- switch (gprofiles[gprofileId].light.status)
- {
- case NO_COLOR:
- pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_LIGHT_STATUS_NONE), MAX_SUBMENU_CHARACTERS);
- break;
- case COLOR_PATTERN1:
- pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_LIGHT_STATUS_COLOR1), MAX_SUBMENU_CHARACTERS);
- break;
- case COLOR_PATTERN2:
- pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_LIGHT_STATUS_COLOR2), MAX_SUBMENU_CHARACTERS);
- break;
- case COLOR_PATTERN3:
- pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_LIGHT_STATUS_COLOR3), MAX_SUBMENU_CHARACTERS);
- break;
- case COLOR_PATTERN4:
- pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_LIGHT_STATUS_COLOR4), MAX_SUBMENU_CHARACTERS);
- break;
- case COLOR_PATTERN5:
- pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_LIGHT_STATUS_COLOR5), MAX_SUBMENU_CHARACTERS);
- break;
- case COLOR_PATTERN6:
- pfnUnicodeStrncpy((S8*) hintData[(index)], GetString(STR_LIGHT_STATUS_COLOR6), MAX_SUBMENU_CHARACTERS);
- break;
- }
- }
- #endif /* __MMI_STATUS_LED__ */
- /************************************HighLight Handlers***************************/
- /*****************************************************************************
- * FUNCTION
- * HighlightProfiles
- * DESCRIPTION
- * Highlight profile menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfiles(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OPTIONS, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrProfiles, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrProfiles, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightGeneralProfile
- * DESCRIPTION
- * Highlight General profile menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightGeneralProfile(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gcurrHiliteIndexOne = MMI_PROFILE_GENERAL;
- /* Register function for left soft key */
- #ifdef __MMI_PROF_MENU_ACTIVE_SHRINK__
- SetLeftSoftkeyFunction(EntryScrProfilesCustomize, KEY_EVENT_UP);
- SetKeyHandler(EntryScrProfilesCustomize, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- #else /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */
- SetLeftSoftkeyFunction(EntryScrProfilesOptions, KEY_EVENT_UP);
- SetKeyHandler(EntryScrProfilesOptions, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- #endif /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightMeetingProfile
- * DESCRIPTION
- * Highlight Meeting profile menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightMeetingProfile(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gcurrHiliteIndexOne = MMI_PROFILE_MEETING;
- /* Register function for left soft key */
- #ifdef __MMI_PROF_MENU_ACTIVE_SHRINK__
- SetLeftSoftkeyFunction(EntryScrProfilesCustomize, KEY_EVENT_UP);
- SetKeyHandler(EntryScrProfilesCustomize, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- #else /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */
- SetLeftSoftkeyFunction(EntryScrProfilesOptions, KEY_EVENT_UP);
- SetKeyHandler(EntryScrProfilesOptions, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- #endif /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightOutdoorProfile
- * DESCRIPTION
- * Highlight Outdoor profile menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightOutdoorProfile(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gcurrHiliteIndexOne = MMI_PROFILE_OUTDOOR;
- /* Register function for left soft key */
- #ifdef __MMI_PROF_MENU_ACTIVE_SHRINK__
- SetLeftSoftkeyFunction(EntryScrProfilesCustomize, KEY_EVENT_UP);
- SetKeyHandler(EntryScrProfilesCustomize, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- #else /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */
- SetLeftSoftkeyFunction(EntryScrProfilesOptions, KEY_EVENT_UP);
- SetKeyHandler(EntryScrProfilesOptions, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- #endif /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightIndoorProfile
- * DESCRIPTION
- * Highlight Indoor profile menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightIndoorProfile(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gcurrHiliteIndexOne = MMI_PROFILE_INDOOR;
- /* Register function for left soft key */
- #ifdef __MMI_PROF_MENU_ACTIVE_SHRINK__
- SetLeftSoftkeyFunction(EntryScrProfilesCustomize, KEY_EVENT_UP);
- SetKeyHandler(EntryScrProfilesCustomize, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- #else /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */
- SetLeftSoftkeyFunction(EntryScrProfilesOptions, KEY_EVENT_UP);
- SetKeyHandler(EntryScrProfilesOptions, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- #endif /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightHeadsetProfile
- * DESCRIPTION
- * Highlight Headset profile menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightHeadsetProfile(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gcurrHiliteIndexOne = MMI_PROFILE_HEADSET;
- /* Register function for left soft key */
- #ifdef __MMI_PROF_MENU_ACTIVE_SHRINK__
- SetLeftSoftkeyFunction(EntryScrProfilesCustomize, KEY_EVENT_UP);
- SetKeyHandler(EntryScrProfilesCustomize, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- #else /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */
- SetLeftSoftkeyFunction(EntryScrProfilesOptions, KEY_EVENT_UP);
- SetKeyHandler(EntryScrProfilesOptions, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- #endif /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */
- }
- #ifdef __MMI_BT_PROFILE__
- /*****************************************************************************
- * FUNCTION
- * mmi_profiles_bt_profile_highlight_hdlr
- * DESCRIPTION
- * highlight BT profile menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_profiles_bt_profile_highlight_hdlr(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gcurrHiliteIndexOne = MMI_PROFILE_BT;
- /* Register function for left soft key */
- #ifdef __MMI_PROF_MENU_ACTIVE_SHRINK__
- SetLeftSoftkeyFunction(EntryScrProfilesCustomize, KEY_EVENT_UP);
- SetKeyHandler(EntryScrProfilesCustomize, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- #else /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */
- SetLeftSoftkeyFunction(EntryScrProfilesOptions, KEY_EVENT_UP);
- SetKeyHandler(EntryScrProfilesOptions, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- #endif /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */
- }
- #endif /* __MMI_BT_PROFILE__ */ /* MMI_BT_PROFILE__ */
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesOptions
- * DESCRIPTION
- * Highlight profile Options menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesOptions(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightProfileActivateOptions
- * DESCRIPTION
- * Highlight profile Activate Options menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfileActivateOptions(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrProfilesActivate, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- /* MTK added, Max: to clear key handler 1221 */
- ClearKeyHandler(KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- /* MTK end */
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesCustomize
- * DESCRIPTION
- * Highlight profile Customize menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesCustomize(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrProfilesCustomize, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrProfilesCustomize, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesVolumeLevel
- * DESCRIPTION
- * Highlight profile Volume Level
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesVolumeLevel(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrProfilesVolumeType, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrProfilesVolumeType, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesCallAlert
- * DESCRIPTION
- * Highlight profile Call Alert menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesCallAlert(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrProfilesCallAlert, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrProfilesCallAlert, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesRingType
- * DESCRIPTION
- * Highlight profile Call Alert menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesRingType(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrProfilesRingType, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrProfilesRingType, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesAnsweringMode
- * DESCRIPTION
- * Highlight profile Answering mode menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesAnsweringMode(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrProfilesAnsweringMode, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrProfilesAnsweringMode, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- #ifdef __MMI_STATUS_LED__
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesStatus
- * DESCRIPTION
- * Highlight profile Status menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesStatus(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrStatusLEDPatterns, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrStatusLEDPatterns, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- #endif /* __MMI_STATUS_LED__ */
- //KP Jerry add on 2007-03-31 start
- #ifdef __MMI_PROFILE_POWER_SAVING__
- /*****************************************************************************
- * FUNCTION
- * HighlightPowerSavingProfile
- * DESCRIPTION
- * Highlight General profile menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightPowerSavingProfile(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gcurrHiliteIndexOne = MMI_PROFILE_POWER_SAVING;
- /* Register function for left soft key */
- #ifdef __MMI_PROF_MENU_ACTIVE_SHRINK__
- SetLeftSoftkeyFunction(EntryScrProfilesCustomize, KEY_EVENT_UP);
- SetKeyHandler(EntryScrProfilesCustomize, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- #else /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */
- SetLeftSoftkeyFunction(EntryScrProfilesOptions, KEY_EVENT_UP);
- SetKeyHandler(EntryScrProfilesOptions, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- #endif /* __MMI_PROF_MENU_ACTIVE_SHRINK__ */
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesLCDBL
- * DESCRIPTION
- * ...
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesLCDBL(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK);
- ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK);
- SetLeftSoftkeyFunction(EntryProfilesSetLCDBackLite, KEY_EVENT_UP);
- SetKeyHandler(EntryProfilesSetLCDBackLite, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesSetBackLiteLevel
- * DESCRIPTION
- *
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesSetBackLiteLevel(S32 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (index > 0 && index <= 5)
- {
- //gprofiles[gprofileId].lcdbacklight.lcdBacklightlevel = index;
- TempLCDBKLevel = index;
- if (gactivatedprofile == gprofileId)
- {
- //memcpy(&gcurrentprofile, &gprofiles[gprofileId], sizeof(PROFILE));
- g_phnset_gpio_cntx_p->bl_setting_level = index;
- SetGPIOLevelReq(GPIO_DEV_LED_MAINLCD, LED_LIGHT_LEVEL5);
- }
- }
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesSetBackLiteHFTime
- * DESCRIPTION
- * This function is highlight handler for Phonesetup-> Contrast -> SubLCD
- * Follow functions:
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesSetBackLiteHFTime(S32 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (index >= 5 && index <= 60)
- {
- //gprofiles[gprofileId].lcdbacklight.lcdBacklighttime = index;
- TempLCDBKTime = index;
- if (gactivatedprofile == gprofileId)
- {
- //memcpy(&gcurrentprofile, &gprofiles[gprofileId], sizeof(PROFILE));
- g_phnset_gpio_cntx_p->bl_setting_hftime = index;
- }
- }
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesKEYBL
- * DESCRIPTION
- * highlight phone lock option in security setup
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesKEYBL(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (gprofiles[gprofileId].keybacklight)
- {
- ChangeLeftSoftkey(STR_GLOBAL_OFF, 0);
- }
- else
- {
- ChangeLeftSoftkey(STR_GLOBAL_ON, 0);
- }
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction(EntryProfilesSetKeyBacklight, KEY_EVENT_UP);
- /* micha0529 */
- SetKeyHandler(EntryProfilesSetKeyBacklight, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HintProfilesKEYBL
- * DESCRIPTION
- * ...
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintProfilesKEYBL(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (gprofiles[gprofileId].keybacklight == 1)
- {
- pfnUnicodeStrcpy((PS8) hintData[index], (PS8) GetString(STR_GLOBAL_ON));
- }
- else
- {
- pfnUnicodeStrcpy((PS8) hintData[index], (PS8) GetString(STR_GLOBAL_OFF));
- }
- }
- #endif
- //KP Jerry add on 2007-03-31 end
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesToneSetup
- * DESCRIPTION
- * Highlight profile Tone Setup menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesToneSetup(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrProfilesToneSetup, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrProfilesToneSetup, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesRingToneSetup
- * DESCRIPTION
- * Highlight profile Ring Tone Setup menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesRingToneSetup(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(mmi_profiles_entry_ring_tone_list, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_profiles_entry_ring_tone_list, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesPoweronToneSetup
- * DESCRIPTION
- * Highlight profile Poweron Tone Setup menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesPoweronToneSetup(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrProfilesPoweronToneSetup, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrProfilesPoweronToneSetup, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesPoweroffToneSetup
- * DESCRIPTION
- * Highlight profile Poweroff Tone Setup menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesPoweroffToneSetup(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrProfilesPoweroffToneSetup, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrProfilesPoweroffToneSetup, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesMessageToneSetup
- * DESCRIPTION
- * Highlight profile Message Tone Setup menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesMessageToneSetup(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrProfilesMessageToneSetup, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrProfilesMessageToneSetup, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesKeypadToneSetup
- * DESCRIPTION
- * Highlight profile Keypad Tone Setup menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesKeypadToneSetup(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrProfilesKeypadToneSetup, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrProfilesKeypadToneSetup, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- #ifndef __MMI_ALM_CUSTOMIZE_TONE__
- /*****************************************************************************
- * FUNCTION
- * HighlightAlarmToneSetup
- * DESCRIPTION
- * Highlight profile Alarm Tone Setup menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightAlarmToneSetup(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrProfilesAlarmToneSetup, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrProfilesAlarmToneSetup, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- #endif /* __MMI_ALM_CUSTOMIZE_TONE__ */
- /*****************************************************************************
- * FUNCTION
- * HighlightExtraToneSetup
- * DESCRIPTION
- * Highlight profile Extra Tone Setup menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightExtraToneSetup(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrProfilesExtraToneSetup, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrProfilesExtraToneSetup, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightRingToneVolume
- * DESCRIPTION
- * Adjust Ring Tone Volume
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightRingToneVolume(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* PMT SUKRIT START 20051226 */
- #ifdef __MMI_PROFILES_TWO_LINE_MENUITEM_DISPLAY__
- if (!is_level_select_menuitem_displayed_in_volume_screen)
- {
- #endif /* __MMI_PROFILES_TWO_LINE_MENUITEM_DISPLAY__ */
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrProfilesCommonVolumeLevel1, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrProfilesCommonVolumeLevel1, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- gcommonvolumehandler = 0;
- #ifdef __MMI_PROFILES_TWO_LINE_MENUITEM_DISPLAY__
- }
- else
- {
- ChangeLeftSoftkey(0, 0);
- SetRingerVolume(default_value_ring_volume);
- mdi_audio_stop_all(); /* use stop all because it might be play file or play id */
- AudioPlayToneWithCallBackVolPath(
- gprofiles[gprofileId].toneSetup.ringTone,
- REPEAT,
- INCOMING_CALL_TONE,
- (U8) default_value_ring_volume,
- MDI_DEVICE_SPEAKER2);
- mmi_profiles_set_ring_tone_playing(TRUE);
- /* MTK Brian added for play ring tone after MT message, 2003/11/10 */
- SetProtocolEventHandler(ContinueRingTone_TwoLine, PRT_EQ_PLAY_AUDIO_FINISH_IND);
- SetLeftSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- }
- #endif /* __MMI_PROFILES_TWO_LINE_MENUITEM_DISPLAY__ */
- /* PMT SUKRIT START 20051226 */
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightKeyToneVolume
- * DESCRIPTION
- * Adjust KeyPad Tone Volume
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightKeyToneVolume(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* PMT SUKRIT START 20051226 */
- #ifdef __MMI_PROFILES_TWO_LINE_MENUITEM_DISPLAY__
- if (!is_level_select_menuitem_displayed_in_volume_screen)
- {
- #endif /* __MMI_PROFILES_TWO_LINE_MENUITEM_DISPLAY__ */
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrProfilesCommonVolumeLevel1, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrProfilesCommonVolumeLevel1, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- gcommonvolumehandler = 1;
- #ifdef __MMI_PROFILES_TWO_LINE_MENUITEM_DISPLAY__
- }
- else
- {
- ChangeLeftSoftkey(0, 0);
- SetKeyPadVolume(default_value_keypad_volume);
- AudioStopReq((U16) gprofiles[gprofileId].toneSetup.keypadTone);
- SetLeftSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- }
- #endif /* __MMI_PROFILES_TWO_LINE_MENUITEM_DISPLAY__ */
- /* PMT SUKRIT END 20051226 */
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightCallAlertRing
- * DESCRIPTION
- * Set Call Alert as Ring
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightCallAlertRing(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(SetMtCallAlertRing, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightCalAlertVibrationOnly
- * DESCRIPTION
- * Set Call Alert as Vibration Only
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightCalAlertVibrationOnly(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(SetMtCallAlertVibrationOnly, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightCallAlertVibrationAndRing
- * DESCRIPTION
- * Set Call Alert as Vibration and Ring
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightCallAlertVibrationAndRing(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(SetMtCallAlertVibrationAndRing, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightCallAlertVibrationThenRing
- * DESCRIPTION
- * Set Call Alert as Vibration then Ring
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightCallAlertVibrationThenRing(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(SetMtCallAlertVibrationThenRing, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightCallAlertSilent
- * DESCRIPTION
- * Set Call Alert as Silent
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightCallAlertSilent(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(SetMtCallAlertSilent, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightRingTypeSingle
- * DESCRIPTION
- * Highlight Ring type Single
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightRingTypeSingle(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(SetRingTypeSingle, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightRingTypeRepeat
- * DESCRIPTION
- * Highlight Ring type Repeat
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightRingTypeRepeat(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(SetRingTypeRepeat, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightRingTypeAscending
- * DESCRIPTION
- * Highlight Ring type Ascending
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightRingTypeAscending(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(SetRingTypeAscending, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightKeyPadToneSilent
- * DESCRIPTION
- * Highlight Keypad Tone Silent
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightKeyPadToneSilent(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetKeyPadToneSilent, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightKeyPadToneClick
- * DESCRIPTION
- * Highlight Keypad Tone Click
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightKeyPadToneClick(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetKeyPadToneClick, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightKeyPadToneTone
- * DESCRIPTION
- * Highlight Keypad Tone as Tone
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightKeyPadToneTone(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetKeyPadToneTone, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- #if defined(__MMI_HUMAN_VOICE_KEYPAD_TONE__)
- /*****************************************************************************
- * FUNCTION
- * HighlightKeyPadToneHumanVoice1
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightKeyPadToneHumanVoice1(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetKeyPadToneHumanVoice1, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightKeyPadToneHumanVoice2
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightKeyPadToneHumanVoice2(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetKeyPadToneHumanVoice2, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightKeyPadToneHumanVoice3
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightKeyPadToneHumanVoice3(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetKeyPadToneHumanVoice3, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightKeyPadToneHumanVoice4
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightKeyPadToneHumanVoice4(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetKeyPadToneHumanVoice4, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightKeyPadToneHumanVoice5
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightKeyPadToneHumanVoice5(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetKeyPadToneHumanVoice5, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightKeyPadToneHumanVoice6
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightKeyPadToneHumanVoice6(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetKeyPadToneHumanVoice6, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- #endif /* defined(__MMI_HUMAN_VOICE_KEYPAD_TONE__) */
- #if defined(__MMI_CUST_KEYPAD_TONE__)
- /*****************************************************************************
- * FUNCTION
- * HighlightKeyPadToneCust1
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightKeyPadToneCust1(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetKeyPadToneCust1, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightKeyPadToneCust2
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightKeyPadToneCust2(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetKeyPadToneCust2, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightKeyPadToneCust3
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightKeyPadToneCust3(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetKeyPadToneCust3, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightKeyPadToneCust4
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightKeyPadToneCust4(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetKeyPadToneCust4, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightKeyPadToneCust5
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightKeyPadToneCust5(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetKeyPadToneCust5, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightKeyPadToneCust6
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightKeyPadToneCust6(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetKeyPadToneCust6, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- #endif /* defined(__MMI_CUST_KEYPAD_TONE__) */
- #ifdef __MMI_CONNECT_NOTICE__
- /*****************************************************************************
- * FUNCTION
- * HighlightProfilesConnectNotice
- * DESCRIPTION
- * Highlight profile Call Alert menu item
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightProfilesConnectNotice(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 3 Register function for left soft key */
- SetLeftSoftkeyFunction(EntryScrProfilesConnectNotice, KEY_EVENT_UP);
- /* 4 Register function for right soft key */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrProfilesConnectNotice, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightConnectNoticeNone
- * DESCRIPTION
- * Highlight Connect Notice None
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightConnectNoticeNone(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetConnectNoticeNone, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightConnectNoticeToneOnly
- * DESCRIPTION
- * Highlight Connect Notice Tone Only
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightConnectNoticeToneOnly(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetConnectNoticeToneOnly, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightConnectNoticeVibOnly
- * DESCRIPTION
- * Highlight Connect Notice Vib Only
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightConnectNoticeVibOnly(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetConnectNoticeVibOnly, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightConnectNoticeToneAndVib
- * DESCRIPTION
- * Highlight Connect Notice Tone & Vib
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightConnectNoticeToneAndVib(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* 1 Change left soft key icon and label */
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- /* 2 Change right soft key icon and label */
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- /* 9.Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* 10.Register function with Left softkey */
- SetLeftSoftkeyFunction(SetConnectNoticeToneAndVib, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- #endif /* __MMI_CONNECT_NOTICE__ */
- #if defined(__MMI_INTELLIGENT_CALL_ALERT__)
- /*****************************************************************************
- * FUNCTION
- * HighlightHandlerIntelligentCallAlert
- * DESCRIPTION
- * HighlightHandlerIntelligentCallAlert
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightHandlerIntelligentCallAlert(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(EntryScrIntelligentCallAlert, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryScrIntelligentCallAlert, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HintIntelligentCallAlert
- * DESCRIPTION
- * HintHandlerIntelligentCallAlert
- * PARAMETERS
- * index [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void HintIntelligentCallAlert(U16 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U16 str_id;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memset((S8*) hintData[(index)], 0, MAX_SUB_MENU_SIZE);
- if (gprofiles[gprofileId].intelligentCallAlert == MMI_INTELLIGENT_CALL_ALERT_ON)
- {
- str_id = STR_GLOBAL_ON;
- }
- else
- {
- str_id = STR_GLOBAL_OFF;
- }
- pfnUnicodeStrcpy((S8*) hintData[(index)], GetString(str_id));
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightHandlerIntelligentCallAlertOn
- * DESCRIPTION
- * HighlightHandlerIntelligentCallAlertOn
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightHandlerIntelligentCallAlertOn(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(SetIntelligentCallAlertOn, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * HighlightHandlerIntelligentCallAlertOff
- * DESCRIPTION
- * HighlightHandlerIntelligentCallAlertOff
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void HighlightHandlerIntelligentCallAlertOff(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(SetIntelligentCallAlertOff, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * SetIntelligentCallAlertOn
- * DESCRIPTION
- * SetIntelligentCallAlertOn
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SetIntelligentCallAlertOn(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SetIntelligentCallAert(MMI_INTELLIGENT_CALL_ALERT_ON);
- DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, UI_POPUP_NOTIFYDURATION_TIME, SUCCESS_TONE);
- DeleteScreenIfPresent(SCR_PROFILES_INTELLIGENT_CALL_ALERT);
- }
- /*****************************************************************************
- * FUNCTION
- * SetIntelligentCallAlertOff
- * DESCRIPTION
- * SetIntelligentCallAlertOff
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SetIntelligentCallAlertOff(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SetIntelligentCallAert(MMI_INTELLIGENT_CALL_ALERT_OFF);
- DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, UI_POPUP_NOTIFYDURATION_TIME, SUCCESS_TONE);
- DeleteScreenIfPresent(SCR_PROFILES_INTELLIGENT_CALL_ALERT);
- }
- #endif /* defined(__MMI_INTELLIGENT_CALL_ALERT__) */
- /*********************End (Hilite HAndlers)*********************************************/