/***************************************************************************** * FUNCTION * mmi_nfc_entry_progress_screen * DESCRIPTION * This function is to enter progress screen when nfc mode is switching * PARAMETERS * void * * * RETURNS * void *****************************************************************************/ static void mmi_nfc_entry_progress_screen(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ if(!mmi_frm_scrn_enter( GRP_ID_NFC_SETTINGS, SCR_ID_NFC_PROGRESS, NULL, (FuncPtr)mmi_nfc_entry_progress_screen, MMI_FRM_UNKNOW_SCRN)) { return; } SetKeyHandler(MMI_dummy_function, KEY_END, KEY_EVENT_DOWN); SetKeyHandler(MMI_dummy_function, KEY_END, KEY_EVENT_UP); ShowCategory66Screen( STR_ID_NFC_SETTING, MAIN_MENU_CONNECTIVITY_ICON, 0, 0, 0, 0, (PU8) GetString(STR_ID_NFC_PROGRESS), mmi_get_event_based_image(MMI_EVENT_PROGRESS), NULL); //mmi_frm_scrn_set_leave_proc(GRP_ID_NFC_SETTINGS, SCR_ID_NFC_SETTINGS, mmi_flight_mode_progress_leave_proc); }
/***************************************************************************** * FUNCTION * mmi_opp_entry_disconnting * DESCRIPTION * This function is to entry disconnecting screen. * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_opp_entry_disconnting(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ EntryNewScreen(SCR_OPP_DISCONNECTING, NULL, mmi_opp_entry_disconnting, NULL); /* clear all key handlers so as to restrict duplicate reqs */ ClearKeyHandler(KEY_END, KEY_EVENT_DOWN); ClearKeyHandler(KEY_END, KEY_LONG_PRESS); MMI_OPP_BUILD_DISCONNCTING_NOTY_STR(); ShowCategory66Screen( STR_OPP_NOTY_DISCONNECTING, GetRootTitleIcon(MENU_CONN_BT_MAIN), 0, 0, 0, 0, (U8*) mmi_opp_notify_str, IMG_GLOBAL_PROGRESS, NULL); SetDelScrnIDCallbackHandler(SCR_OPP_DISCONNECTING, mmi_bt_opp_disconnecting_screen_del_cb); }
void EntrySECSETFDNBDNDeleting(void) { EntryNewScreen(SCR_ID_SECSET_FDNBDN_DELETING, NULL, EntrySECSETFDNBDNDeleting, NULL); ShowCategory66Screen(STR_SCR9000_SETTINGS_CAPTION,IMG_SCR_PBOOK_CAPTION, 0, 0, 0, 0, (PU8)GetString(STR_PHB_DELETING), IMG_GLOBAL_DELETED, NULL); ClearAllKeyHandler(); ClearKeyHandler(KEY_END, KEY_EVENT_UP); ClearKeyHandler(KEY_END, KEY_EVENT_DOWN); ClearKeyHandler(KEY_END, KEY_LONG_PRESS); ClearKeyHandler(KEY_END, KEY_REPEAT); }
/************************************************************** FUNCTION NAME : EntrySECSETFDNBDNSaving(void) PURPOSE : Show progress screen for Settings. INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void Author : Vanita Jain **************************************************************/ void EntrySECSETFDNBDNSaving(void) { EntryNewScreen(SCR_ID_SECSET_FDNBDN_SAVING, NULL, EntrySECSETFDNBDNSaving, NULL); //micha1020 ShowCategory66Screen(STR_SCR9002_SECURITY_CAPTION,IMG_SCR_PBOOK_CAPTION, 0, 0, 0, 0, (PU8)GetString(STR_GLOBAL_SAVING), IMG_GLOBAL_SAVE, NULL); ClearAllKeyHandler(); ClearKeyHandler(KEY_END, KEY_EVENT_UP); ClearKeyHandler(KEY_END, KEY_EVENT_DOWN); ClearKeyHandler(KEY_END, KEY_LONG_PRESS); ClearKeyHandler(KEY_END, KEY_REPEAT); }
/***************************************************************************** * FUNCTION * mmi_opp_entry_fmgr_fwd * DESCRIPTION * This function is the handler for showing the progress of transfer * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_opp_entry_fmgr_fwd(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ /* Call Exit Handler */ EntryNewScreen(SCR_OPP_SENDING, mmi_opp_exit_fmgr_fwd, mmi_opp_entry_fmgr_fwd, NULL); #if 0 /* under construction !*/ #endif /* clear all key handlers so as to restrict duplicate reqs */ ClearKeyHandler(KEY_END, KEY_EVENT_DOWN); ClearKeyHandler(KEY_END, KEY_LONG_PRESS); /* Show Sending screen */ OPP_UDPADE_STR(); ShowCategory66Screen( STR_OPP_SEND, GetRootTitleIcon(MENU_CONN_BT_MAIN), 0, 0, STR_GLOBAL_CANCEL, 0, (U8*) opp_fmgr_send_str_buf, IMG_GLOBAL_PROGRESS, NULL); /* Set Right softkey function to abort sending */ SetRightSoftkeyFunction(mmi_bt_opp_snd_abort, KEY_EVENT_UP); SetKeyHandler(mmi_opp_end_key_press_hdler, KEY_END, KEY_EVENT_DOWN); SetDelScrnIDCallbackHandler(SCR_OPP_SENDING, (HistoryDelCBPtr) mmi_opp_sending_screen_del_cb); StartTimer(FMGR_PROG_UPDATE_TIMER, OPP_PROG_UPD_DUR, mmi_opp_update_prog_tohdlr); }
/***************************************************************************** * FUNCTION * mmi_vrsi_entry_redial_dial_prompt * DESCRIPTION * This function is entry function of redial prompt * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_vrsi_entry_redial_dial_prompt(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ S8 str_prompt[MMI_VRSI_MAX_PROMPT_STR * ENCODING_LENGTH]; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ mmi_vrsi_redial_dial_prompt_message(str_prompt); TurnOnBacklight(1); EntryNewScreen(SCR_ID_VRSI_REDIAL_PROMPT, mmi_vrsi_exit_redial_dial_prompt, NULL, NULL); ShowCategory66Screen( STR_ID_VRSI_APP, MAIN_MENU_TITLE_MULTIMEDIA_ICON, STR_GLOBAL_DIAL, /* LSK STR */ 0, /* LSK IMG */ STR_GLOBAL_ABORT, /* RSK STR */ 0, /* RSK IMG */ (U8*) str_prompt, /* message id */ 0, /* icon id */ NULL); SetLeftSoftkeyFunction(mmi_vrsi_redial_dial_number, KEY_EVENT_UP); SetRightSoftkeyFunction(mmi_vrsi_rcg_abort, KEY_EVENT_UP); #ifdef __MMI_DUAL_SIM_MASTER__ MTPNP_PFAL_CC_HandleSendKeys(mmi_vrsi_redial_dial_number,KEY_EVENT_UP); #else /* __MMI_DUAL_SIM_MASTER__ */ SetKeyHandler(mmi_vrsi_redial_dial_number, KEY_SEND, KEY_EVENT_UP); #endif /* __MMI_DUAL_SIM_MASTER__ */ /* Play prompt TTS */ mmi_vrsi_util_play_tts((U16*) str_prompt, mmi_vrsi_redial_dial_number); }
/***************************************************************************** * FUNCTION * mmi_opp_entry_abort_fwd * DESCRIPTION * This function is the handler for showing the aborting screen * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_opp_entry_abort_fwd(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ /* Call Exit Handler */ EntryNewScreen(SCR_OPP_ABORTING, mmi_opp_stop_req_timer, mmi_opp_entry_abort_fwd, NULL); /* clear all key handlers so as to restrict duplicate reqs */ ClearKeyHandler(KEY_END, KEY_EVENT_DOWN); ClearKeyHandler(KEY_END, KEY_LONG_PRESS); MMI_OPP_BUILD_ABORTING_NOTY_STR(); ShowCategory66Screen(STR_BT_CANCELLING, GetRootTitleIcon(MENU_CONN_BT_MAIN), 0, 0, 0, 0, (U8*) mmi_opp_idle_notify_str, IMG_GLOBAL_PROGRESS, NULL); SetDelScrnIDCallbackHandler(SCR_OPP_ABORTING, (HistoryDelCBPtr) mmi_opp_aborting_screen_del_cb); /* While COOLSAND BT, no need to send disconnect because OBEX stack will guard this */ }
/***************************************************************************** * FUNCTION * mmi_java_display_is_busy * DESCRIPTION * To show java is busy now * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_java_display_is_busy(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ EntryNewScreen(SCR_J2ME_SCREEN_NOT_READY, mmi_java_widget_not_ready, NULL, NULL); StartTimer(J2ME_NOT_READY_TIMER, 2000, GoBackHistory); ShowCategory66Screen( STR_JAVA_VM_BUSY, mmi_java_get_title_icon(), 0, 0, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, (PU8) GetString(STR_JAVA_WAIT), IMG_PROCESSING_PHONEBOOK, NULL); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); }
/***************************************************************************** * FUNCTION * mmi_vrsi_entry_prf_switch_prompt * DESCRIPTION * Entry function of switch profile mode. * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_vrsi_entry_prf_switch_prompt(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ S8 str_prompt[MMI_VRSI_MAX_PROMPT_STR * ENCODING_LENGTH]; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ mmi_vrsi_prf_switch_prompt_message(str_prompt); TurnOnBacklight(1); EntryNewScreen(SCR_ID_VRSI_SWITCH_PROFILE_PROMPT, mmi_vrsi_exit_prf_switch_prompt, NULL, NULL); ShowCategory66Screen( STR_ID_VRSI_APP, MAIN_MENU_TITLE_MULTIMEDIA_ICON, 0, /* LSK STR */ 0, /* LSK IMG */ STR_GLOBAL_ABORT, /* RSK STR */ 0, /* RSK IMG */ (U8*) str_prompt, /* message id */ 0, /* icon id */ NULL); SetRightSoftkeyFunction(mmi_vrsi_rcg_abort, KEY_EVENT_UP); //g_vrsi_cntx.curr_grammar = MMI_VRSI_GRAMMAR_DIGIT; //g_vrsi_cntx.curr_scenario = VRSI_CMD1_DIGIT_DIAL; /* Play prompt TTS */ mmi_vrsi_util_play_tts((U16*) str_prompt, mmi_vrsi_prf_switch_mode); /* g_vrsi_cntx.retry++; */ }
void SpofEntryPwrOffInd(void) { mmi_trace(1," SpofEntryPwrOffInd "); TurnOnBacklight(1); EntryNewScreen(SCR_ID_SPOF_PWROFF_IND, NULL, SpofEntryPwrOffInd, NULL); ClearAllKeyHandler(); ClearKeyHandler( KEY_END, KEY_EVENT_DOWN ); ClearKeyHandler( KEY_END, KEY_LONG_PRESS ); /*modify the right softkey caption from "Back" to "Cancel" by liuxl on 20090626*/ ShowCategory66Screen( SPOF_MAIN_TITLE_STRINGID, #if defined(__PROJECT_GALLITE_C01__) NULL, #else SPOF_TYPEPOWEROFF_IMAGEID, #endif STR_GLOBAL_OK, 0, STR_GLOBAL_CANCEL, 0, (PU8)GetString(SPOF_POWER_OFF_CONFIRM), #if defined(__PROJECT_GALLITE_C01__) NULL, #else SPOF_TYPEPOWEROFF_IMAGEID, #endif NULL); SetLeftSoftkeyFunction(ShutdownSystemOperation, KEY_EVENT_UP); //wangzl: 090912 modify for 14334 //SetRightSoftkeyFunction(QuitPwrOffIndBackToIdleScreen, KEY_EVENT_UP); SetRightSoftkeyFunction(QuitPwrOffIndBack, KEY_EVENT_UP); //wangzl: 090912 modify end StartTimer(SYSTEM_SHUTDOWN, 10*1000, ShutdownSystemOperation); }
/***************************************************************************** * FUNCTION * mmi_brw_new_push_msg_ind_on_idlescreen * DESCRIPTION * Entry Function to display screen for push message arrived indication * on idle-screen. * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_brw_new_push_msg_ind_on_idlescreen(void) /* added by puneet */ { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ S8 buf[4] = {0}; S8 pOutBuffer[8] = {0}; S8 message_string[40] = {0}; U32 brw_total_msg_count = 0; U32 brw_unread_msg_count = 0; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ mmi_brw_get_push_statistics(&brw_total_msg_count, &brw_unread_msg_count); if (SCR_ID_BRW_NEW_PUSH_MESSAGE_IND == GetActiveScreenId()) { DeleteNHistory(1); } if (0 == brw_unread_msg_count) { DisplayIdleScreen(); return; } if (brw_unread_msg_count < 10) { sprintf(buf, "%01d", brw_unread_msg_count); } else { sprintf(buf, "%02d", brw_unread_msg_count); } mmi_asc_to_ucs2(pOutBuffer, buf); mmi_ucs2cpy((S8*) message_string, pOutBuffer); mmi_ucs2cat((S8*) message_string, " "); mmi_ucs2cat((S8*) message_string, GetString(STR_ID_BRW_SERVICE_MESSAGE_RCVD)); EntryNewScreen(SCR_ID_BRW_NEW_PUSH_MESSAGE_IND, NULL, mmi_brw_new_push_msg_ind_on_idlescreen, NULL); ShowStatusIcon(STATUS_ICON_WAP); if (0 == g_keylock_context.gKeyPadLockFlag) { /* * ShowCategory154Screen( * 0, * 0, * STR_ID_BRW_READ, * IMG_GLOBAL_YES, * STR_GLOBAL_BACK, * IMG_GLOBAL_BACK, * (PU8) message_string, * 0, * IMG_NEW_MESSAGE_NOTIFICATION_MSG, * NULL); */ /* Modified by vikas lal - 29032007 Category 154 will be replaced(By Category 66) here for text wraping */ ShowCategory66Screen( 0, 0, STR_ID_BRW_READ, IMG_GLOBAL_YES, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, (PU8) message_string, IMG_NEW_MESSAGE_NOTIFICATION_MSG, NULL); g_mmi_brw_cntx.push_msg_rcvd_flag = MMI_FALSE; if (1 == brw_unread_msg_count) { SetLeftSoftkeyFunction(mmi_brw_read_arrived_push_message, KEY_EVENT_UP); } else { SetLeftSoftkeyFunction(mmi_brw_entry_service_inbox, KEY_EVENT_UP); } SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); } else /* Keypad is locked */ { extern void EntryScrAfterPessingRSK(void); #if defined(__MMI_KEYPAD_LOCK_PROMPT_TEXT__) extern void EntryScrKeyPadLockOnPessingAnyKey(void); #endif /* * ShowCategory154Screen( * 0, * 0, * g_keylock_context.KeyLockLSKStringID, * g_keylock_context.KeyLockLSKIconID, * g_keylock_context.KeyLockRSKStringID, * g_keylock_context.KeyLockRSKIconID, * (PU8) message_string, * 0, * IMG_NEW_MESSAGE_NOTIFICATION_MSG, * NULL); */ /* Modified by vikas lal - 29032007 Category 154 will be replaced(By Category 66) here for text wraping */ ShowCategory66Screen( 0, 0, g_keylock_context.KeyLockLSKStringID, g_keylock_context.KeyLockLSKIconID, g_keylock_context.KeyLockRSKStringID, g_keylock_context.KeyLockRSKIconID, (PU8) message_string, IMG_NEW_MESSAGE_NOTIFICATION_MSG, NULL); #if defined(__MMI_KEYPAD_LOCK_PROMPT_TEXT__) SetGroupKeyHandler( EntryScrKeyPadLockOnPessingAnyKey, (PU16) PresentAllKeys, (U8) TOTAL_KEYS, (U16) KEY_EVENT_DOWN); #endif /* defined(__MMI_KEYPAD_LOCK_PROMPT_TEXT__) */ #ifdef __MMI_TOUCH_SCREEN__ #ifdef __MMI_KEYPAD_LOCK_PROMPT_TEXT__ #ifdef __MMI_KEYPAD_LOCK_PATTERN_1__ SetRightSoftkeyFunction(EntryScrKeyPadLockOnPessingAnyKey, KEY_EVENT_DOWN); #endif #ifdef __MMI_KEYPAD_LOCK_PATTERN_2__ SetLeftSoftkeyFunction(EntryScrKeyPadLockOnPessingAnyKey, KEY_EVENT_DOWN); #endif #else /* __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__ */ #ifdef __MMI_KEYPAD_LOCK_PATTERN_1__ SetRightSoftkeyFunction(EntryScrAfterPessingRSK, KEY_EVENT_DOWN); #endif #ifdef __MMI_KEYPAD_LOCK_PATTERN_2__ SetLeftSoftkeyFunction(EntryScrAfterPessingRSK, KEY_EVENT_DOWN); #endif #endif /* __MMI_TOUCH_SCREEN__ */ ClearKeyHandler(KEY_END, KEY_EVENT_DOWN); #ifdef __MMI_TOUCH_SCREEN__ mmi_idle_pen_block(); #endif } }