IdleApp.c
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:269k
- #else
- if (g_pwr_context.CurrentServiceType == LIMITED_SERVICE && mmi_bootup_get_plmn_selection_mode() == MANUAL_MODE)
- #endif
- {
- #ifdef __MMI_SWAP_LSK_RSK_IN_IDLE_SCREEN__
- SetRightSoftkeyFunction(EntryMainMenuFromIdleScreen, KEY_EVENT_UP); /* Robin 1223 */
- ChangeLeftSoftkey(STR_GLOBAL_SELECT, 0);
- SetLeftSoftkeyFunction(NETSETGetPLMNListCheck, KEY_EVENT_UP);
- #else /* __MMI_SWAP_LSK_RSK_IN_IDLE_SCREEN__ */
- SetLeftSoftkeyFunction(EntryMainMenuFromIdleScreen, KEY_EVENT_UP); /* Robin 1223 */
- ChangeRightSoftkey(STR_GLOBAL_SELECT, 0);
- SetRightSoftkeyFunction(NETSETGetPLMNListCheck, KEY_EVENT_UP);
- #endif /* __MMI_SWAP_LSK_RSK_IN_IDLE_SCREEN__ */
- }
- else
- #endif /* defined (__MANUAL_MODE_NW_SEL__) && !defined (__MMI_TOUCH_IDLESCREEN_SHORTCUTS__) */
- {
- #ifdef __MMI_SWAP_LSK_RSK_IN_IDLE_SCREEN__
- SetRightSoftkeyFunction(EntryMainMenuFromIdleScreen, KEY_EVENT_UP); /* Robin 1223 */
- ChangeLeftSoftkey(IDLE_SCREEN_LSK_TEXT, 0);
- SetLeftSoftkeyFunction(mmi_phb_idle_enter_phb_list, KEY_EVENT_UP);
- #else /* __MMI_SWAP_LSK_RSK_IN_IDLE_SCREEN__ */
- SetLeftSoftkeyFunction(EntryPopupList/*EntryMainMenuFromIdleScreen*/, KEY_EVENT_UP); /* Robin 1223 */
- //SetRightSoftkeyFunction(mmi_phb_idle_enter_phb_list, KEY_EVENT_UP);
- #endif /* __MMI_SWAP_LSK_RSK_IN_IDLE_SCREEN__ */
- }
- }
- }
- /* diamond, 2005/07/05 Flight mode */
- #ifdef __FLIGHT_MODE_SUPPORT__
- /*****************************************************************************
- * FUNCTION
- * EntryFlightModeIdleScreen
- * DESCRIPTION
- * Entry idle screen in flight mode
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void EntryFlightModeIdleScreen(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U16 IdleScreenDigits[MAX_IDLE_SCREEN_DIGITS] =
- {KEY_0, KEY_1, KEY_2, KEY_3, KEY_4, KEY_5, KEY_6, KEY_7, KEY_8, KEY_9, KEY_STAR, KEY_POUND};
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* change current service type */
- g_pwr_context.CurrentServiceType = NO_SERVICE;
- PRINT_INFORMATION(("Flight Mode"));
- /* EntryNewScreen(SCR_FLIGHT_MODE_IDLE, EntryFlightModeIdleScreen, NULL, NULL); */
- StopLEDPatternNoService();
- /* display "Flight Mode" in the service area of idle screen */
- IdleRefreshServiceIndicationArea();
- #if ( (defined __MMI_WGUI_CSK_ENABLE__) && (defined __MMI_TOUCH_SCREEN__) )
- EnableCenterSoftkey(0, IMG_CSK_DIAL_ICON);
- #endif
- #ifdef __MMI_SWFLASH__
- if (dispchar_iswp_swflash())
- {
- ShowCategory34Screen(
- IDLE_SCREEN_LSK_TEXT,
- IDLE_SCREEN_LSK_ICON, /* Menu */
- IDLE_SCREEN_RSK_TEXT,
- IDLE_SCREEN_RSK_ICON,
- PhnsetGetCurWallPaperIdx(), idle_screen_wallpaper_name, NULL);
- }
- else
- #endif /* _MMI_SWFLASH__ */
- ShowCategory33Screen(
- IDLE_SCREEN_LSK_TEXT,
- IDLE_SCREEN_LSK_ICON, /* Menu */
- IDLE_SCREEN_RSK_TEXT,
- IDLE_SCREEN_RSK_ICON,
- 0,
- NULL);
- /* reset icons to indicate no service available */
- ChangeStatusIconLevel(STATUS_ICON_SIGNAL_STRENGTH, 0);
- ChangeStatusIconLevel(STATUS_ICON_SUBLCD_SIGNAL_STRENGTH, 0);
- /* IdleResetStatusIcon(STATUS_ICON_ROAMING); */
- SetLeftSoftkeyFunction(EntryScrSimOptionMenu, KEY_EVENT_UP);
- SetRightSoftkeyFunction(mmi_phb_idle_enter_phb_list, KEY_EVENT_UP);
- #ifdef __MMI_TOUCH_SCREEN__
- wgui_register_status_icon_pen_event_hdlr(
- STATUS_ICON_KEYPAD_LOCK,
- WGUI_STATUS_ICON_BAR_PEN_LONG_PRESS_ICON,
- IdleSetKeyPadLockFlag);
- #endif /* __MMI_TOUCH_SCREEN__ */
- #if ( (defined __MMI_WGUI_CSK_ENABLE__) && (defined __MMI_TOUCH_SCREEN__) )
- SetCenterSoftkeyFunction(FlightModeDigitHandler, KEY_EVENT_UP);
- #endif
- #ifdef __MMI_TOUCH_DIAL_SCREEN__
- memset((U8*) g_idle_context.DialPadCallBuffer, 0, sizeof((U8*) g_idle_context.DialPadCallBuffer));
- #endif
- #ifdef __MMI_CAMERA__
- #ifndef __MMI_SCREEN_SNAPSHOT__
- #ifdef __MMI_IDLE_CAMERA_KEY_TO_STOP_AUDIOPLAYER__
- SetKeyHandler(CheckAndStopAudioPlayer, CAMERA_SHORTCUT_KEY, KEY_EVENT_DOWN);
- #else
- #ifdef __MMI_SUBLCD_CAMERA__
- if (IsClamClose())
- SetKeyHandler(mmi_sublcd_camera_entry_option_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_DOWN);
- else
- //KP Jerry modify on 2007-03-31 start
- #ifdef __MMI_PROFILE_POWER_SAVING__
- {
- SetKeyHandler(IdleTogglePowerSavingProfile, CAMERA_SHORTCUT_KEY, KEY_LONG_PRESS);
- SetKeyHandler(mmi_camera_entry_app_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_UP);
- }
- #else
- //KP Jerry modify on 2007-03-31 start
- #ifdef __MMI_PROFILE_POWER_SAVING__
- SetKeyHandler(IdleTogglePowerSavingProfile, CAMERA_SHORTCUT_KEY, KEY_LONG_PRESS);
- SetKeyHandler(mmi_camera_entry_app_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_UP);
- #else
- SetKeyHandler(mmi_camera_entry_app_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_DOWN);
- #endif
- //KP Jerry modify on 2007-03-31 end
- #endif
- //KP Jerry modify on 2007-03-31 end
- #else
- //KP Jerry modify on 2007-03-31 start
- #ifdef __MMI_PROFILE_POWER_SAVING__
- SetKeyHandler(IdleTogglePowerSavingProfile, CAMERA_SHORTCUT_KEY, KEY_LONG_PRESS);
- SetKeyHandler(mmi_camera_entry_app_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_UP);
- #else
- SetKeyHandler(mmi_camera_entry_app_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_DOWN);
- #endif
- //KP Jerry modify on 2007-03-31 end
- #endif
- #endif
- #else /* __MMI_SCREEN_SNAPSHOT__ */
- #ifdef __MMI_IDLE_CAMERA_KEY_TO_STOP_AUDIOPLAYER__
- SetKeyHandler(CheckAndStopAudioPlayer, CAMERA_SHORTCUT_KEY, KEY_EVENT_UP);
- #else
- #ifdef __MMI_SUBLCD_CAMERA__
- if (IsClamClose())
- SetKeyHandler(mmi_sublcd_camera_entry_option_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_DOWN);
- else
- //KP Jerry modify on 2007-03-31 start
- #ifdef __MMI_PROFILE_POWER_SAVING__
- {
- SetKeyHandler(IdleTogglePowerSavingProfile, CAMERA_SHORTCUT_KEY, KEY_LONG_PRESS);
- SetKeyHandler(mmi_camera_entry_app_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_UP);
- }
- #else
- SetKeyHandler(mmi_camera_entry_app_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_DOWN);
- #endif
- //KP Jerry modify on 2007-03-31 end
- #else
- //KP Jerry modify on 2007-03-31 start
- #ifdef __MMI_PROFILE_POWER_SAVING__
- SetKeyHandler(IdleTogglePowerSavingProfile, CAMERA_SHORTCUT_KEY, KEY_LONG_PRESS);
- SetKeyHandler(mmi_camera_entry_app_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_UP);
- #else
- SetKeyHandler(mmi_camera_entry_app_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_DOWN);
- #endif
- //KP Jerry modify on 2007-03-31 end
- #endif
- #endif
- #endif /* __MMI_SCREEN_SNAPSHOT__ */
- #endif /* __MMI_CAMERA__ */
- SetGroupKeyHandler(HandleIdleScreenDigitEntry, IdleScreenDigits, MAX_IDLE_SCREEN_DIGITS - 1, KEY_EVENT_DOWN);
- /* volume key */
- SetDefaultVolumeKeyHandlers();
- ForceSubLCDScreen(ShowIdleAppSubLcd);
- }
- /*****************************************************************************
- * FUNCTION
- * EntryFlightModeKeypadLockScreen
- * DESCRIPTION
- * Entry keypad lock screen in flight mode
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void EntryFlightModeKeypadLockScreen(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- mmi_idle_set_keypad_lock_string();
- IdleRefreshServiceIndicationArea();
- #ifdef __MMI_SWFLASH__
- if (dispchar_iswp_swflash())
- {
- ShowCategory34Screen(
- g_keylock_context.KeyLockLSKStringID,
- g_keylock_context.KeyLockLSKIconID,
- g_keylock_context.KeyLockRSKStringID,
- g_keylock_context.KeyLockRSKIconID,
- PhnsetGetCurWallPaperIdx(), idle_screen_wallpaper_name, NULL);
- }
- else
- #endif /* _MMI_SWFLASH__ */
- ShowCategory33Screen(
- g_keylock_context.KeyLockLSKStringID,
- g_keylock_context.KeyLockLSKIconID,
- g_keylock_context.KeyLockRSKStringID,
- g_keylock_context.KeyLockRSKIconID,
- 0,
- NULL);
- #if defined(__MMI_KEYPAD_LOCK_PROMPT_TEXT__)
- SetGroupKeyHandler(EntryScrKeyPadLockOnPessingAnyKey, (PU16) PresentAllKeys, (U8) TOTAL_KEYS, (U16) KEY_EVENT_DOWN);
- #endif
- #if defined(__MMI_TOUCH_SCREEN__) && (!defined(__MMI_TOUCH_SCREEN_WITH_NUMERIC_KEY__) || defined(__MMI_SLIDE__)) //KP Jerry add "!defined(__MMI_TOUCH_SCREEN_WITH_NUMERIC_KEY__)" on 2007-3-26
- mmi_idle_pen_block(); /* diamond, 2005/12/22 Disable touch panel if re-entry idle keypad lock screen */
- #ifndef __MMI_KEYPAD_LOCK_PROMPT_TEXT__
- ClearKeyHandler(KEY_LSK, KEY_EVENT_DOWN);
- ClearKeyHandler(KEY_LSK, KEY_EVENT_UP);
- ClearKeyHandler(KEY_RSK, KEY_EVENT_DOWN);
- ClearKeyHandler(KEY_RSK, KEY_EVENT_UP);
- #endif /* __MMI_KEYPAD_LOCK_PROMPT_TEXT__ */
- SetKeyHandler(EntryScrAfterPessingRSK, KEY_SEND, KEY_EVENT_DOWN);
- #else /* __MMI_TOUCH_SCREEN__ && !__MMI_TOUCH_SCREEN_WITH_NUMERIC_KEY__ */ //KP Jerry add "!__MMI_TOUCH_SCREEN_WITH_NUMERIC_KEY__" on 2007-3-26
- #if defined(__MMI_KEYPAD_LOCK_PATTERN_1__) || defined(__MMI_KEYPAD_LOCK_PATTERN_3__) || defined(__MMI_KEYPAD_LOCK_PATTERN_4__) //KP Jerry add "__MMI_KEYPAD_LOCK_PATTERN_3__" on 2007-3-27
- SetRightSoftkeyFunction(EntryScrAfterPessingRSK, KEY_EVENT_DOWN);
- #endif
- #ifdef __MMI_KEYPAD_LOCK_PATTERN_2__
- SetLeftSoftkeyFunction(EntryScrAfterPessingRSK, KEY_EVENT_DOWN);
- #endif
- #endif /* __MMI_TOUCH_SCREEN__ && !__MMI_TOUCH_SCREEN_WITH_NUMERIC_KEY__ */ //KP Jerry add "!__MMI_TOUCH_SCREEN_WITH_NUMERIC_KEY__" on 2007-3-26
- if (g_idle_context.IsRSKPressOnScreenSaver)
- {
- EntryScrAfterPessingRSK();
- g_idle_context.IsRSKPressOnScreenSaver = 0;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * FlightModeDigitHandler
- * DESCRIPTION
- * Flight mode digit handler in dial pad
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void FlightModeDigitHandler(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *history_buffer;
- #ifdef __MMI_TOUCH_DIAL_SCREEN__
- U16 TouchDialPadKeys[MAX_TOUCH_DIAL_PAD_KEYS] =
- {KEY_0, KEY_1, KEY_2, KEY_3, KEY_4, KEY_5, KEY_6, KEY_7, KEY_8, KEY_9, KEY_STAR, KEY_POUND};
- #endif /* __MMI_TOUCH_DIAL_SCREEN__ */
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- EntryNewScreen(IDLE_SCREEN_DIGIT_HANDLER_ID, ExitIdleScreenDigitHandler, NULL, NULL);
- g_idle_context.IsOnDialerScreen = 1;
- g_idle_context.AvoidHistoryofDialerScreen = 0;
- history_buffer = GetCurrGuiBuffer(IDLE_SCREEN_DIGIT_HANDLER_ID);
- ShowCategory16Screen(
- STR_GLOBAL_SAVE,
- 0,
- STR_GLOBAL_BACK,
- 0,
- (U8*) g_idle_context.DialPadCallBuffer,
- MAX_DIAL_PAD,
- history_buffer);
- if (g_idle_context.IdleScreenDigitKeyCode >= 0)
- {
- ExecuteCurrKeyHandler(g_idle_context.IdleScreenDigitKeyCode, KEY_EVENT_DOWN);
- }
- // SetKeyHandler(EntryScrEmergencyCallDialing,KEY_SEND,KEY_EVENT_UP); /* no emergency call allowed */
- SetCategory16RightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- /* diamond, 2005/11/14 Allow to entry phonebook in flight mode */
- SetLeftSoftkeyFunction(IdleDialPadSavePhoneBook, KEY_EVENT_UP);
- SetKeyHandler(IdleAbbrevDialling, KEY_POUND, KEY_EVENT_UP);
- #ifdef __MMI_STARKEY_TOGGLE_PROFILE__
- if ((g_idle_context.LongPressEnable == 0) && !history_buffer) /* Lisen (!history_buffer) to check if it is back from history, see Cannon+ SCR 1847 */
- #else /* __MMI_STARKEY_TOGGLE_PROFILE__ */
- #ifdef __MMI_TOUCH_DIAL_SCREEN__
- /* if((g_idle_context.LongPressEnable==0) && (g_idle_context.IdleScreenDigitKeyCode!=KEY_STAR) && (g_idle_context.IdleScreenDigitKeyCode!=-1) ) */
- if ((g_idle_context.LongPressEnable == 0) && (g_idle_context.IdleScreenDigitKeyCode != KEY_STAR))
- #else /* __MMI_TOUCH_DIAL_SCREEN__ */
- if ((g_idle_context.LongPressEnable == 0) && (g_idle_context.IdleScreenDigitKeyCode != KEY_STAR) && !history_buffer)
- #endif /* __MMI_TOUCH_DIAL_SCREEN__ */
- #endif /* __MMI_STARKEY_TOGGLE_PROFILE__ */
- {
- #ifndef __MMI_TOUCH_DIAL_SCREEN__
- g_idle_context.AvoidHistoryofDialerScreen = 1;
- #endif
- #ifdef __MMI_STARKEY_TOGGLE_PROFILE__
- SetKeyHandler(IdleToggleProfile, KEY_STAR, KEY_LONG_PRESS);
- #else
- SetKeyHandler(IdleToggleProfile, KEY_POUND, KEY_LONG_PRESS);
- #endif
- #ifdef __MMI_POUNDKEY_ENTER_PROFILE__
- SetKeyHandler(EntryScrProfiles, KEY_POUND, KEY_LONG_PRESS);
- #endif
- #ifdef __MMI_TOUCH_DIAL_SCREEN__
- SetGroupKeyHandler(IdleDisableLongPress, TouchDialPadKeys, (U8) MAX_TOUCH_DIAL_PAD_KEYS, KEY_EVENT_UP);
- #else
- SetGroupKeyHandler(IdleDisableLongPress, (PU16) PresentAllKeys, (U8) TOTAL_KEYS, KEY_EVENT_UP);
- #endif
- }
- #ifdef __MMI_TOUCH_DIAL_SCREEN__
- else
- {
- DeleteScreenIfPresent(IDLE_SCREEN_DIGIT_HANDLER_ID);
- }
- #endif /* __MMI_TOUCH_DIAL_SCREEN__ */
- }
- #endif /* __FLIGHT_MODE_SUPPORT__ */
- /* end, diamond */
- /*****************************************************************************
- * FUNCTION
- * mmi_idle_star_key_disable_long_press
- * DESCRIPTION
- * Special handler for star key pressed in touch screen dial pad
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_idle_star_key_disable_long_press(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- #ifdef __MMI_TOUCH_DIAL_SCREEN__
- if (GetActiveScreenId() == IDLE_SCREEN_DIGIT_HANDLER_ID && g_idle_context.LongPressEnable == 0)
- {
- IdleDisableLongPress();
- }
- #endif /* __MMI_TOUCH_DIAL_SCREEN__ */
- }
- #ifdef __MMI_SIMAP_SUPPORT__
- /*****************************************************************************
- * FUNCTION
- * mmi_idle_entry_bt_access_profile_idle_screen
- * DESCRIPTION
- * Entry idle screen in BT access profile
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_idle_entry_bt_access_profile_idle_screen(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U16 IdleScreenDigits[MAX_IDLE_SCREEN_DIGITS] =
- {KEY_0, KEY_1, KEY_2, KEY_3, KEY_4, KEY_5, KEY_6, KEY_7, KEY_8, KEY_9, KEY_STAR, KEY_POUND};
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("BT SIM Access Profile"));
- StopLEDPatternNoService();
- IdleRefreshServiceIndicationArea();
- #if ( (defined __MMI_WGUI_CSK_ENABLE__) && (defined __MMI_TOUCH_SCREEN__) )
- EnableCenterSoftkey(0, IMG_CSK_DIAL_ICON);
- #endif
- #ifdef __MMI_SWFLASH__
- if (dispchar_iswp_swflash())
- {
- ShowCategory34Screen(
- IDLE_SCREEN_LSK_TEXT,
- IDLE_SCREEN_LSK_ICON, /* Menu */
- IDLE_SCREEN_RSK_TEXT,
- IDLE_SCREEN_RSK_ICON,
- PhnsetGetCurWallPaperIdx(), idle_screen_wallpaper_name, NULL);
- }
- else
- #endif /* _MMI_SWFLASH__ */
- ShowCategory33Screen(
- IDLE_SCREEN_LSK_TEXT,
- IDLE_SCREEN_LSK_ICON, /* Menu */
- IDLE_SCREEN_RSK_TEXT,
- IDLE_SCREEN_RSK_ICON,
- 0
- NULL);
- SetLeftSoftkeyFunction(EntryScrSimOptionMenu, KEY_EVENT_UP);
- SetRightSoftkeyFunction(mmi_phb_idle_enter_phb_list, KEY_EVENT_UP);
- #ifdef __MMI_TOUCH_SCREEN__
- wgui_register_status_icon_pen_event_hdlr(
- STATUS_ICON_KEYPAD_LOCK,
- WGUI_STATUS_ICON_BAR_PEN_LONG_PRESS_ICON,
- IdleSetKeyPadLockFlag);
- #endif /* __MMI_TOUCH_SCREEN__ */
- #if ( (defined __MMI_WGUI_CSK_ENABLE__) && (defined __MMI_TOUCH_SCREEN__) )
- SetCenterSoftkeyFunction(FlightModeDigitHandler, KEY_EVENT_UP);
- #endif
- #ifdef __MMI_TOUCH_DIAL_SCREEN__
- memset((U8*) g_idle_context.DialPadCallBuffer, 0, sizeof((U8*) g_idle_context.DialPadCallBuffer));
- #endif
- #ifdef __MMI_CAMERA__
- #ifndef __MMI_SCREEN_SNAPSHOT__
- #ifdef __MMI_IDLE_CAMERA_KEY_TO_STOP_AUDIOPLAYER__
- SetKeyHandler(CheckAndStopAudioPlayer, CAMERA_SHORTCUT_KEY, KEY_EVENT_DOWN);
- #else
- #ifdef __MMI_SUBLCD_CAMERA__
- if (IsClamClose())
- SetKeyHandler(mmi_sublcd_camera_entry_option_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_DOWN);
- else
- //KP Jerry modify on 2007-03-31 start
- #ifdef __MMI_PROFILE_POWER_SAVING__
- {
- SetKeyHandler(IdleTogglePowerSavingProfile, CAMERA_SHORTCUT_KEY, KEY_LONG_PRESS);
- SetKeyHandler(mmi_camera_entry_app_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_UP);
- }
- #else
- SetKeyHandler(mmi_camera_entry_app_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_DOWN);
- #endif
- //KP Jerry modify on 2007-03-31 end
- #else
- //KP Jerry modify on 2007-03-31 start
- #ifdef __MMI_PROFILE_POWER_SAVING__
- SetKeyHandler(IdleTogglePowerSavingProfile, CAMERA_SHORTCUT_KEY, KEY_LONG_PRESS);
- SetKeyHandler(mmi_camera_entry_app_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_UP);
- #else
- SetKeyHandler(mmi_camera_entry_app_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_DOWN);
- #endif
- //KP Jerry modify on 2007-03-31 end
- #endif
- #endif
- #else /* __MMI_SCREEN_SNAPSHOT__ */
- #ifdef __MMI_IDLE_CAMERA_KEY_TO_STOP_AUDIOPLAYER__
- SetKeyHandler(CheckAndStopAudioPlayer, CAMERA_SHORTCUT_KEY, KEY_EVENT_UP);
- #else
- #ifdef __MMI_SUBLCD_CAMERA__
- if (IsClamClose())
- SetKeyHandler(mmi_sublcd_camera_entry_option_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_DOWN);
- else
- //KP Jerry modify on 2007-03-31 start
- #ifdef __MMI_PROFILE_POWER_SAVING__
- {
- SetKeyHandler(IdleTogglePowerSavingProfile, CAMERA_SHORTCUT_KEY, KEY_LONG_PRESS);
- SetKeyHandler(mmi_camera_entry_app_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_UP);
- }
- #else
- SetKeyHandler(mmi_camera_entry_app_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_DOWN);
- #endif
- //KP Jerry modify on 2007-03-31 end
- #else
- //KP Jerry modify on 2007-03-31 start
- #ifdef __MMI_PROFILE_POWER_SAVING__
- SetKeyHandler(IdleTogglePowerSavingProfile, CAMERA_SHORTCUT_KEY, KEY_LONG_PRESS);
- SetKeyHandler(mmi_camera_entry_app_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_UP);
- #else
- SetKeyHandler(mmi_camera_entry_app_screen, CAMERA_SHORTCUT_KEY, KEY_EVENT_DOWN);
- #endif
- //KP Jerry modify on 2007-03-31 end
- #endif
- #endif
- #endif /* __MMI_SCREEN_SNAPSHOT__ */
- #endif /* __MMI_CAMERA__ */
- SetGroupKeyHandler(HandleIdleScreenDigitEntry, IdleScreenDigits, MAX_IDLE_SCREEN_DIGITS - 1, KEY_EVENT_DOWN);
- /* volume key */
- SetDefaultVolumeKeyHandlers();
- ForceSubLCDScreen(ShowIdleAppSubLcd);
- }
- #endif /* __MMI_SIMAP_SUPPORT__ */
- /*****************************************************************************
- * FUNCTION
- * mmi_idle_is_allow_to_show_song_name
- * DESCRIPTION
- * Is idle screen allow to display song name in line 3?
- * PARAMETERS
- * void
- * RETURNS
- * U8
- *****************************************************************************/
- pBOOL mmi_idle_is_allow_to_display_song_name(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (mmi_bootup_is_sim_valid())
- {
- return MMI_TRUE;
- }
- #ifdef __MMI_SIMAP_SUPPORT__
- else if (mmi_bootup_get_active_bt_access_profile_mode())
- {
- return MMI_TRUE;
- }
- #endif /* __MMI_SIMAP_SUPPORT__ */
- #ifdef __MMI_WLAN_FEATURES__
- else if (mmi_netset_get_active_preferred_mode() != P_GSM_ONLY)
- {
- return MMI_TRUE;
- }
- #endif /* __MMI_WLAN_FEATURES__ */
- else
- {
- return MMI_FALSE;
- }
- }
- //KP Jerry add on 2007-4-12 start
- #ifdef __MMI_MESSAGES_SENDMSG_QUICKLY__
- void IdleScreenDigit_Option_SendSms_Entry(void)
- {
- MSG_GETCURNUMSTATE Numstate = Set_CurNum_To_SendNum_UtoA(g_idle_context.DialPadCallBuffer);
-
- if(Numstate == NULL)
- {
- DisplayPopup((PU8) GetString(STR_SMS_NUM_CANNOT_BE_EMPTY), IMG_GLOBAL_UNFINISHED, 1, PHB_NOTIFY_TIMEOUT, ERROR_TONE);
- }
- else if(Numstate == CURNUM_OVERLONG)
- {
- DisplayPopup((PU8) GetString(STR_SMS_NUM_LEN_EXCEEDED), IMG_GLOBAL_UNFINISHED, 1, PHB_NOTIFY_TIMEOUT, ERROR_TONE);
- }
- else
- {
- Mmi_SendMsg_SmsWr_Entry();
- }
-
- }
- void IdleScreenDigit_Option_SendMms_Entry(void)
- {
- MSG_GETCURNUMSTATE Numstate = Set_CurNum_To_SendNum_UtoA(g_idle_context.DialPadCallBuffer);
-
- if(Numstate == NULL)
- {
- DisplayPopup((PU8) GetString(STR_SMS_NUM_CANNOT_BE_EMPTY), IMG_GLOBAL_UNFINISHED, 1, PHB_NOTIFY_TIMEOUT, ERROR_TONE);
- }
- else if(Numstate == CURNUM_OVERLONG)
- {
- DisplayPopup((PU8) GetString(STR_SMS_NUM_LEN_EXCEEDED), IMG_GLOBAL_UNFINISHED, 1, PHB_NOTIFY_TIMEOUT, ERROR_TONE);
- }
- else
- {
- Mmi_SendMsg_MmsWr_Entry(g_idle_context.DialPadCallBuffer);
- }
-
- }
- void HighlightIdleDial_Option_SavePB(void)
- {
- mmi_msg_highlight_generic(
- STR_GLOBAL_OK,
- IMG_GLOBAL_OK,
- STR_GLOBAL_BACK,
- IMG_GLOBAL_BACK,
- IdleDialPadSavePhoneBook,
- GoBackHistory);
- }
- void HighlightIdleDial_Option_SendSMS(void)
- {
- mmi_msg_highlight_generic(
- STR_GLOBAL_OK,
- IMG_GLOBAL_OK,
- STR_GLOBAL_BACK,
- IMG_GLOBAL_BACK,
- IdleScreenDigit_Option_SendSms_Entry,
- GoBackHistory);
- }
- void HighlightIdleDial_Option_SendMMS(void)
- {
- mmi_msg_highlight_generic(
- STR_GLOBAL_OK,
- IMG_GLOBAL_OK,
- STR_GLOBAL_BACK,
- IMG_GLOBAL_BACK,
- IdleScreenDigit_Option_SendMms_Entry,
- GoBackHistory);
- }
- void IdleScreenDigit_Init(void)
- {
- SetHiliteHandler(MENU_IDLESCREEN_DIGITOPTION_SAVE_ID, HighlightIdleDial_Option_SavePB);
- SetHiliteHandler(MENU_IDLESCREEN_DIGITOPTION_SENDSMS_ID, HighlightIdleDial_Option_SendSMS);
- SetHiliteHandler(MENU_IDLESCREEN_DIGITOPTION_SENDMMS_ID, HighlightIdleDial_Option_SendMMS);
- }
- void IdleScreenDigit_Option(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *guiBuffer = NULL;
- U16 numItems = 0;
- U16 nStrItemList[MAX_SUB_MENUS];
- #if defined(__MMI_SMART_MESSAGE_MO__) && !defined(__MMI_MESSAGES_EMS__)
- U16 ParentID;
- #endif
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- EntryNewScreen(IDLE_SCREEN_SCREENOPTION_ID, NULL, IdleScreenDigit_Option, NULL);
- PRINT_INFORMATION_2((MMI_TRACE_G6_SMS, "*[SmsMoMtGuiInterface.c] mmi_msg_entry_option_write *n"));
- numItems = GetNumOfChild_Ext(MENU_IDLESCREEN_DIGITOPTION_ID);
- GetSequenceStringIds_Ext(MENU_IDLESCREEN_DIGITOPTION_ID, nStrItemList);
- SetParentHandler(MENU_IDLESCREEN_DIGITOPTION_ID);
- guiBuffer = GetCurrGuiBuffer(IDLE_SCREEN_SCREENOPTION_ID);
- SetMessagesCurrScrnID(IDLE_SCREEN_SCREENOPTION_ID);
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- ShowCategory52Screen(
- STR_GLOBAL_OPTIONS,
- IMG_SMS_ENTRY_SCRN_CAPTION,
- STR_GLOBAL_OK,
- IMG_GLOBAL_OK,
- STR_GLOBAL_BACK,
- IMG_GLOBAL_BACK,
- numItems,
- nStrItemList,
- (U16*) gIndexIconsImageList,
- NULL,
- 0,
- 0,
- guiBuffer);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- }
- #endif
- //KP Jerry add on 2007-4-12 end
- //KP Jerry add for third sevice on 2007-03-26 start
- #ifdef __KONG_NET_SP__
- extern U8 gPLMN[MAX_PLMN_LEN_MMI];
- extern ThumbWorldType ThumbWorldtype;
- extern WonderfulType Wonderfultype;
- extern SecretRoomType SecretRoomtype;
- EntertainmentType Entertainmenttype;
- S8 dialBuffer[MAX_DIAL_PAD * ENCODING_LENGTH];
- extern void EntryThumbWorldOkSubscribeHandler(void);
- extern void EntryThumbWorldOkOrderHandler(void);
- extern void EntryThumbWorldOkFareHelpHandler(void);
- extern void EntryWonderfulOkSubscribeHandler(void);
- extern void EntryWonderfulOkOrderHandler(void);
- extern void EntryWonderfulOkFareHelpHandler(void);
- extern void EntrySecretRoomOkSubscribeHandler(void);
- extern void EntrySecretRoomOkOrderHandler(void);
- extern void EntrySecretRoomOkFareHelpHandler(void);
- void EntryThumbWorldMenuList(void)
- {
- U8* guiBuffer; /* Buffer holding history data */
- U16 nNumofItem;
- U16 nStrItemList[MAX_SUB_MENUS];
- EntryNewScreen(SCR_ID_THUMB_WORLD, NULL, EntryThumbWorldMenuList, NULL);
- guiBuffer = GetCurrGuiBuffer(SCR_ID_THUMB_WORLD);
- nNumofItem = GetNumOfChild(MENU_THUMB_WORLD_ID);
- GetSequenceStringIds(MENU_THUMB_WORLD_ID, nStrItemList);
- SetParentHandler(MENU_THUMB_WORLD_ID);
- /* Register highlight handler to be called in menu screen */
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
-
- ShowCategory15Screen(STR_THUMB_WORLD , NULL,
- STR_GLOBAL_OPTIONS, 0,
- STR_GLOBAL_BACK , IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
- (U16 *)gIndexIconsImageList,DISP_LIST,0,guiBuffer);
- /* Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
- }
- void HighlightThumbWorldHandler (void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryThumbWorldMenuList, KEY_EVENT_UP);
- SetKeyHandler (EntryThumbWorldMenuList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void EntryThumbWorldOkList(void)
- {
- U8* guiBuffer; /* Buffer holding history data */
- U16 nNumofItem;
- U16 nStrItemList[MAX_SUB_MENUS];
- U16 titleId;//added 20060905
- EntryNewScreen(SCR_ID_THUMB_WORLD_OK, NULL, EntryThumbWorldOkList, NULL);
- guiBuffer = GetCurrGuiBuffer(SCR_ID_THUMB_WORLD_OK);
- nNumofItem = GetNumOfChild(MENU_THUMB_WORLD_OK);
- GetSequenceStringIds(MENU_THUMB_WORLD_OK, nStrItemList);
- SetParentHandler(MENU_THUMB_WORLD_OK);
- /* Register highlight handler to be called in menu screen */
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- switch(ThumbWorldtype) //added 20060905
- {
- case THUMB_WORLD_TYPE_4:
- titleId = STR_THUMB_WORLD_4;
- break;
- case THUMB_WORLD_TYPE_8:
- titleId = STR_THUMB_WORLD_8;
- break;
- case WEATHER_FORECAST_TYPE:
- titleId = STR_WEATHER_FORECAST;
- break;
-
- case HANDPHONE_PAPER_TYPE:
- titleId = STR_HANDPHONE_PAPER;
- break;
- }
-
- ShowCategory15Screen(titleId/*STR_GLOBAL_OPTIONS*/, NULL,
- STR_GLOBAL_OK, IMG_GLOBAL_OK,
- STR_GLOBAL_BACK , IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
- (U16 *)gIndexIconsImageList,DISP_LIST,0,guiBuffer);
- /* Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
- }
- void EntryThumbWorldOk2List(void)
- {
- U8* guiBuffer; /* Buffer holding history data */
- U16 nNumofItem;
- U16 nStrItemList[MAX_SUB_MENUS];
- U16 titleId;//added 20060905
-
- EntryNewScreen(SCR_ID_THUMB_WORLD_OK2, NULL, EntryThumbWorldOk2List, NULL);
- guiBuffer = GetCurrGuiBuffer(SCR_ID_THUMB_WORLD_OK2);
- nNumofItem = GetNumOfChild(MENU_THMUB_WORLD_OK2);
- GetSequenceStringIds(MENU_THMUB_WORLD_OK2, nStrItemList);
- SetParentHandler(MENU_THMUB_WORLD_OK2);
- /* Register highlight handler to be called in menu screen */
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
-
- switch(ThumbWorldtype) //added 20060905
- {
- case THUMB_WORLD_TYPE_1:
- titleId = STR_THUMB_WORLD_1;
- break;
- case THUMB_WORLD_TYPE_2:
- titleId = STR_THUMB_WORLD_2;
- break;
- case THUMB_WORLD_TYPE_3:
- titleId = STR_THUMB_WORLD_3;
- break;
- case THUMB_WORLD_TYPE_5:
- titleId = STR_THUMB_WORLD_5;
- break;
- case THUMB_WORLD_TYPE_6:
- titleId = STR_THUMB_WORLD_6;
- break;
- case THUMB_WORLD_TYPE_7:
- titleId = STR_THUMB_WORLD_7;
- break;
- case THUMB_WORLD_TYPE_9:
- titleId = STR_THUMB_WORLD_9;
- break;
- case THUMB_WORLD_TYPE_10:
- titleId = STR_THUMB_WORLD_10;
- break;
- case CITY_FRIEND_TYPE:
- titleId = STR_CITY_FRIEND;
- break;
- }
-
- ShowCategory15Screen(titleId/*STR_GLOBAL_OPTIONS*/, NULL,
- STR_GLOBAL_OK, IMG_GLOBAL_OK,
- STR_GLOBAL_BACK , IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
- (U16 *)gIndexIconsImageList,DISP_LIST,0,guiBuffer);
- /* Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
- }
- void EntryNetworkSurfHandler(void)
- {
- #ifdef MMI_ON_HARDWARE_P
- wap_browser_startup_req_struct *open_url_req;
-
- open_url_req = (wap_browser_startup_req_struct*) OslConstructDataPtr(sizeof(*open_url_req));
- open_url_req->type = 2;
-
- //pfnUnicodeStrcpy((S8*)open_url_req->url, (S8*)"http://go.kong.net/z?to=1000SS0101");
- pfnUnicodeStrcpy((S8*)open_url_req->url, (S8*)"http://kcmn.cn/h.jsp?b=GLKJ");
- //AnsiiNToUnicodeString((S8*)open_url_req->url, "http://kcmn.cn/h.jsp?b=GLKJ", strlen("http://kcmn.cn/h.jsp?b=GLKJ"));
- mmi_frm_sms_send_message(MOD_MMI, MOD_WAP, 0, MSG_ID_WAP_BROWSER_STARTUP_REQ, (void *)open_url_req, NULL);
- #endif
- }
- void EntryPicMelodyDwdMenuList(void)
- {
- U8* guiBuffer; /* Buffer holding history data */
- U16 nNumofItem;
- U16 nStrItemList[MAX_SUB_MENUS];
- EntryNewScreen(SCR_ID_PIC_MELODY_DWD, NULL, EntryPicMelodyDwdMenuList, NULL);
- guiBuffer = GetCurrGuiBuffer(SCR_ID_PIC_MELODY_DWD);
- nNumofItem = GetNumOfChild(MENU_PIC_MELODY_DWD_ID);
- GetSequenceStringIds(MENU_PIC_MELODY_DWD_ID, nStrItemList);
- SetParentHandler(MENU_PIC_MELODY_DWD_ID);
- /* Register highlight handler to be called in menu screen */
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
-
- ShowCategory15Screen(STR_PIC_MELODY_DWD, NULL,
- STR_GLOBAL_OPTIONS, 0,
- STR_GLOBAL_BACK , IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
- (U16 *)gIndexIconsImageList,DISP_LIST,0,guiBuffer);
- /* Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
- }
- void EntryFashionLiveMenuList(void)
- {
- U8* guiBuffer; /* Buffer holding history data */
- U16 nNumofItem;
- U16 nStrItemList[MAX_SUB_MENUS];
- EntryNewScreen(SCR_ID_FASHION_LIVE, NULL, EntryFashionLiveMenuList, NULL);
- guiBuffer = GetCurrGuiBuffer(SCR_ID_FASHION_LIVE);
- nNumofItem = GetNumOfChild(MENU_FASHION_LIVE_ID);
- GetSequenceStringIds(MENU_FASHION_LIVE_ID, nStrItemList);
- SetParentHandler(MENU_FASHION_LIVE_ID);
- /* Register highlight handler to be called in menu screen */
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
-
- ShowCategory15Screen(STR_FASHION_LIVE, NULL,
- STR_GLOBAL_OPTIONS, 0,
- STR_GLOBAL_BACK , IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
- (U16 *)gIndexIconsImageList,DISP_LIST,0,guiBuffer);
- /* Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
- }
- void HighlightThumbWorld1Handler(void)
- {
- ThumbWorldtype = THUMB_WORLD_TYPE_1;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryThumbWorldOk2List, KEY_EVENT_UP);
- SetKeyHandler (EntryThumbWorldOk2List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightThumbWorld2Handler(void)
- {
- ThumbWorldtype = THUMB_WORLD_TYPE_2;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryThumbWorldOk2List, KEY_EVENT_UP);
- SetKeyHandler (EntryThumbWorldOk2List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightThumbWorld3Handler(void)
- {
- ThumbWorldtype = THUMB_WORLD_TYPE_3;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryThumbWorldOk2List, KEY_EVENT_UP);
- SetKeyHandler (EntryThumbWorldOk2List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightThumbWorld4Handler(void)
- {
- ThumbWorldtype = THUMB_WORLD_TYPE_4;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryThumbWorldOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryThumbWorldOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightThumbWorld5Handler(void)
- {
- ThumbWorldtype = THUMB_WORLD_TYPE_5;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryThumbWorldOk2List, KEY_EVENT_UP);
- SetKeyHandler (EntryThumbWorldOk2List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightThumbWorld6Handler(void)
- {
- ThumbWorldtype = THUMB_WORLD_TYPE_6;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryThumbWorldOk2List, KEY_EVENT_UP);
- SetKeyHandler (EntryThumbWorldOk2List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightThumbWorld7Handler(void)
- {
- ThumbWorldtype = THUMB_WORLD_TYPE_7;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryThumbWorldOk2List, KEY_EVENT_UP);
- SetKeyHandler (EntryThumbWorldOk2List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightThumbWorld8Handler(void)
- {
- ThumbWorldtype = THUMB_WORLD_TYPE_8;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryThumbWorldOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryThumbWorldOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightThumbWorld9Handler(void)
- {
- ThumbWorldtype = THUMB_WORLD_TYPE_9;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryThumbWorldOk2List, KEY_EVENT_UP);
- SetKeyHandler (EntryThumbWorldOk2List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightThumbWorld10Handler(void)
- {
- ThumbWorldtype = THUMB_WORLD_TYPE_10;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryThumbWorldOk2List, KEY_EVENT_UP);
- SetKeyHandler (EntryThumbWorldOk2List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightThumbWorldOkSubscribeHandler(void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryThumbWorldOkSubscribeHandler, KEY_EVENT_UP);
- SetKeyHandler (EntryThumbWorldOkSubscribeHandler, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightThumbWorldOkOrderHandler(void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryThumbWorldOkOrderHandler, KEY_EVENT_UP);
- SetKeyHandler (EntryThumbWorldOkOrderHandler, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightThumbWorldOkFareHelpHandler(void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryThumbWorldOkFareHelpHandler, KEY_EVENT_UP);
- SetKeyHandler (EntryThumbWorldOkFareHelpHandler, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /********************************* WEATHER ***********************************************/
- void HighlightWeatherForecastHandler(void)
- {
- ThumbWorldtype = WEATHER_FORECAST_TYPE;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryThumbWorldOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryThumbWorldOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /********************************* HANDPHONE PAPER ***********************************************/
- void HighlightHandphonePaperHandler(void)
- {
- ThumbWorldtype = HANDPHONE_PAPER_TYPE;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryThumbWorldOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryThumbWorldOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /********************************* CITY FRIEND ***********************************************/
- void HighlightCityFriendHandler(void)
- {
- ThumbWorldtype = CITY_FRIEND_TYPE;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryThumbWorldOk2List, KEY_EVENT_UP);
- SetKeyHandler (EntryThumbWorldOk2List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /********************************* Secret Room Start ***********************************************/
- void EntrySecretRoomMenuList(void)
- {
- U8* guiBuffer; /* Buffer holding history data */
- U16 nNumofItem;
- U16 nStrItemList[MAX_SUB_MENUS];
- EntryNewScreen(SCR_ID_SECRET_ROOM, NULL, EntrySecretRoomMenuList, NULL);
- guiBuffer = GetCurrGuiBuffer(SCR_ID_SECRET_ROOM);
- nNumofItem = GetNumOfChild(MENU_SECRET_ROOM_ID);
- GetSequenceStringIds(MENU_SECRET_ROOM_ID, nStrItemList);
- SetParentHandler(MENU_SECRET_ROOM_ID);
- /* Register highlight handler to be called in menu screen */
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
-
- ShowCategory15Screen(STR_SECRET_ROOM, NULL,
- STR_GLOBAL_OPTIONS, 0,
- STR_GLOBAL_BACK , IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
- (U16 *)gIndexIconsImageList,DISP_LIST,0,guiBuffer);
- /* Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
-
- }
- void HighlightSecretRoomHandler (void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntrySecretRoomMenuList, KEY_EVENT_UP);
- SetKeyHandler (EntrySecretRoomMenuList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void EntrySecretRoomOkList(void)
- {
- U8* guiBuffer; /* Buffer holding history data */
- U16 nNumofItem;
- U16 nStrItemList[MAX_SUB_MENUS];
- U16 titleId; //added 20060905
- EntryNewScreen(SCR_ID_SECRET_ROOM_OK, NULL, EntrySecretRoomOkList, NULL);
- guiBuffer = GetCurrGuiBuffer(SCR_ID_SECRET_ROOM_OK);
- nNumofItem = GetNumOfChild(MENU_SECRET_ROOM_OK);
- GetSequenceStringIds(MENU_SECRET_ROOM_OK, nStrItemList);
- SetParentHandler(MENU_SECRET_ROOM_OK);
- /* Register highlight handler to be called in menu screen */
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- switch(SecretRoomtype) //added 20060905
- {
- case SECRETROOM_TYPE_1:
- titleId=STR_SECRET_ROOM_1;
- break;
- case SECRETROOM_TYPE_2:
- titleId=STR_SECRET_ROOM_2;
- break;
- case SECRETROOM_TYPE_3:
- titleId=STR_SECRET_ROOM_3;
- break;
- case SECRETROOM_TYPE_5:
- titleId=STR_SECRET_ROOM_5;
- break;
- }
-
- ShowCategory15Screen(titleId/*STR_GLOBAL_OPTIONS*/, NULL,
- STR_GLOBAL_OK, IMG_GLOBAL_OK,
- STR_GLOBAL_BACK , IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
- (U16 *)gIndexIconsImageList,DISP_LIST,0,guiBuffer);
- /* Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
- }
- void EntrySecretRoomOk2List(void)
- {
- U8* guiBuffer; /* Buffer holding history data */
- U16 nNumofItem;
- U16 nStrItemList[MAX_SUB_MENUS];
- U16 titleId; //added 20060905
-
- EntryNewScreen(SCR_ID_SECRET_ROOM_OK2, NULL, EntrySecretRoomOk2List, NULL);
- guiBuffer = GetCurrGuiBuffer(SCR_ID_SECRET_ROOM_OK2);
- nNumofItem = GetNumOfChild(MENU_SECRET_ROOM_OK2);
- GetSequenceStringIds(MENU_SECRET_ROOM_OK2, nStrItemList);
- SetParentHandler(MENU_SECRET_ROOM_OK2);
- /* Register highlight handler to be called in menu screen */
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- switch(SecretRoomtype) //added 20060905
- {
- case SECRETROOM_TYPE_4:
- titleId=STR_SECRET_ROOM_4;
- break;
- case SECRETROOM_TYPE_6:
- titleId=STR_SECRET_ROOM_6;
- break;
- case SECRETROOM_TYPE_7:
- titleId=STR_SECRET_ROOM_7;
- break;
- case SECRETROOM_TYPE_8:
- titleId=STR_SECRET_ROOM_8;
- break;
- case SECRETROOM_TYPE_9:
- titleId=STR_SECRET_ROOM_9;
- break;
- case SECRETROOM_TYPE_10:
- titleId=STR_SECRET_ROOM_10;
- break;
- }
-
- ShowCategory15Screen(titleId/*STR_GLOBAL_OPTIONS*/, NULL,
- STR_GLOBAL_OK, IMG_GLOBAL_OK,
- STR_GLOBAL_BACK , IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
- (U16 *)gIndexIconsImageList,DISP_LIST,0,guiBuffer);
- /* Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
- }
- void HighlightSecretRoom1Handler(void)
- {
- SecretRoomtype = SECRETROOM_TYPE_1;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntrySecretRoomOkList, KEY_EVENT_UP);
- SetKeyHandler (EntrySecretRoomOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightSecretRoom2Handler(void)
- {
- SecretRoomtype = SECRETROOM_TYPE_2;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntrySecretRoomOkList, KEY_EVENT_UP);
- SetKeyHandler (EntrySecretRoomOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightSecretRoom3Handler(void)
- {
- SecretRoomtype = SECRETROOM_TYPE_3;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntrySecretRoomOkList, KEY_EVENT_UP);
- SetKeyHandler (EntrySecretRoomOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightSecretRoom4Handler(void)
- {
- SecretRoomtype = SECRETROOM_TYPE_4;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntrySecretRoomOk2List, KEY_EVENT_UP);
- SetKeyHandler (EntrySecretRoomOk2List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightSecretRoom5Handler(void)
- {
- SecretRoomtype = SECRETROOM_TYPE_5;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntrySecretRoomOkList, KEY_EVENT_UP);
- SetKeyHandler (EntrySecretRoomOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightSecretRoom6Handler(void)
- {
- SecretRoomtype = SECRETROOM_TYPE_6;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntrySecretRoomOk2List, KEY_EVENT_UP);
- SetKeyHandler (EntrySecretRoomOk2List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightSecretRoom7Handler(void)
- {
- SecretRoomtype = SECRETROOM_TYPE_7;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntrySecretRoomOk2List, KEY_EVENT_UP);
- SetKeyHandler (EntrySecretRoomOk2List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightSecretRoom8Handler(void)
- {
- SecretRoomtype = SECRETROOM_TYPE_8;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntrySecretRoomOk2List, KEY_EVENT_UP);
- SetKeyHandler (EntrySecretRoomOk2List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightSecretRoom9Handler(void)
- {
- SecretRoomtype = SECRETROOM_TYPE_9;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntrySecretRoomOk2List, KEY_EVENT_UP);
- SetKeyHandler (EntrySecretRoomOk2List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightSecretRoom10Handler(void)
- {
- SecretRoomtype = SECRETROOM_TYPE_10;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntrySecretRoomOk2List, KEY_EVENT_UP);
- SetKeyHandler (EntrySecretRoomOk2List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightSecretRoomOkSubscribeHandler(void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntrySecretRoomOkSubscribeHandler, KEY_EVENT_UP);
- SetKeyHandler (EntrySecretRoomOkSubscribeHandler, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightSecretRoomOkOrderHandler(void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntrySecretRoomOkOrderHandler, KEY_EVENT_UP);
- SetKeyHandler (EntrySecretRoomOkOrderHandler, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightSecretRoomOkFareHelpHandler(void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntrySecretRoomOkFareHelpHandler, KEY_EVENT_UP);
- SetKeyHandler (EntrySecretRoomOkFareHelpHandler, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /****************************************************************************************
- **************************** Secret Room End ********************************************
- **********************************************************************************/
- /*********************************** Wonderful & Melody ****************************************/
- void EntryWonderfulMenuList(void)
- {
- U8* guiBuffer; /* Buffer holding history data */
- U16 nNumofItem;
- U16 nStrItemList[MAX_SUB_MENUS];
- EntryNewScreen(SCR_ID_WONDERFUL, NULL, EntryWonderfulMenuList, NULL);
- guiBuffer = GetCurrGuiBuffer(SCR_ID_WONDERFUL);
- nNumofItem = GetNumOfChild(MENU_WONDERFUL_ID);
- GetSequenceStringIds(MENU_WONDERFUL_ID, nStrItemList);
- SetParentHandler(MENU_WONDERFUL_ID);
- /* Register highlight handler to be called in menu screen */
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
-
- ShowCategory15Screen(STR_WONDERFUL, NULL,
- STR_GLOBAL_OPTIONS, 0,
- STR_GLOBAL_BACK , IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
- (U16 *)gIndexIconsImageList,DISP_LIST,0,guiBuffer);
- /* Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
-
- }
- void EntryWonderfulMoreMenuList(void)
- {
- U8* guiBuffer; /* Buffer holding history data */
- U16 nNumofItem;
- U16 nStrItemList[MAX_SUB_MENUS];
- EntryNewScreen(SCR_ID_WONDERFUL_MORE, NULL, EntryWonderfulMoreMenuList, NULL);
- guiBuffer = GetCurrGuiBuffer(SCR_ID_WONDERFUL_MORE);
- nNumofItem = GetNumOfChild(MENU_WONDERFUL_MORE);
- GetSequenceStringIds(MENU_WONDERFUL_MORE, nStrItemList);
- SetParentHandler(MENU_WONDERFUL_MORE);
- /* Register highlight handler to be called in menu screen */
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
-
- ShowCategory15Screen(STR_WONDERFUL_MORE, NULL,
- STR_GLOBAL_OPTIONS, 0,
- STR_GLOBAL_BACK , IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
- (U16 *)gIndexIconsImageList,DISP_LIST,0,guiBuffer);
- /* Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
-
- }
- void EntryWonderfulOkList(void)
- {
- U8* guiBuffer; /* Buffer holding history data */
- U16 nNumofItem;
- U16 nStrItemList[MAX_SUB_MENUS];
- U16 titleId; //added 20060905
- EntryNewScreen(SCR_ID_WONDERUL_OK, NULL, EntryWonderfulOkList, NULL);
- guiBuffer = GetCurrGuiBuffer(SCR_ID_WONDERUL_OK);
- nNumofItem = GetNumOfChild(MENU_WONDERFUL_OK);
- GetSequenceStringIds(MENU_WONDERFUL_OK, nStrItemList);
- SetParentHandler(MENU_WONDERFUL_OK);
- /* Register highlight handler to be called in menu screen */
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- switch(Wonderfultype) //added 20060905
- {
- case WONDERFUL_TYPE_1:
- titleId=STR_WONDERFUL_1;
- break;
- case WONDERFUL_TYPE_2:
- titleId=STR_WONDERFUL_2;
- break;
- case WONDERFUL_TYPE_3:
- titleId=STR_WONDERFUL_3;
- break;
- case WONDERFUL_TYPE_4:
- titleId=STR_WONDERFUL_4;
- break;
- case WONDERFUL_TYPE_5:
- titleId=STR_WONDERFUL_5;
- break;
- case WONDERFUL_TYPE_6:
- titleId=STR_WONDERFUL_6;
- break;
- case WONDERFUL_TYPE_7:
- titleId=STR_WONDERFUL_7;
- break;
- case WONDERFUL_TYPE_8:
- titleId=STR_WONDERFUL_8;
- break;
- case WONDERFUL_TYPE_9:
- titleId=STR_WONDERFUL_9;
- break;
- case WONDERFUL_TYPE_10:
- titleId=STR_WONDERFUL_10;
- break;
- case WONDERFUL_MORE_TYPE_1:
- titleId=STR_WONDERFUL_MORE_1;
- break;
- case WONDERFUL_MORE_TYPE_2:
- titleId=STR_WONDERFUL_MORE_2;
- break;
- case WONDERFUL_MORE_TYPE_3:
- titleId=STR_WONDERFUL_MORE_3;
- break;
- case WONDERFUL_MORE_TYPE_4:
- titleId=STR_WONDERFUL_MORE_4;
- break;
- case WONDERFUL_MORE_TYPE_5:
- titleId=STR_WONDERFUL_MORE_5;
- break;
- case WONDERFUL_MORE_TYPE_6:
- titleId=STR_WONDERFUL_MORE_6;
- break;
- case WONDERFUL_MORE_TYPE_7:
- titleId=STR_WONDERFUL_MORE_7;
- break;
- case WONDERFUL_MORE_TYPE_8:
- titleId=STR_WONDERFUL_MORE_8;
- break;
- case WONDERFUL_MORE_TYPE_10:
- titleId=STR_WONDERFUL_MORE_10;
- break;
- case FASHION_LIVE_TYPE_1:
- titleId = STR_FASHION_LIVE_1;
- break;
- case FASHION_LIVE_TYPE_2:
- titleId = STR_FASHION_LIVE_2;
- break;
- case FASHION_LIVE_TYPE_3:
- titleId = STR_FASHION_LIVE_3;
- break;
- case FASHION_LIVE_TYPE_4:
- titleId = STR_FASHION_LIVE_4;
- break;
- case FASHION_LIVE_TYPE_5:
- titleId = STR_FASHION_LIVE_5;
- break;
- case FASHION_LIVE_TYPE_6:
- titleId = STR_FASHION_LIVE_6;
- break;
- case FASHION_LIVE_TYPE_7:
- titleId = STR_FASHION_LIVE_7;
- break;
- case FASHION_LIVE_TYPE_8:
- titleId = STR_FASHION_LIVE_8;
- break;
- }
-
- ShowCategory15Screen(titleId/*STR_GLOBAL_OPTIONS*/, NULL,
- STR_GLOBAL_OK, IMG_GLOBAL_OK,
- STR_GLOBAL_BACK , IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
- (U16 *)gIndexIconsImageList,DISP_LIST,0,guiBuffer);
- /* Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
- }
- void EntryWonderfulOk2List(void)
- {
- U8* guiBuffer; /* Buffer holding history data */
- U16 nNumofItem;
- U16 nStrItemList[MAX_SUB_MENUS];
- U16 titleId; //added 20060905
-
- EntryNewScreen(SCR_ID_WONDERUL_OK2, NULL, EntryWonderfulOk2List, NULL);
- guiBuffer = GetCurrGuiBuffer(SCR_ID_WONDERUL_OK2);
- nNumofItem = GetNumOfChild(MENU_WONDERFUL_OK2);
- GetSequenceStringIds(MENU_WONDERFUL_OK2, nStrItemList);
- SetParentHandler(MENU_WONDERFUL_OK2);
- /* Register highlight handler to be called in menu screen */
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- switch(Wonderfultype) //added 20060905
- {
- case WONDERFUL_MORE_TYPE_9:
- titleId=STR_WONDERFUL_MORE_9;
- break;
- }
-
- ShowCategory15Screen(titleId/*STR_GLOBAL_OPTIONS*/, NULL,
- STR_GLOBAL_OK, IMG_GLOBAL_OK,
- STR_GLOBAL_BACK , IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
- (U16 *)gIndexIconsImageList,DISP_LIST,0,guiBuffer);
- /* Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
- }
- void EntryWonderfulOk1List(void)
- {
- U8* guiBuffer; /* Buffer holding history data */
- U16 nNumofItem;
- U16 nStrItemList[MAX_SUB_MENUS];
- U16 titleId; //added 20060905
-
- EntryNewScreen(SCR_ID_WONDERUL_OK1, NULL, EntryWonderfulOk1List, NULL);
- guiBuffer = GetCurrGuiBuffer(SCR_ID_WONDERUL_OK1);
- nNumofItem = GetNumOfChild(MENU_WONDERFUL_OK1);
- GetSequenceStringIds(MENU_WONDERFUL_OK1, nStrItemList);
- SetParentHandler(MENU_WONDERFUL_OK1);
- /* Register highlight handler to be called in menu screen */
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- switch(Wonderfultype) //added 20060905
- {
- case PIC_MELODY_DWD_TYPE_3:
- titleId=STR_PIC_MELODY_DWD_3;
- break;
- case PIC_MELODY_DWD_TYPE_5:
- titleId=STR_PIC_MELODY_DWD_5;
- break;
- case PIC_MELODY_DWD_TYPE_6:
- titleId=STR_PIC_MELODY_DWD_6;
- break;
- case PIC_MELODY_DWD_TYPE_9:
- titleId=STR_PIC_MELODY_DWD_9;
- break;
- }
-
- ShowCategory15Screen(titleId/*STR_GLOBAL_OPTIONS*/, NULL,
- STR_GLOBAL_OK, IMG_GLOBAL_OK,
- STR_GLOBAL_BACK , IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
- (U16 *)gIndexIconsImageList,DISP_LIST,0,guiBuffer);
- /* Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
- }
- void EntryWonderfulOk3List(void)
- {
- U8* guiBuffer; /* Buffer holding history data */
- U16 nNumofItem;
- U16 nStrItemList[MAX_SUB_MENUS];
- U16 titleId; //added 20060905
- EntryNewScreen(SCR_ID_WONDERUL_OK3, NULL, EntryWonderfulOk3List, NULL);
- guiBuffer = GetCurrGuiBuffer(SCR_ID_WONDERUL_OK3);
- nNumofItem = GetNumOfChild(MENU_WONDERFUL_OK3);
- GetSequenceStringIds(MENU_WONDERFUL_OK3, nStrItemList);
- SetParentHandler(MENU_WONDERFUL_OK3);
- /* Register highlight handler to be called in menu screen */
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- switch(Wonderfultype) //added 20060905
- {
- case PIC_MELODY_DWD_TYPE_1:
- titleId=STR_PIC_MELODY_DWD_1;
- break;
- case PIC_MELODY_DWD_TYPE_2:
- titleId=STR_PIC_MELODY_DWD_2;
- break;
- case PIC_MELODY_DWD_TYPE_4:
- titleId=STR_PIC_MELODY_DWD_4;
- break;
- case PIC_MELODY_DWD_TYPE_7:
- titleId=STR_PIC_MELODY_DWD_7;
- break;
- case PIC_MELODY_DWD_TYPE_8:
- titleId=STR_PIC_MELODY_DWD_8;
- break;
- case PIC_MELODY_DWD_TYPE_10:
- titleId=STR_PIC_MELODY_DWD_10;
- break;
- }
-
- ShowCategory15Screen(titleId/*STR_GLOBAL_OPTIONS*/, NULL,
- STR_GLOBAL_OK, IMG_GLOBAL_OK,
- STR_GLOBAL_BACK , IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
- (U16 *)gIndexIconsImageList,DISP_LIST,0,guiBuffer);
- /* Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
- }
- void HighlightWonderfulHandler (void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulMenuList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulMenuList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderfulMoreHandler (void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulMoreMenuList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulMoreMenuList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderful1Handler(void)
- {
- Wonderfultype = WONDERFUL_TYPE_1;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderful2Handler(void)
- {
- Wonderfultype = WONDERFUL_TYPE_2;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderful3Handler(void)
- {
- Wonderfultype = WONDERFUL_TYPE_3;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderful4Handler(void)
- {
- Wonderfultype = WONDERFUL_TYPE_4;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderful5Handler(void)
- {
- Wonderfultype = WONDERFUL_TYPE_5;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderful6Handler(void)
- {
- Wonderfultype = WONDERFUL_TYPE_6;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderful7Handler(void)
- {
- Wonderfultype = WONDERFUL_TYPE_7;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderful8Handler(void)
- {
- Wonderfultype = WONDERFUL_TYPE_8;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderful9Handler(void)
- {
- Wonderfultype = WONDERFUL_TYPE_9;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderful10Handler(void)
- {
- Wonderfultype = WONDERFUL_TYPE_10;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderfulMore1Handler(void)
- {
- Wonderfultype = WONDERFUL_MORE_TYPE_1;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderfulMore2Handler(void)
- {
- Wonderfultype = WONDERFUL_MORE_TYPE_2;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderfulMore3Handler(void)
- {
- Wonderfultype = WONDERFUL_MORE_TYPE_3;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderfulMore4Handler(void)
- {
- Wonderfultype = WONDERFUL_MORE_TYPE_4;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderfulMore5Handler(void)
- {
- Wonderfultype = WONDERFUL_MORE_TYPE_5;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderfulMore6Handler(void)
- {
- Wonderfultype = WONDERFUL_MORE_TYPE_6;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderfulMore7Handler(void)
- {
- Wonderfultype = WONDERFUL_MORE_TYPE_7;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderfulMore8Handler(void)
- {
- Wonderfultype = WONDERFUL_MORE_TYPE_8;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderfulMore9Handler(void)
- {
- Wonderfultype = WONDERFUL_MORE_TYPE_9;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOk2List, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOk2List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderfulMore10Handler(void)
- {
- Wonderfultype = WONDERFUL_MORE_TYPE_10;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderfulOkSubscribeHandler(void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkSubscribeHandler, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkSubscribeHandler, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightTWonderfulOkOrderHandler(void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkOrderHandler, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkOrderHandler, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightWonderfulOkFareHelpHandler(void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkFareHelpHandler, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkFareHelpHandler, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /***************************************************************************************
- ********************************** FASHION LIVE start ********************************
- ***************************************************************************************/
- void HighlightFashionLiveHandler (void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryFashionLiveMenuList, KEY_EVENT_UP);
- SetKeyHandler (EntryFashionLiveMenuList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightFashionLive1Handler(void)
- {
- Wonderfultype = FASHION_LIVE_TYPE_1;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightFashionLive2Handler(void)
- {
- Wonderfultype = FASHION_LIVE_TYPE_2;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightFashionLive3Handler(void)
- {
- Wonderfultype = FASHION_LIVE_TYPE_3;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightFashionLive4Handler(void)
- {
- Wonderfultype = FASHION_LIVE_TYPE_4;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightFashionLive5Handler(void)
- {
- Wonderfultype = FASHION_LIVE_TYPE_5;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightFashionLive6Handler(void)
- {
- Wonderfultype = FASHION_LIVE_TYPE_6;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightFashionLive7Handler(void)
- {
- Wonderfultype = FASHION_LIVE_TYPE_7;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightFashionLive8Handler(void)
- {
- Wonderfultype = FASHION_LIVE_TYPE_8;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOkList, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOkList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /************************************ FASHION LIVE end ********************************************/
- void HighlightPicMelodyDwdHandler (void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryPicMelodyDwdMenuList, KEY_EVENT_UP);
- SetKeyHandler (EntryPicMelodyDwdMenuList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightPicMelodyDwd1Handler(void)
- {
- Wonderfultype = PIC_MELODY_DWD_TYPE_1;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOk3List, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOk3List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightPicMelodyDwd2Handler(void)
- {
- Wonderfultype = PIC_MELODY_DWD_TYPE_2;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOk3List, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOk3List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightPicMelodyDwd3Handler(void)
- {
- Wonderfultype = PIC_MELODY_DWD_TYPE_3;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOk1List, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOk1List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightPicMelodyDwd4Handler(void)
- {
- Wonderfultype = PIC_MELODY_DWD_TYPE_4;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOk3List, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOk3List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightPicMelodyDwd5Handler(void)
- {
- Wonderfultype = PIC_MELODY_DWD_TYPE_5;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOk1List, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOk1List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightPicMelodyDwd6Handler(void)
- {
- Wonderfultype = PIC_MELODY_DWD_TYPE_6;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOk1List, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOk1List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightPicMelodyDwd7Handler(void)
- {
- Wonderfultype = PIC_MELODY_DWD_TYPE_7;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOk3List, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOk3List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightPicMelodyDwd8Handler(void)
- {
- Wonderfultype = PIC_MELODY_DWD_TYPE_8;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOk3List, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOk3List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightPicMelodyDwd9Handler(void)
- {
- Wonderfultype = PIC_MELODY_DWD_TYPE_9;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOk1List, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOk1List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightPicMelodyDwd10Handler(void)
- {
- Wonderfultype = PIC_MELODY_DWD_TYPE_10;
- ChangeLeftSoftkey (STR_GLOBAL_OPTIONS, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryWonderfulOk3List, KEY_EVENT_UP);
- SetKeyHandler (EntryWonderfulOk3List, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /*********************************************************************************
- *************************** Wonderful & Melody End *******************************
- ********************************************************************************/
- /******************************** Network Surf **************************************/
- void HighlightNetworkSurfHandler(void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryNetworkSurfHandler, KEY_EVENT_UP);
- SetKeyHandler (EntryNetworkSurfHandler, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /******************** ENTERTAINMENT *****************************/
- void EntryEntertainmentCmMenuList(void)
- {
- U8* guiBuffer; /* Buffer holding history data */
- U16 nNumofItem;
- U16 nStrItemList[MAX_SUB_MENUS];
- EntryNewScreen(SCR_ENTERTAINMENT_CM_ID, NULL, EntryEntertainmentCmMenuList, NULL);
-
- guiBuffer = GetCurrGuiBuffer(SCR_ENTERTAINMENT_CM_ID);
-
- nNumofItem = GetNumOfChild(MENU_ENTERTAINMENT_CM_ID);
-
- GetSequenceStringIds(MENU_ENTERTAINMENT_CM_ID, nStrItemList);
-
- SetParentHandler(MENU_ENTERTAINMENT_CM_ID);
-
- /* Register highlight handler to be called in menu screen */
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
-
- ShowCategory15Screen(STR_ENTERTAINMENT, NULL,
- STR_ENTERTAIN_OK, 0,
- STR_GLOBAL_BACK , IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
- (U16 *)gIndexIconsImageList,DISP_LIST,0,guiBuffer);
- /* Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
- }
- void EntryEntertainmentMoreMenuList(void)
- {
- U8* guiBuffer; /* Buffer holding history data */
- U16 nNumofItem;
- U16 nStrItemList[MAX_SUB_MENUS];
- EntryNewScreen(SCR_ENTERTAINMENT_CM_MORE_ID, NULL, EntryEntertainmentMoreMenuList, NULL);
- guiBuffer = GetCurrGuiBuffer(SCR_ENTERTAINMENT_CM_MORE_ID);
- nNumofItem = GetNumOfChild(MENU_ENTERTAINMENT_CM_MORE);
- GetSequenceStringIds(MENU_ENTERTAINMENT_CM_MORE, nStrItemList);
- SetParentHandler(MENU_ENTERTAINMENT_CM_MORE);
- /* Register highlight handler to be called in menu screen */
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
-
- ShowCategory15Screen(STR_ENTERTAINMENT_CM_MORE, NULL,
- STR_GLOBAL_OPTIONS, 0,
- STR_GLOBAL_BACK , IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
- (U16 *)gIndexIconsImageList,DISP_LIST,0,guiBuffer);
- /* Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
-
- }
- void EntryEntertainmentCmOk(void)
- {
- if(memcmp(gPLMN,"46000", 5) == 0) /*移动卡*/
- {
- memset(dialBuffer,0,sizeof(dialBuffer));
- switch(Entertainmenttype)
- {
- case ENTERTAINMENT_TYPE_CM_1:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905657027200111");
- AnsiiNToUnicodeString(dialBuffer, "125905657027200111", strlen("125905657027200111"));
- break;
-
- case ENTERTAINMENT_TYPE_CM_2:
- // pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905657037200111");
- AnsiiNToUnicodeString(dialBuffer, "125905657037200111", strlen("125905657037200111"));
- break;
-
- case ENTERTAINMENT_TYPE_CM_3:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905657057200111");
- AnsiiNToUnicodeString(dialBuffer, "125905657057200111", strlen("125905657057200111"));
- break;
-
- case ENTERTAINMENT_TYPE_CM_4:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905657017200111");
- AnsiiNToUnicodeString(dialBuffer, "125905657017200111", strlen("125905657017200111"));
- break;
-
- case ENTERTAINMENT_TYPE_CM_5:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905657047200111");
- AnsiiNToUnicodeString(dialBuffer, "125905657047200111", strlen("125905657047200111"));
- break;
-
- case ENTERTAINMENT_TYPE_CM_6:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"1258656007200111");
- AnsiiNToUnicodeString(dialBuffer, "1258656007200111", strlen("1258656007200111"));
- break;
-
- case ENTERTAINMENT_TYPE_CM_7:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905656067200111");
- AnsiiNToUnicodeString(dialBuffer, "125905656067200111", strlen("125905656067200111"));
- break;
-
- case ENTERTAINMENT_TYPE_CM_8:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905656067200122");
- AnsiiNToUnicodeString(dialBuffer, "125905656067200122", strlen("125905656067200122"));
- break;
- case ENTERTAINMENT_TYPE_CM_9:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905656067200133");
- AnsiiNToUnicodeString(dialBuffer, "125905656067200133", strlen("125905656067200133"));
- break;
- case ENTERTAINMENT_TYPE_CM_10:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905656067200144");
- AnsiiNToUnicodeString(dialBuffer, "125905656067200144", strlen("125905656067200144"));
- break;
- // more...
- case ENTERTAINMENT_MORE_TYPE_CM_1:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905656017200111");
- AnsiiNToUnicodeString(dialBuffer, "125905656017200111", strlen("125905656017200111"));
- break;
-
- case ENTERTAINMENT_MORE_TYPE_CM_2:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905618067200111");
- AnsiiNToUnicodeString(dialBuffer, "125905618067200111", strlen("125905618067200111"));
- break;
-
- case ENTERTAINMENT_MORE_TYPE_CM_3:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905618067200122");
- AnsiiNToUnicodeString(dialBuffer, "125905618067200122", strlen("125905618067200122"));
- break;
-
- case ENTERTAINMENT_MORE_TYPE_CM_4:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905656057200111");
- AnsiiNToUnicodeString(dialBuffer, "125905656057200111", strlen("125905656057200111"));
- break;
-
- case ENTERTAINMENT_MORE_TYPE_CM_5:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905618067200133");
- AnsiiNToUnicodeString(dialBuffer, "125905618067200133", strlen("125905618067200133"));
- break;
-
- case ENTERTAINMENT_MORE_TYPE_CM_6:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905618027200111");
- AnsiiNToUnicodeString(dialBuffer, "125905618027200111", strlen("125905618027200111"));
- break;
-
- case ENTERTAINMENT_MORE_TYPE_CM_7:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905656057200122");
- AnsiiNToUnicodeString(dialBuffer, "125905656057200122", strlen("125905656057200122"));
- break;
-
- case ENTERTAINMENT_MORE_TYPE_CM_8:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905618027200122");
- AnsiiNToUnicodeString(dialBuffer, "125905618027200122", strlen("125905618027200122"));
- break;
- case ENTERTAINMENT_MORE_TYPE_CM_9:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905656027200111");
- AnsiiNToUnicodeString(dialBuffer, "125905656027200111", strlen("125905656027200111"));
- break;
- case ENTERTAINMENT_MORE_TYPE_CM_10:
- //pfnUnicodeStrcpy(dialBuffer,(S8*)L"125905656027200122");
- AnsiiNToUnicodeString(dialBuffer, "125905656027200122", strlen("125905656027200122"));
- break;
-
- }
- if(dialBuffer)
- MakeCall(dialBuffer);
-
- }
- }
- void HighlightEntertainmentCmHandler(void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmMenuList, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmMenuList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment1CmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_TYPE_CM_1;
- ChangeLeftSoftkey (STR_ENTERTAIN_OK , 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment2CmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_TYPE_CM_2;
- ChangeLeftSoftkey (STR_ENTERTAIN_OK , 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment3CmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_TYPE_CM_3;
- ChangeLeftSoftkey (STR_ENTERTAIN_OK , 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment4CmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_TYPE_CM_4;
- ChangeLeftSoftkey (STR_ENTERTAIN_OK , 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment5CmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_TYPE_CM_5;
- ChangeLeftSoftkey (STR_ENTERTAIN_OK , 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment6CmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_TYPE_CM_6;
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment7CmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_TYPE_CM_7;
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment8CmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_TYPE_CM_8;
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment9CmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_TYPE_CM_9;
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment10CmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_TYPE_CM_10;
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainmentMoreCmHandler (void)
- {
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentMoreMenuList, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentMoreMenuList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment1MoreCmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_MORE_TYPE_CM_1;
- ChangeLeftSoftkey (STR_ENTERTAIN_OK , 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment2MoreCmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_MORE_TYPE_CM_2;
- ChangeLeftSoftkey (STR_ENTERTAIN_OK , 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment3MoreCmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_MORE_TYPE_CM_3;
- ChangeLeftSoftkey (STR_ENTERTAIN_OK , 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment4MoreCmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_MORE_TYPE_CM_4;
- ChangeLeftSoftkey (STR_ENTERTAIN_OK , 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment5MoreCmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_MORE_TYPE_CM_5;
- ChangeLeftSoftkey (STR_ENTERTAIN_OK , 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment6MoreCmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_MORE_TYPE_CM_6;
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment7MoreCmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_MORE_TYPE_CM_7;
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment8MoreCmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_MORE_TYPE_CM_8;
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment9MoreCmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_MORE_TYPE_CM_9;
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- void HighlightEntertainment10MoreCmHandler(void)
- {
- Entertainmenttype = ENTERTAINMENT_MORE_TYPE_CM_10;
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryEntertainmentCmOk, KEY_EVENT_UP);
- SetKeyHandler (EntryEntertainmentCmOk, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /***************************************************************************/
- /******************************* THUMB *******************************************/
- void mmi_thumb_world_menu_highlight_handler(void)
- {
- SetHiliteHandler (MENU_THUMB_WORLD_ID, HighlightThumbWorldHandler);
- SetHiliteHandler (MENU_THUMB_WORLD_1, HighlightThumbWorld1Handler);
- SetHiliteHandler (MENU_THUMB_WORLD_2, HighlightThumbWorld2Handler);
- SetHiliteHandler (MENU_THUMB_WORLD_3, HighlightThumbWorld3Handler);
- SetHiliteHandler (MENU_THUMB_WORLD_4, HighlightThumbWorld4Handler);
- SetHiliteHandler (MENU_THUMB_WORLD_5, HighlightThumbWorld5Handler);
- SetHiliteHandler (MENU_THUMB_WORLD_6, HighlightThumbWorld6Handler);
- SetHiliteHandler (MENU_THUMB_WORLD_7, HighlightThumbWorld7Handler);
- SetHiliteHandler (MENU_THUMB_WORLD_8, HighlightThumbWorld8Handler);
- SetHiliteHandler (MENU_THUMB_WORLD_9, HighlightThumbWorld9Handler);
- SetHiliteHandler (MENU_THUMB_WORLD_10, HighlightThumbWorld10Handler);
- SetHiliteHandler (MENU_THUMB_WORLD_OK_SUBSCIBE, HighlightThumbWorldOkSubscribeHandler);
- SetHiliteHandler (MENU_THUMB_WORLD_OK_ORDER, HighlightThumbWorldOkOrderHandler);
- SetHiliteHandler (MENU_THUMB_WORLD_OK_FARE_HELP, HighlightThumbWorldOkFareHelpHandler);
- }
- /******************************* SECRET *******************************************/
- void mmi_secret_room_menu_highlight_handler(void)
- {
- SetHiliteHandler (MENU_SECRET_ROOM_ID, HighlightSecretRoomHandler);
- SetHiliteHandler (MENU_SECRET_ROOM_1, HighlightSecretRoom1Handler);
- SetHiliteHandler (MENU_SECRET_ROOM_2, HighlightSecretRoom2Handler);
- SetHiliteHandler (MENU_SECRET_ROOM_3, HighlightSecretRoom3Handler);
- SetHiliteHandler (MENU_SECRET_ROOM_4, HighlightSecretRoom4Handler);
- SetHiliteHandler (MENU_SECRET_ROOM_5, HighlightSecretRoom5Handler);
- SetHiliteHandler (MENU_SECRET_ROOM_6, HighlightSecretRoom6Handler);
- SetHiliteHandler (MENU_SECRET_ROOM_7, HighlightSecretRoom7Handler);
- SetHiliteHandler (MENU_SECRET_ROOM_8, HighlightSecretRoom8Handler);
- SetHiliteHandler (MENU_SECRET_ROOM_9, HighlightSecretRoom9Handler);
- SetHiliteHandler (MENU_SECRET_ROOM_10, HighlightSecretRoom10Handler);
- SetHiliteHandler (MENU_SECRET_ROOM_OK_SUBSCIBE, HighlightSecretRoomOkSubscribeHandler);
- SetHiliteHandler (MENU_SECRET_ROOM_OK_ORDER, HighlightSecretRoomOkOrderHandler);
- SetHiliteHandler (MENU_SECRET_ROOM_OK_FARE_HELP, HighlightSecretRoomOkFareHelpHandler);
- }
- /******************************* WONDERFUL *******************************************/
- void mmi_wonderful_menu_highlight_handler()
- {
- SetHiliteHandler (MENU_WONDERFUL_ID, HighlightWonderfulHandler);
- SetHiliteHandler (MENU_WONDERFUL_1, HighlightWonderful1Handler);
- SetHiliteHandler (MENU_WONDERFUL_2, HighlightWonderful2Handler);
- SetHiliteHandler (MENU_WONDERFUL_3, HighlightWonderful3Handler);
- SetHiliteHandler (MENU_WONDERFUL_4, HighlightWonderful4Handler);
- SetHiliteHandler (MENU_WONDERFUL_5, HighlightWonderful5Handler);
- SetHiliteHandler (MENU_WONDERFUL_6, HighlightWonderful6Handler);
- SetHiliteHandler (MENU_WONDERFUL_7, HighlightWonderful7Handler);
- SetHiliteHandler (MENU_WONDERFUL_8, HighlightWonderful8Handler);
- SetHiliteHandler (MENU_WONDERFUL_9, HighlightWonderful9Handler);
- SetHiliteHandler (MENU_WONDERFUL_10, HighlightWonderful10Handler);
- SetHiliteHandler (MENU_WONDERFUL_MORE, HighlightWonderfulMoreHandler);
- SetHiliteHandler (MENU_WONDERFUL_MORE_1, HighlightWonderfulMore1Handler);
- SetHiliteHandler (MENU_WONDERFUL_MORE_2, HighlightWonderfulMore2Handler);
- SetHiliteHandler (MENU_WONDERFUL_MORE_3, HighlightWonderfulMore3Handler);
- SetHiliteHandler (MENU_WONDERFUL_MORE_4, HighlightWonderfulMore4Handler);
- SetHiliteHandler (MENU_WONDERFUL_MORE_5, HighlightWonderfulMore5Handler);
- SetHiliteHandler (MENU_WONDERFUL_MORE_6, HighlightWonderfulMore6Handler);
- SetHiliteHandler (MENU_WONDERFUL_MORE_7, HighlightWonderfulMore7Handler);
- SetHiliteHandler (MENU_WONDERFUL_MORE_8, HighlightWonderfulMore8Handler);
- SetHiliteHandler (MENU_WONDERFUL_MORE_9, HighlightWonderfulMore9Handler);
- SetHiliteHandler (MENU_WONDERFUL_MORE_10, HighlightWonderfulMore10Handler);
- SetHiliteHandler (MENU_WONDERFUL_OK_SUBSCIBE, HighlightWonderfulOkSubscribeHandler);
- SetHiliteHandler (MENU_WONDERFUL_OK_ORDER, HighlightTWonderfulOkOrderHandler);
- SetHiliteHandler (MENU_WONDERFUL_OK_FARE_HELP, HighlightWonderfulOkFareHelpHandler);
- }
-
- /******************************* WEATHER *******************************************/
- void mmi_weather_forecast_menu_highlight_handler()
- {
- SetHiliteHandler(MENU_WEATHER_FORECAST_ID, HighlightWeatherForecastHandler);
- }
- /******************************* NETWORK SURF *******************************************/
- void mmi_network_surf_menu_highlight_handler()
- {
- SetHiliteHandler(MENU_NETWORK_SURF_ID, HighlightNetworkSurfHandler);
- }
- /******************************* HANDPHONE PAPER *******************************************/
- void mmi_handphone_paper_menu_highlight_handler()
- {
- SetHiliteHandler(MENU_HANDPHONE_PAPER_ID, HighlightHandphonePaperHandler);
- }
- /******************************* CITY FRIEND *******************************************/
- void mmi_city_friend_menu_highlight_handler()
- {
- SetHiliteHandler(MENU_CITY_FRIEND_ID, HighlightCityFriendHandler);
- }
- /******************************* FASHION LIVE *******************************************/
- void mmi_fashion_live_menu_highlight_handler()
- {
- SetHiliteHandler (MENU_FASHION_LIVE_ID, HighlightFashionLiveHandler);
- SetHiliteHandler(MENU_FASHION_LIVE_1, HighlightFashionLive1Handler);
- SetHiliteHandler(MENU_FASHION_LIVE_2, HighlightFashionLive2Handler);
- SetHiliteHandler(MENU_FASHION_LIVE_3, HighlightFashionLive3Handler);
- SetHiliteHandler(MENU_FASHION_LIVE_4, HighlightFashionLive4Handler);
- SetHiliteHandler(MENU_FASHION_LIVE_5, HighlightFashionLive5Handler);
- SetHiliteHandler(MENU_FASHION_LIVE_6, HighlightFashionLive6Handler);
- SetHiliteHandler(MENU_FASHION_LIVE_7, HighlightFashionLive7Handler);
- SetHiliteHandler(MENU_FASHION_LIVE_8, HighlightFashionLive8Handler);
- SetHiliteHandler (MENU_WONDERFUL_OK_SUBSCIBE, HighlightWonderfulOkSubscribeHandler);
- SetHiliteHandler (MENU_WONDERFUL_OK_FARE_DOWN, HighlightTWonderfulOkOrderHandler);
- SetHiliteHandler (MENU_WONDERFUL_OK_FARE_HELP, HighlightWonderfulOkFareHelpHandler);
- }
- /******************************* MELODY *******************************************/
- void mmi_pic_melody_dwd_menu_highlight_handler()
- {
- SetHiliteHandler (MENU_PIC_MELODY_DWD_ID, HighlightPicMelodyDwdHandler);
- SetHiliteHandler(MENU_PIC_MELODY_DWD_1, HighlightPicMelodyDwd1Handler);
- SetHiliteHandler(MENU_PIC_MELODY_DWD_2, HighlightPicMelodyDwd2Handler);
- SetHiliteHandler(MENU_PIC_MELODY_DWD_3, HighlightPicMelodyDwd3Handler);
- SetHiliteHandler(MENU_PIC_MELODY_DWD_4, HighlightPicMelodyDwd4Handler);
- SetHiliteHandler(MENU_PIC_MELODY_DWD_5, HighlightPicMelodyDwd5Handler);
- SetHiliteHandler(MENU_PIC_MELODY_DWD_6, HighlightPicMelodyDwd6Handler);
- SetHiliteHandler(MENU_PIC_MELODY_DWD_7, HighlightPicMelodyDwd7Handler);
- SetHiliteHandler(MENU_PIC_MELODY_DWD_8, HighlightPicMelodyDwd8Handler);
- SetHiliteHandler(MENU_PIC_MELODY_DWD_9, HighlightPicMelodyDwd9Handler);
- SetHiliteHandler(MENU_PIC_MELODY_DWD_10, HighlightPicMelodyDwd10Handler);
- SetHiliteHandler (MENU_WONDERFUL_OK_SUBSCIBE, HighlightWonderfulOkSubscribeHandler);
- SetHiliteHandler (MENU_WONDERFUL_OK_FARE_DOWN, HighlightTWonderfulOkOrderHandler);
- SetHiliteHandler (MENU_WONDERFUL_OK_FARE_HELP, HighlightWonderfulOkFareHelpHandler);
- }
- /******************************* ENTERTAINMENT *******************************************/
- void mmi_entertainment_menu_cm_highlight_handler()
- {
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_ID, HighlightEntertainmentCmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_1, HighlightEntertainment1CmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_2, HighlightEntertainment2CmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_3, HighlightEntertainment3CmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_4, HighlightEntertainment4CmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_5, HighlightEntertainment5CmHandler);
-
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_6, HighlightEntertainment6CmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_7, HighlightEntertainment7CmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_8, HighlightEntertainment8CmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_9, HighlightEntertainment9CmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_10, HighlightEntertainment10CmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_MORE, HighlightEntertainmentMoreCmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_MORE_1, HighlightEntertainment1MoreCmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_MORE_2, HighlightEntertainment2MoreCmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_MORE_3, HighlightEntertainment3MoreCmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_MORE_4, HighlightEntertainment4MoreCmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_MORE_5, HighlightEntertainment5MoreCmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_MORE_6, HighlightEntertainment6MoreCmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_MORE_7, HighlightEntertainment7MoreCmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_MORE_8, HighlightEntertainment8MoreCmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_MORE_9, HighlightEntertainment9MoreCmHandler);
- SetHiliteHandler(MENU_ENTERTAINMENT_CM_MORE_10, HighlightEntertainment10MoreCmHandler);
- }
- void mmi_dream_fairyland_cm_highlight_handler(void)
- {
- mmi_thumb_world_menu_highlight_handler();
- mmi_secret_room_menu_highlight_handler();
- mmi_wonderful_menu_highlight_handler();
- mmi_pic_melody_dwd_menu_highlight_handler();
- mmi_weather_forecast_menu_highlight_handler();
- mmi_handphone_paper_menu_highlight_handler();
- mmi_network_surf_menu_highlight_handler();
- mmi_fashion_live_menu_highlight_handler();
- mmi_city_friend_menu_highlight_handler();
- mmi_entertainment_menu_cm_highlight_handler();
- }
- void mmi_dream_fairyland_cu_highlight_handler(void)
- {
- mmi_thumb_world_menu_highlight_handler();
- mmi_secret_room_menu_highlight_handler();
- mmi_weather_forecast_menu_highlight_handler();
- mmi_handphone_paper_menu_highlight_handler();
- mmi_city_friend_menu_highlight_handler();
- //mmi_network_surf_menu_highlight_handler();
- //mmi_entertainment_menu_cu_highlight_handler();
- }
- void hi_light_EntryDreamFairylandHandler(void)
- {
- #ifdef __VALUE_ADDED_SERVICE_IN_MAINMENU__
- #ifdef __MMI_MATRIX_MAIN_MENU_FULL_BACKGROUND__
- if (inMatrixNoTitleFlag)
- {
- ChangeLeftSoftkeyByStringLength(MMI_highlighted_item_text, NULL);
- ChangeRightSoftkeyByStringLength((UI_string_type) GetString(STR_GLOBAL_BACK), (PU8) GetImage(IMG_GLOBAL_BACK));
- }
- else /* 041105 Calvin added */
- {
- ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK);
- ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK);
- }
- #else /* __MMI_MATRIX_MAIN_MENU_FULL_BACKGROUND__ */
- ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK);
- ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK);
- #endif /* __MMI_MATRIX_MAIN_MENU_FULL_BACKGROUND__ */
- SetLeftSoftkeyFunction (EntryDreamFairylandHandler, KEY_EVENT_UP);
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- #else
- ChangeLeftSoftkey (STR_GLOBAL_OK, 0);
- ChangeRightSoftkey (STR_GLOBAL_BACK, 0);
- SetLeftSoftkeyFunction (EntryDreamFairylandHandler, KEY_EVENT_UP);
- //SetKeyHandler (EntryDreamFairylandHandler, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- //SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
- #endif
- }
- void EntryDreamFairylandHandler(void)
- {
- U8* guiBuffer; /* Buffer holding history data */
- U16 nNumofItem;
- U16 parentId;
- U16 nStrItemList[MAX_SUB_MENUS];
- EntryNewScreen(SCR_DREAM_FAIRYLAND_ID, NULL, EntryDreamFairylandHandler, NULL);
- guiBuffer = GetCurrGuiBuffer(SCR_DREAM_FAIRYLAND_ID);
- if(memcmp(gPLMN,"46000", 5) == 0)
- parentId = MAIN_MENU_DREAM_FAIRYLAND_CM_ID;
- else /*非移动卡*/
- parentId = MAIN_MENU_DREAM_FAIRYLAND_CU_ID;
-
- nNumofItem = GetNumOfChild(parentId);
- GetSequenceStringIds(parentId, nStrItemList);
- SetParentHandler(parentId);
-
- /* Register highlight handler to be called in menu screen */
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
-
- if(memcmp(gPLMN,"46000", 5) == 0)
- mmi_dream_fairyland_cm_highlight_handler();
- else
- mmi_dream_fairyland_cu_highlight_handler();
-
- ShowCategory15Screen(IDLE_SCREEN_RSK_TEXT2, NULL,
- STR_GLOBAL_OK, IMG_GLOBAL_OK,
- STR_GLOBAL_BACK , IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
- (U16 *)gIndexIconsImageList,DISP_LIST,0,guiBuffer);
- /* Register function with right softkey */
- SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
- }
- #endif
- //KP Jerry add for third sevice on 2007-03-26 end