comparison src/ui/bmi/mmiStart.c @ 92:c0052fe355d3

src/ui/bmi/*.[ch]: rm trailing white space
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 08 Nov 2020 06:39:16 +0000
parents 67bfe9f274f6
children 053ff6a94961
comparison
equal deleted inserted replaced
91:c3d28a37caad 92:c0052fe355d3
1 /******************************************************************************* 1 /*******************************************************************************
2 2
3 CONDAT (UK) 3 CONDAT (UK)
4 4
5 ******************************************************************************** 5 ********************************************************************************
6 6
7 This software product is the property of Condat (UK) Ltd and may not be 7 This software product is the property of Condat (UK) Ltd and may not be
8 disclosed to any third party without the express permission of the owner. 8 disclosed to any third party without the express permission of the owner.
9 9
10 ******************************************************************************** 10 ********************************************************************************
11 11
12 $Project name: Basic MMI 12 $Project name: Basic MMI
13 $Project code: BMI (6349) 13 $Project code: BMI (6349)
14 $Module: Start 14 $Module: Start
15 $File: MmiStart.c 15 $File: MmiStart.c
16 $Revision: 1.0 16 $Revision: 1.0
17 17
18 $Author: Condat(UK) 18 $Author: Condat(UK)
19 $Date: 25/10/00 19 $Date: 25/10/00
20 20
21 ******************************************************************************** 21 ********************************************************************************
22 22
23 Description: 23 Description:
24 24
25 This provides the start code for the MMI 25 This provides the start code for the MMI
26 26
27 ******************************************************************************** 27 ********************************************************************************
28 $History: MmiStart.c 28 $History: MmiStart.c
29 29
30 Jan 05, 2007 OMAPS00084665 x0039928(sumanth) 30 Jan 05, 2007 OMAPS00084665 x0039928(sumanth)
31 Description: Boot time exceed UCSD estimations 31 Description: Boot time exceed UCSD estimations
32 32
33 xashmic 21 Sep 2006, OMAPS00095831 33 xashmic 21 Sep 2006, OMAPS00095831
34 Description: USB enumeration does not happen in PIN/PUK/Insert SIM scenarios 34 Description: USB enumeration does not happen in PIN/PUK/Insert SIM scenarios
35 Solution: When booting up without SIM card, or prompting for PIN/PUK/SIMP entry, 35 Solution: When booting up without SIM card, or prompting for PIN/PUK/SIMP entry,
36 enumerate all the USB ports automatically 36 enumerate all the USB ports automatically
37 37
38 May 30, 2006 REF:OMAPS00079650 a0393213 (R.Prabakar) 38 May 30, 2006 REF:OMAPS00079650 a0393213 (R.Prabakar)
39 Description : CPHS Call Forwarding feature implementation 39 Description : CPHS Call Forwarding feature implementation
40 Solution : As part of the implemention, in this file, divert status is got immediately after boot-up 40 Solution : As part of the implemention, in this file, divert status is got immediately after boot-up
41 41
42 Apr 06, 2006 ERT: OMAPS00070660 x0039928(sumanth) 42 Apr 06, 2006 ERT: OMAPS00070660 x0039928(sumanth)
43 Description: Need to reduce flash foot-print for Locosto Lite 43 Description: Need to reduce flash foot-print for Locosto Lite
44 Solution: Voice Memo feature is put under the flag #ifndef FF_NO_VOICE_MEMO to compile 44 Solution: Voice Memo feature is put under the flag #ifndef FF_NO_VOICE_MEMO to compile
45 out voice memo feature if the above flag is enabled. 45 out voice memo feature if the above flag is enabled.
46 46
47 Oct 11, 2005 REF: LOCOSTO-SPR-34629 - xpradipg 47 Oct 11, 2005 REF: LOCOSTO-SPR-34629 - xpradipg
48 Description: Temporary removal of animation logo and replacing with 48 Description: Temporary removal of animation logo and replacing with
49 static image 49 static image
50 Solution: The Animation at bootup is removed and replaced with a static 50 Solution: The Animation at bootup is removed and replaced with a static
51 image also the display of logo is done before initiating the 51 image also the display of logo is done before initiating the
52 AT_CMD_CFUN full functionality 52 AT_CMD_CFUN full functionality
53 53
54 Jun 23, 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken) 54 Jun 23, 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken)
55 Solution: The CF state is maintained in flash. During bootup the CF icon in the idle screen 55 Solution: The CF state is maintained in flash. During bootup the CF icon in the idle screen
56 is displayed depending upon its state in the ffs 56 is displayed depending upon its state in the ffs
57 57
58 25/10/00 Original Condat(UK) BMI version. 58 25/10/00 Original Condat(UK) BMI version.
59 59
60 Dec 23, 2005 REF: SR13873 - x0020906 60 Dec 23, 2005 REF: SR13873 - x0020906
61 Description : Store the FFS value into current sound structure 61 Description : Store the FFS value into current sound structure
62 Fix : Call setDefaultSound () to assign FFS value into current sound structure. 62 Fix : Call setDefaultSound () to assign FFS value into current sound structure.
63 63
64 $End 64 $End
65 65
66 *******************************************************************************/ 66 *******************************************************************************/
67 67
68 68
69 69
70 70
71 /******************************************************************************* 71 /*******************************************************************************
72 72
73 Include files 73 Include files
74 74
75 *******************************************************************************/ 75 *******************************************************************************/
76 #define ENTITY_MFW 76 #define ENTITY_MFW
77 77
78 //#define CO_UDP_IP temp till xml file ready 78 //#define CO_UDP_IP temp till xml file ready
79 79
178 #endif 178 #endif
179 179
180 #ifndef NEPTUNE_BOARD 180 #ifndef NEPTUNE_BOARD
181 #ifdef FF_EM_MODE 181 #ifdef FF_EM_MODE
182 #include "MmiEm.h" 182 #include "MmiEm.h"
183 #endif 183 #endif
184 #else 184 #else
185 #ifdef TI_PS_FF_EM 185 #ifdef TI_PS_FF_EM
186 #include "MmiEm.h" 186 #include "MmiEm.h"
187 #endif 187 #endif
188 #endif 188 #endif
199 199
200 #ifndef MFW_EVENT_PASSED 200 #ifndef MFW_EVENT_PASSED
201 #define MFW_EVENT_PASSED 0 201 #define MFW_EVENT_PASSED 0
202 #endif 202 #endif
203 203
204 // Jun 23 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken) 204 // Jun 23 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken)
205 #include "mfw_ffs.h" 205 #include "mfw_ffs.h"
206 206
207 #ifdef FF_MMI_MULTIMEDIA 207 #ifdef FF_MMI_MULTIMEDIA
208 #include "mfw_MultimediaApp.h" 208 #include "mfw_MultimediaApp.h"
209 #endif 209 #endif
210 210
211 211
212 extern void sms_cb_init (void); 212 extern void sms_cb_init (void);
213 213
214 /******************************************************************************* 214 /*******************************************************************************
215 215
216 Static data 216 Static data
217 217
218 *******************************************************************************/ 218 *******************************************************************************/
219 219
220 static MfwHnd win; 220 static MfwHnd win;
221 static MfwHnd kbd; 221 static MfwHnd kbd;
222 222
228 /* static MfwHnd win_animation; x0039928 - Lint warning fix */ 228 /* static MfwHnd win_animation; x0039928 - Lint warning fix */
229 /* static USHORT animation_index; x0039928 - Lint warning fix */ 229 /* static USHORT animation_index; x0039928 - Lint warning fix */
230 /* static U8 welcome_status; x0039928 - Lint warning fix */ 230 /* static U8 welcome_status; x0039928 - Lint warning fix */
231 /* SPR877 - SH - set to TRUE if welcome animation has finished */ 231 /* SPR877 - SH - set to TRUE if welcome animation has finished */
232 UBYTE animation_complete = FALSE; 232 UBYTE animation_complete = FALSE;
233 233
234 /******************************************************************************* 234 /*******************************************************************************
235 235
236 Local prototypes 236 Local prototypes
237 237
238 *******************************************************************************/ 238 *******************************************************************************/
239 239
240 static int winEvent( MfwEvt e, MfwWin *w ); 240 static int winEvent( MfwEvt e, MfwWin *w );
241 static int keyEvent( MfwEvt e, MfwKbd *k ); 241 static int keyEvent( MfwEvt e, MfwKbd *k );
242 242
248 // Oct 11, 2005 REF: LOCOSTO-SPR-34629 - xpradipg 248 // Oct 11, 2005 REF: LOCOSTO-SPR-34629 - xpradipg
249 #ifdef TI_PS_UICC_CHIPSET_15 249 #ifdef TI_PS_UICC_CHIPSET_15
250 extern unsigned char TIlogColour[]; 250 extern unsigned char TIlogColour[];
251 #endif 251 #endif
252 /******************************************************************************* 252 /*******************************************************************************
253 253
254 Private methods 254 Private methods
255 255
256 *******************************************************************************/ 256 *******************************************************************************/
257 257
258 #if(0) /* x0039928 - Lint warning fix */ 258 #if(0) /* x0039928 - Lint warning fix */
259 /******************************************************************************* 259 /*******************************************************************************
260 260
261 $Function: winEvent 261 $Function: winEvent
262 262
263 $Description: Window event handler, handles window visible events and 263 $Description: Window event handler, handles window visible events and
264 ignores all others 264 ignores all others
265 265
266 $Returns: MFW_EVENT_CONSUMED or MFW_EVENT_PASSED 266 $Returns: MFW_EVENT_CONSUMED or MFW_EVENT_PASSED
267 267
268 $Arguments: e, event to be handles, w, window handle 268 $Arguments: e, event to be handles, w, window handle
269 269
270 *******************************************************************************/ 270 *******************************************************************************/
271 271
272 static int winEvent( MfwEvt e, MfwWin *w ) 272 static int winEvent( MfwEvt e, MfwWin *w )
273 { 273 {
274 TRACE_FUNCTION("WinEvent(Start)"); 274 TRACE_FUNCTION("WinEvent(Start)");
298 $Description: Handle events during the window animation 298 $Description: Handle events during the window animation
299 299
300 $Returns: None. 300 $Returns: None.
301 301
302 $Arguments: None. 302 $Arguments: None.
303 303
304 *******************************************************************************/ 304 *******************************************************************************/
305 305
306 static int winanimEvent( MfwEvt e, MfwWin *w ) 306 static int winanimEvent( MfwEvt e, MfwWin *w )
307 { 307 {
308 308
310 310
311 switch( e ) 311 switch( e )
312 { 312 {
313 case MfwWinVisible: 313 case MfwWinVisible:
314 dspl_ClearAll(); 314 dspl_ClearAll();
315 315
316 break; 316 break;
317 default: 317 default:
318 { 318 {
319 return MFW_EVENT_PASSED; 319 return MFW_EVENT_PASSED;
320 } 320 }
332 $Description: All we need to do here is start the SIM 332 $Description: All we need to do here is start the SIM
333 333
334 $Returns: None. 334 $Returns: None.
335 335
336 $Arguments: None. 336 $Arguments: None.
337 337
338 *******************************************************************************/ 338 *******************************************************************************/
339 339
340 static void startregis( void ) 340 static void startregis( void )
341 { 341 {
342 TRACE_FUNCTION("start registration"); 342 TRACE_FUNCTION("start registration");
343 // Oct 11, 2005 REF: LOCOSTO-SPR-34629 - xpradipg 343 // Oct 11, 2005 REF: LOCOSTO-SPR-34629 - xpradipg
344 // the static image is displayed just before intiating the full functionality 344 // the static image is displayed just before intiating the full functionality
345 #ifdef TI_PS_UICC_CHIPSET_15 345 #ifdef TI_PS_UICC_CHIPSET_15
346 dspl_BitBlt2(WELCOME_ANI_POS_X, WELCOME_ANI_POS_Y,176,60,(char *)&TIlogColour[0],0,ICON_TYPE_256_COL); 346 dspl_BitBlt2(WELCOME_ANI_POS_X, WELCOME_ANI_POS_Y,176,60,(char *)&TIlogColour[0],0,ICON_TYPE_256_COL);
347 #endif 347 #endif
348 sim_activate(); 348 sim_activate();
349 349
350 350
351 351
352 } 352 }
353 353
354 /******************************************************************************* 354 /*******************************************************************************
355 355
356 Public methods 356 Public methods
357 357
358 *******************************************************************************/ 358 *******************************************************************************/
359 359
360 /******************************************************************************* 360 /*******************************************************************************
361 361
362 $Function: startInit 362 $Function: startInit
364 $Description: Initialises the MMI startup functions 364 $Description: Initialises the MMI startup functions
365 365
366 $Returns: None. 366 $Returns: None.
367 367
368 $Arguments: None. 368 $Arguments: None.
369 369
370 *******************************************************************************/ 370 *******************************************************************************/
371 371
372 void startInit( void ) 372 void startInit( void )
373 { 373 {
374 374
381 // T_MFW_HND hnd; // RAVI 381 // T_MFW_HND hnd; // RAVI
382 382
383 /* Assume the welcome status is welcome 383 /* Assume the welcome status is welcome
384 */ 384 */
385 /* welcome_status = WELCOME; x0039928 - Lint warning fix */ 385 /* welcome_status = WELCOME; x0039928 - Lint warning fix */
386 386
387 animation_complete = FALSE; 387 animation_complete = FALSE;
388 388
389 /* unset the flag for ready state at the beginning*/ 389 /* unset the flag for ready state at the beginning*/
390 smsidle_unset_ready_state(); 390 smsidle_unset_ready_state();
391 391
405 iconsInit(); 405 iconsInit();
406 406
407 #ifdef BTE_MOBILE 407 #ifdef BTE_MOBILE
408 mmi_bt_init(); 408 mmi_bt_init();
409 #endif 409 #endif
410 410
411 /* Handlers created on windows */ 411 /* Handlers created on windows */
412 pin_init( 0 ); 412 pin_init( 0 );
413 networkInit( 0 ); 413 networkInit( 0 );
414 smsidle_start(0, NULL); 414 smsidle_start(0, NULL);
415 servicesInit( 0 ); 415 servicesInit( 0 );
416 416
417 idleInit( 0 ); 417 idleInit( 0 );
418 418
419 #ifndef FF_NO_VOICE_MEMO 419 #ifndef FF_NO_VOICE_MEMO
420 voice_memo_init (); 420 voice_memo_init ();
421 #endif 421 #endif
422 422
423 voice_mail_init (); 423 voice_mail_init ();
424 sms_cb_init (); 424 sms_cb_init ();
425 425
426 mmi_cphs_init(); 426 mmi_cphs_init();
427 427
428 /* SPR#2346 - SH - GPRS */ 428 /* SPR#2346 - SH - GPRS */
429 #ifdef MMI_GPRS_ENABLED 429 #ifdef MMI_GPRS_ENABLED
430 GPRS_Init(); 430 GPRS_Init();
431 #endif /* GPRS */ 431 #endif /* GPRS */
438 /* SPR#2086 - SH - Startup WAP */ 438 /* SPR#2086 - SH - Startup WAP */
439 #if defined (FF_WAP) && defined (FF_GPF_TCPIP) 439 #if defined (FF_WAP) && defined (FF_GPF_TCPIP)
440 AUI_wap_init(); 440 AUI_wap_init();
441 #endif 441 #endif
442 442
443 #ifdef FF_MMI_MMS 443 #ifdef FF_MMI_MMS
444 /* TISHMMS Project */ 444 /* TISHMMS Project */
445 /*init mms wap profile*/ 445 /*init mms wap profile*/
446 mms_wap_data_init(); 446 mms_wap_data_init();
447 mms_mms_data_init(); 447 mms_mms_data_init();
448 #endif 448 #endif
461 /* SPR#2086 - SH - Startup WAP */ 461 /* SPR#2086 - SH - Startup WAP */
462 #if defined (FF_WAP) && defined (FF_GPF_TCPIP) 462 #if defined (FF_WAP) && defined (FF_GPF_TCPIP)
463 AUI_wap_init(); 463 AUI_wap_init();
464 #endif 464 #endif
465 465
466 #ifdef FF_MMI_MMS 466 #ifdef FF_MMI_MMS
467 /* TISHMMS Project */ 467 /* TISHMMS Project */
468 /*init mms wap profile*/ 468 /*init mms wap profile*/
469 mms_wap_data_init(); 469 mms_wap_data_init();
470 mms_mms_data_init(); 470 mms_mms_data_init();
471 #endif 471 #endif
485 setDefaultMSLTone (); 485 setDefaultMSLTone ();
486 #endif 486 #endif
487 #endif 487 #endif
488 /* End */ 488 /* End */
489 //xashmic 21 Sep 2006, OMAPS00095831 489 //xashmic 21 Sep 2006, OMAPS00095831
490 //During bootup, PIN, PUK, SIMP, Insert SIM stages, 490 //During bootup, PIN, PUK, SIMP, Insert SIM stages,
491 //Audio module, USB module needs to be initialized for 491 //Audio module, USB module needs to be initialized for
492 //Emergency call , USB enumeration respectively 492 //Emergency call , USB enumeration respectively
493 mmeInit(); //fieldstrength driver 493 mmeInit(); //fieldstrength driver
494 /* SH - PIN screen now comes before welcome screen */ 494 /* SH - PIN screen now comes before welcome screen */
495 startregis(); 495 startregis();
496 } 496 }
497 497
498 /******************************************************************************* 498 /*******************************************************************************
499 499
500 $Function: startExit 500 $Function: startExit
503 of the startInit above 503 of the startInit above
504 504
505 $Returns: None. 505 $Returns: None.
506 506
507 $Arguments: None. 507 $Arguments: None.
508 508
509 *******************************************************************************/ 509 *******************************************************************************/
510 510
511 void startExit( void ) 511 void startExit( void )
512 { 512 {
513 /* remove keyboard handlers 513 /* remove keyboard handlers
517 517
518 /* SPR#2346 - SH - GPRS */ 518 /* SPR#2346 - SH - GPRS */
519 #ifdef MMI_GPRS_ENABLED 519 #ifdef MMI_GPRS_ENABLED
520 GPRS_Exit(); 520 GPRS_Exit();
521 #endif /* GPRS */ 521 #endif /* GPRS */
522 522
523 523
524 /* shut down the sim toolkit 524 /* shut down the sim toolkit
525 */ 525 */
526 simToolkitExit(); 526 simToolkitExit();
527 527
528 /* close the phonebook, calls, idle, services, icons, sounds 528 /* close the phonebook, calls, idle, services, icons, sounds
558 558
559 $Returns: None. 559 $Returns: None.
560 560
561 $Arguments: reason, for invoking the execute method, 561 $Arguments: reason, for invoking the execute method,
562 next, not used passed for compatibility 562 next, not used passed for compatibility
563 563
564 *******************************************************************************/ 564 *******************************************************************************/
565 565
566 void startExec( int reason, MmiState next ) 566 void startExec( int reason, MmiState next )
567 { 567 {
568 switch (reason) 568 switch (reason)
572 /* initialising, run the animation 572 /* initialising, run the animation
573 */ 573 */
574 sim_init(); /* init SIM handler */ 574 sim_init(); /* init SIM handler */
575 nm_init(); /* init REG handler */ 575 nm_init(); /* init REG handler */
576 startInit(); /* init startup module */ 576 startInit(); /* init startup module */
577 577
578 } 578 }
579 break; 579 break;
580 580
581 case FirstTimeNMFound: 581 case FirstTimeNMFound:
582 { 582 {
585 TRACE_EVENT("NM Found"); 585 TRACE_EVENT("NM Found");
586 586
587 winFocus( win ); 587 winFocus( win );
588 winShow( win ); 588 winShow( win );
589 idleExec( IdleNormal, 0 ); 589 idleExec( IdleNormal, 0 );
590 590
591 } 591 }
592 break; 592 break;
593 593
594 case NmSearching: 594 case NmSearching:
595 { 595 {
596 /* just trace on the search event for now 596 /* just trace on the search event for now
597 */ 597 */
598 TRACE_EVENT("Search"); 598 TRACE_EVENT("Search");
599 599
600 } 600 }
601 break; 601 break;
602 602
603 default: 603 default:
604 { 604 {
616 $Description: provides handle of currently focussed window 616 $Description: provides handle of currently focussed window
617 617
618 $Returns: mfwFocus 618 $Returns: mfwFocus
619 619
620 $Arguments: None. 620 $Arguments: None.
621 621
622 *******************************************************************************/ 622 *******************************************************************************/
623 623
624 MfwHnd startWhoIsFocused( void ) 624 MfwHnd startWhoIsFocused( void )
625 { 625 {
626 return( mfwFocus ); 626 return( mfwFocus );
629 /******************************************************************************* 629 /*******************************************************************************
630 630
631 $Function: showwelcome 631 $Function: showwelcome
632 632
633 $Description: shows a welcome Message when swiching on the mobile 633 $Description: shows a welcome Message when swiching on the mobile
634 634
635 $Returns: none 635 $Returns: none
636 636
637 $Arguments: 637 $Arguments:
638 638
639 *******************************************************************************/ 639 *******************************************************************************/
640 640
641 void showwelcome (T_MFW_HND win) /* SH - not static, as now externally called */ 641 void showwelcome (T_MFW_HND win) /* SH - not static, as now externally called */
642 { 642 {
643 643
644 TRACE_FUNCTION("showwelcome ()"); 644 TRACE_FUNCTION("showwelcome ()");
645 645
646 646
647 idle_set_starting_up(FALSE); /*SPR#1662-NH Starting is finished for Idle */ 647 idle_set_starting_up(FALSE); /*SPR#1662-NH Starting is finished for Idle */
648 // Oct 11, 2005 REF: LOCOSTO-SPR-34629 - xpradipg 648 // Oct 11, 2005 REF: LOCOSTO-SPR-34629 - xpradipg
649 // Since the static image is displayed at bootup and it is preponed, this 649 // Since the static image is displayed at bootup and it is preponed, this
650 // function will be called after the sim insert indication is recieved hence 650 // function will be called after the sim insert indication is recieved hence
651 // we go ahead with the display of the Idle screen by calling show_welcome_cb 651 // we go ahead with the display of the Idle screen by calling show_welcome_cb
652 652
653 #if 0 /* FreeCalypso */ 653 #if 0 /* FreeCalypso */
654 boot_time_snapshot(EAppInit); /*OMAPS00091029 x0039928(sumanth) - to mark the end of app init*/ 654 boot_time_snapshot(EAppInit); /*OMAPS00091029 x0039928(sumanth) - to mark the end of app init*/
659 #else 659 #else
660 { 660 {
661 T_DISPLAY_DATA display_info; 661 T_DISPLAY_DATA display_info;
662 dlg_initDisplayData_TextId( &display_info, TxtNull, TxtNull, TxtNull, TxtNull , COLOUR_STATUS_WELCOME); 662 dlg_initDisplayData_TextId( &display_info, TxtNull, TxtNull, TxtNull, TxtNull , COLOUR_STATUS_WELCOME);
663 dlg_initDisplayData_events( &display_info, (T_VOID_FUNC)show_welcome_cb, FOUR_SECS, 0 ); 663 dlg_initDisplayData_events( &display_info, (T_VOID_FUNC)show_welcome_cb, FOUR_SECS, 0 );
664 664
665 /* 665 /*
666 * Call Icon 666 * Call Icon
667 */ 667 */
668 mmi_dialogs_insert_animation (info_dialog (win, &display_info), 400 ,(MfwIcnAttr*)&welcome_Attr,animwelcome); 668 mmi_dialogs_insert_animation (info_dialog (win, &display_info), 400 ,(MfwIcnAttr*)&welcome_Attr,animwelcome);
669 } 669 }
670 #endif 670 #endif
671 671
672 672
673 } 673 }
674 674
675 /******************************************************************************* 675 /*******************************************************************************
676 676
677 $Function: show_welcome_cb 677 $Function: show_welcome_cb
678 678
679 $Description: shows a welcome Message when swiching on the mobile 679 $Description: shows a welcome Message when swiching on the mobile
680 680
681 $Returns: none 681 $Returns: none
682 682
683 $Arguments: 683 $Arguments:
684 684
685 *******************************************************************************/ 685 *******************************************************************************/
686 686
687 static int show_welcome_cb(T_MFW_HND win, USHORT identifier, UBYTE reason) 687 static int show_welcome_cb(T_MFW_HND win, USHORT identifier, UBYTE reason)
688 { 688 {
689 TRACE_FUNCTION("show_welcome_cb"); 689 TRACE_FUNCTION("show_welcome_cb");
721 721
722 animation_complete = TRUE; 722 animation_complete = TRUE;
723 723
724 /* SPR#1929 - DS - Check if there is voicemail waiting. Port of 1960 */ 724 /* SPR#1929 - DS - Check if there is voicemail waiting. Port of 1960 */
725 /*a0393213 cphs rel4*/ 725 /*a0393213 cphs rel4*/
726 #ifdef FF_CPHS_REL4 726 #ifdef FF_CPHS_REL4
727 if(!isMWISFilePresent()) 727 if(!isMWISFilePresent())
728 #endif 728 #endif
729 GetCphsVoicemailStatus(0); 729 GetCphsVoicemailStatus(0);
730 730
731 /* 30th May,2006 OMAPS00079650 a0393213 (R.Prabakar) 731 /* 30th May,2006 OMAPS00079650 a0393213 (R.Prabakar)
732 Description : CPHS Call Forwarding feature implementation 732 Description : CPHS Call Forwarding feature implementation
733 Solution : As part of the implemention, divert status is got during boot-up. 733 Solution : As part of the implemention, divert status is got during boot-up.
734 The existing code is also maintained*/ 734 The existing code is also maintained*/
735 #ifdef FF_CPHS 735 #ifdef FF_CPHS
736 /*a0393213 cphs rel4*/ 736 /*a0393213 cphs rel4*/
737 /* call cphs_get_divert_status() only when EF(CFIS) is not present. when EF(CFIS) is present, the call to 737 /* call cphs_get_divert_status() only when EF(CFIS) is not present. when EF(CFIS) is present, the call to
738 cphs_get_divert_status() should be made only after fetching MSP information from network*/ 738 cphs_get_divert_status() should be made only after fetching MSP information from network*/
739 #ifdef FF_CPHS_REL4 739 #ifdef FF_CPHS_REL4
740 if(!isCFISFilePresent()) 740 if(!isCFISFilePresent())
741 #endif 741 #endif
742 cphs_get_divert_status (); 742 cphs_get_divert_status ();
743 #else 743 #else
744 // Jun 23, 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken) 744 // Jun 23, 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken)
745 // Setting the CF icon state depending on the value in flash. 745 // Setting the CF icon state depending on the value in flash.
746 if(FFS_flashData.CFState==TRUE) 746 if(FFS_flashData.CFState==TRUE)
747 { 747 {
748 iconsSetState(iconIdCallFor); 748 iconsSetState(iconIdCallFor);
749 } 749 }
750 else 750 else
752 iconsDeleteState(iconIdCallFor); 752 iconsDeleteState(iconIdCallFor);
753 } 753 }
754 #endif 754 #endif
755 755
756 idleEvent(IdleUpdate); 756 idleEvent(IdleUpdate);
757 757
758 return 1; // RAVI - Changed Return to Return 1 758 return 1; // RAVI - Changed Return to Return 1
759 } 759 }
760 760
761 /* GW return when animation is complete (and the idle screen can be displayed*/ 761 /* GW return when animation is complete (and the idle screen can be displayed*/
762 int mmiStart_animationComplete( void ) 762 int mmiStart_animationComplete( void )
767 767
768 #ifdef NEW_KEY_INPUT 768 #ifdef NEW_KEY_INPUT
769 #include "kpd_cfg.h" 769 #include "kpd_cfg.h"
770 #include "mfw_kbd.h" 770 #include "mfw_kbd.h"
771 #define MAX_KEY 255 771 #define MAX_KEY 255
772 U32 mfw_kbd_map [MAX_KEY] = 772 U32 mfw_kbd_map [MAX_KEY] =
773 { 773 {
774 KEY_0, 774 KEY_0,
775 KEY_1, 775 KEY_1,
776 KEY_2, 776 KEY_2,
777 KEY_3, 777 KEY_3,
780 KEY_6, 780 KEY_6,
781 KEY_7, 781 KEY_7,
782 KEY_8, 782 KEY_8,
783 KEY_9, 783 KEY_9,
784 KEY_STAR, 784 KEY_STAR,
785 785
786 }; 786 };
787 787
788 void mfw_keyMap(int mfw_key, int hw_key) 788 void mfw_keyMap(int mfw_key, int hw_key)
789 { 789 {
790 if ((hw_key >0) && (hw_key<MAX_KEY)) 790 if ((hw_key >0) && (hw_key<MAX_KEY))
791 mfw_kbd_map[hw_key] = mfw_key; 791 mfw_kbd_map[hw_key] = mfw_key;
792 } 792 }
793 793
794 void start_setKeys( void ) 794 void start_setKeys( void )
795 { 795 {
796 mfw_keyMap(KEY_0, KPD_KEY_0); 796 mfw_keyMap(KEY_0, KPD_KEY_0);
797 mfw_keyMap(KEY_1, KPD_KEY_1); 797 mfw_keyMap(KEY_1, KPD_KEY_1);
798 mfw_keyMap(KEY_2, KPD_KEY_2); 798 mfw_keyMap(KEY_2, KPD_KEY_2);
799 mfw_keyMap(KEY_3, KPD_KEY_3); 799 mfw_keyMap(KEY_3, KPD_KEY_3);
800 mfw_keyMap(KEY_4, KPD_KEY_4); 800 mfw_keyMap(KEY_4, KPD_KEY_4);
823 } 823 }
824 824
825 #endif 825 #endif
826 826
827 /******************************************************************************* 827 /*******************************************************************************
828 828
829 End of File 829 End of File
830 830
831 *******************************************************************************/ 831 *******************************************************************************/