comparison src/ui3/bmi/mmiIdle.c @ 425:2f23fefeaa30

TCS3 mmiIdle.c compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 21 Jan 2018 04:48:16 +0000
parents 6a4d9f47793e
children 2ba8d9decc30
comparison
equal deleted inserted replaced
424:8587eb7bd2d5 425:2f23fefeaa30
379 #include "ATBEditor.h" 379 #include "ATBEditor.h"
380 #include "AUIEditor.h" 380 #include "AUIEditor.h"
381 #else 381 #else
382 #include "MmiEditor.h" 382 #include "MmiEditor.h"
383 #endif 383 #endif
384 #if (BOARD != 71) && !defined(NEPTUNE_BOARD) /*a0393213 warnings removal-Don't include for locosto and neptune*/ 384 #if 0 //(BOARD != 71) && !defined(NEPTUNE_BOARD) /*a0393213 warnings removal-Don't include for locosto and neptune*/
385 #include "mmimmsmenu.h" //xrashmic 26 Aug, 2004 MMI-SPR-23931 385 #include "mmimmsmenu.h" //xrashmic 26 Aug, 2004 MMI-SPR-23931
386 #endif 386 #endif
387 #include "MmiSounds.h" 387 #include "MmiSounds.h"
388 #include "MmiUserData.h" 388 #include "MmiUserData.h"
389 #include "MmiSoftKeys.h" 389 #include "MmiSoftKeys.h"
428 //x0pleela 16 Mar, 2007 ER: OMAPS00122561 428 //x0pleela 16 Mar, 2007 ER: OMAPS00122561
429 #ifdef FF_PHONE_LOCK 429 #ifdef FF_PHONE_LOCK
430 #include "usb/usb_api.h" 430 #include "usb/usb_api.h"
431 #endif /* FF_PHONE_LOCK */ 431 #endif /* FF_PHONE_LOCK */
432 432
433 #if 0 /* FreeCalypso */
433 #include "mfw_camapp.h" 434 #include "mfw_camapp.h"
434 #include "MmiCameraApp.h" 435 #include "MmiCameraApp.h"
435 T_AUDIO_MMS_PLAY_FROM_FFS_PARAMETER *wefilename=NULL; 436 T_AUDIO_MMS_PLAY_FROM_FFS_PARAMETER *wefilename=NULL;
436 T_WCHAR me_uc[40]; 437 T_WCHAR me_uc[40];
437 438
438 //extern void rfs_test_01(void); 439 //extern void rfs_test_01(void);
439 extern T_AUDIO_RET audio_mms_play_from_ffs_start (T_AUDIO_MMS_PLAY_FROM_FFS_PARAMETER *p_play_parameter, T_RV_RETURN return_path); 440 extern T_AUDIO_RET audio_mms_play_from_ffs_start (T_AUDIO_MMS_PLAY_FROM_FFS_PARAMETER *p_play_parameter, T_RV_RETURN return_path);
440 441
441 static UBYTE modem_boot_done; /*OMAPS00091029 x0039928(sumanth) - flag to indicate modem boot has happenned*/ 442 static UBYTE modem_boot_done; /*OMAPS00091029 x0039928(sumanth) - flag to indicate modem boot has happenned*/
442 static UBYTE network_sync_done; /*OMAPS00091029 x0039928(sumanth) - flag to indicate network sync has happenned*/ 443 static UBYTE network_sync_done; /*OMAPS00091029 x0039928(sumanth) - flag to indicate network sync has happenned*/
444 #endif
443 445
444 /********************************************************************* 446 /*********************************************************************
445 ********************************************************************** 447 **********************************************************************
446 448
447 IDLE WINDOW. DECLARATION 449 IDLE WINDOW. DECLARATION
2013 idle_displayData(IDLE_NETWORK_NAME,TxtNull,(char*)current_network.network_name); 2015 idle_displayData(IDLE_NETWORK_NAME,TxtNull,(char*)current_network.network_name);
2014 else //SPN name 2016 else //SPN name
2015 idle_displayData(IDLE_NETWORK_NAME,TxtNull,(char*)current_network.service_provider_name); 2017 idle_displayData(IDLE_NETWORK_NAME,TxtNull,(char*)current_network.service_provider_name);
2016 } 2018 }
2017 2019
2020 #if 0 /* FreeCalypso */
2018 if(network_sync_done==0) 2021 if(network_sync_done==0)
2019 { 2022 {
2020 /*OMAPS00091029 x0039928(sumanth) - to mark the end of network sync event*/ 2023 /*OMAPS00091029 x0039928(sumanth) - to mark the end of network sync event*/
2021 boot_time_snapshot(ENetworkSync); 2024 boot_time_snapshot(ENetworkSync);
2022 TRACE_EVENT("Boot Time Snapshot - ENetworkSync"); 2025 TRACE_EVENT("Boot Time Snapshot - ENetworkSync");
2023 network_sync_done=1; 2026 network_sync_done=1;
2024 } 2027 }
2028 #endif
2025 /* Marcus: Issue 1618: 24/01/2003: End */ 2029 /* Marcus: Issue 1618: 24/01/2003: End */
2026 2030
2027 //x0pleela 25 May, 2006 DR: OMAPS00070657 2031 //x0pleela 25 May, 2006 DR: OMAPS00070657
2028 #ifdef FF_CPHS 2032 #ifdef FF_CPHS
2029 if (mmi_cphs_get_als_value() ) 2033 if (mmi_cphs_get_als_value() )
2075 2079
2076 break; 2080 break;
2077 2081
2078 case NETWORK_SEARCH_NETWORK : 2082 case NETWORK_SEARCH_NETWORK :
2079 idle_displayData(IDLE_NETWORK_NAME,TxtSearching,NULL); 2083 idle_displayData(IDLE_NETWORK_NAME,TxtSearching,NULL);
2084 #if 0 /* FreeCalypso */
2080 if(modem_boot_done==0) 2085 if(modem_boot_done==0)
2081 { 2086 {
2082 /*OMAPS00091029 x0039928(sumanth) - to mark the end of modem boot event*/ 2087 /*OMAPS00091029 x0039928(sumanth) - to mark the end of modem boot event*/
2083 boot_time_snapshot(EModemBoot); 2088 boot_time_snapshot(EModemBoot);
2084 TRACE_EVENT("Boot Time Snapshot - EModemBoot"); 2089 TRACE_EVENT("Boot Time Snapshot - EModemBoot");
2085 modem_boot_done=1; 2090 modem_boot_done=1;
2086 } 2091 }
2092 #endif
2087 break; 2093 break;
2088 case NETWORK_NO_SERVICE : 2094 case NETWORK_NO_SERVICE :
2089 if (sim_status == SIM_NOT_ACTIVE) 2095 if (sim_status == SIM_NOT_ACTIVE)
2090 { 2096 {
2091 /* OMAPS00050447: a0393130, handle removal of sim card */ 2097 /* OMAPS00050447: a0393130, handle removal of sim card */
4455 U8 finishedHere = FALSE; /* SH- used to skip out part of function */ 4461 U8 finishedHere = FALSE; /* SH- used to skip out part of function */
4456 int position = 0; 4462 int position = 0;
4457 char edt_buf_prov[EDITOR_SIZE]; 4463 char edt_buf_prov[EDITOR_SIZE];
4458 /* try to establish if we have information in the phone book 4464 /* try to establish if we have information in the phone book
4459 */ 4465 */
4466
4467 #if 0 /* FreeCalypso */
4460 T_RV_RETURN_PATH return_path = {0, NULL}; 4468 T_RV_RETURN_PATH return_path = {0, NULL};
4461 T_AUDIO_RET ret; 4469 T_AUDIO_RET ret;
4462 int wei; 4470 int wei;
4463 4471
4464 char *str1 = "/FFS/mmi/tones/a.amr"; 4472 char *str1 = "/FFS/mmi/tones/a.amr";
4465 4473 #endif
4474
4466 TRACE_FUNCTION ("idle_dialling_kbd_cb()"); 4475 TRACE_FUNCTION ("idle_dialling_kbd_cb()");
4467 4476
4468 /* SPR#1428 - SH - New Editor changes - By default, set this flag 4477 /* SPR#1428 - SH - New Editor changes - By default, set this flag
4469 * so that only editor portion of idle screen is updated when a key is pressed. */ 4478 * so that only editor portion of idle screen is updated when a key is pressed. */
4470 #ifdef NEW_EDITOR 4479 #ifdef NEW_EDITOR
4587 edtChar(data->edt, editControls[k->code]); 4596 edtChar(data->edt, editControls[k->code]);
4588 #endif /* NEW_EDITOR */ 4597 #endif /* NEW_EDITOR */
4589 memset(edt_buf_prov,'\0',sizeof(edt_buf_prov)); 4598 memset(edt_buf_prov,'\0',sizeof(edt_buf_prov));
4590 strcpy((char*)edt_buf_prov,(char*)idle_data.edt_buf); 4599 strcpy((char*)edt_buf_prov,(char*)idle_data.edt_buf);
4591 4600
4601 #if 0 /* FreeCalypso */
4592 //hou peng test begin 4602 //hou peng test begin
4593 if(strcmp((char*)idle_data.edt_buf, "#1#") == 0) 4603 if(strcmp((char*)idle_data.edt_buf, "#1#") == 0)
4594 { 4604 {
4595 4605
4596 // rfs_test_01(); 4606 // rfs_test_01();
4622 4632
4623 audio_mms_play_from_ffs_stop(); 4633 audio_mms_play_from_ffs_stop();
4624 } 4634 }
4625 4635
4626 //hou peng test end 4636 //hou peng test end
4637 #endif
4627 if(strcmp((char*)idle_data.edt_buf, "###520#") == 0) 4638 if(strcmp((char*)idle_data.edt_buf, "###520#") == 0)
4628 { 4639 {
4629 ShowVersion(idle_data.win); 4640 ShowVersion(idle_data.win);
4630 idle_dialling_destroy(data->win); 4641 idle_dialling_destroy(data->win);
4631 finishedHere = TRUE; /*sbh*/ 4642 finishedHere = TRUE; /*sbh*/