FreeCalypso > hg > fc-tourmaline
comparison src/ui/bmi/mmiStart.c @ 3:67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 16 Oct 2020 06:33:10 +0000 |
parents | |
children | c0052fe355d3 |
comparison
equal
deleted
inserted
replaced
2:3a14ee9a9843 | 3:67bfe9f274f6 |
---|---|
1 /******************************************************************************* | |
2 | |
3 CONDAT (UK) | |
4 | |
5 ******************************************************************************** | |
6 | |
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. | |
9 | |
10 ******************************************************************************** | |
11 | |
12 $Project name: Basic MMI | |
13 $Project code: BMI (6349) | |
14 $Module: Start | |
15 $File: MmiStart.c | |
16 $Revision: 1.0 | |
17 | |
18 $Author: Condat(UK) | |
19 $Date: 25/10/00 | |
20 | |
21 ******************************************************************************** | |
22 | |
23 Description: | |
24 | |
25 This provides the start code for the MMI | |
26 | |
27 ******************************************************************************** | |
28 $History: MmiStart.c | |
29 | |
30 Jan 05, 2007 OMAPS00084665 x0039928(sumanth) | |
31 Description: Boot time exceed UCSD estimations | |
32 | |
33 xashmic 21 Sep 2006, OMAPS00095831 | |
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, | |
36 enumerate all the USB ports automatically | |
37 | |
38 May 30, 2006 REF:OMAPS00079650 a0393213 (R.Prabakar) | |
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 | |
41 | |
42 Apr 06, 2006 ERT: OMAPS00070660 x0039928(sumanth) | |
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 | |
45 out voice memo feature if the above flag is enabled. | |
46 | |
47 Oct 11, 2005 REF: LOCOSTO-SPR-34629 - xpradipg | |
48 Description: Temporary removal of animation logo and replacing with | |
49 static image | |
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 | |
52 AT_CMD_CFUN full functionality | |
53 | |
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 | |
56 is displayed depending upon its state in the ffs | |
57 | |
58 25/10/00 Original Condat(UK) BMI version. | |
59 | |
60 Dec 23, 2005 REF: SR13873 - x0020906 | |
61 Description : Store the FFS value into current sound structure | |
62 Fix : Call setDefaultSound () to assign FFS value into current sound structure. | |
63 | |
64 $End | |
65 | |
66 *******************************************************************************/ | |
67 | |
68 | |
69 | |
70 | |
71 /******************************************************************************* | |
72 | |
73 Include files | |
74 | |
75 *******************************************************************************/ | |
76 #define ENTITY_MFW | |
77 | |
78 //#define CO_UDP_IP temp till xml file ready | |
79 | |
80 /* includes */ | |
81 #include <string.h> | |
82 #include <stdio.h> | |
83 #include <stdlib.h> | |
84 | |
85 #if defined (NEW_FRAME) | |
86 #include "typedefs.h" | |
87 #include "vsi.h" | |
88 #include "pei.h" | |
89 #include "custom.h" | |
90 #include "gsm.h" | |
91 #else | |
92 | |
93 #include "STDDEFS.H" | |
94 #include "custom.h" | |
95 #include "gsm.h" | |
96 #include "vsi.h" | |
97 | |
98 #endif | |
99 #include "mfw_sys.h" | |
100 #include "prim.h" | |
101 #include "pwr.h" /*OMAPS00091029 x0039928(sumanth)*/ | |
102 | |
103 #include "mfw_mfw.h" | |
104 #include "mfw_win.h" | |
105 #include "mfw_kbd.h" | |
106 /* SPR#1428 - SH - New Editor changes */ | |
107 #ifndef NEW_EDITOR | |
108 #include "mfw_edt.h" | |
109 #endif | |
110 #include "mfw_icn.h" | |
111 #include "mfw_mnu.h" | |
112 | |
113 #include "mfw_lng.h" | |
114 #include "mfw_nm.h" | |
115 #include "mfw_icn.h" | |
116 #include "mfw_sim.h" | |
117 #include "mfw_sat.h" | |
118 #include "mfw_phb.h" | |
119 #include "ksd.h" | |
120 #include "psa.h" | |
121 #include "mfw_sms.h" | |
122 #include "mfw_tim.h" | |
123 #include "mfw_mme.h" // SH - so we can call mmeInit in show_welcome_cb | |
124 | |
125 #include "MmiMmi.h" | |
126 #include "MmiDummy.h" | |
127 #include "MmiDialogs.h" | |
128 #include "MmiLists.h" | |
129 | |
130 #include "MmiMain.h" | |
131 #include "mmiCall.h" | |
132 #include "MmiStart.h" | |
133 #include "MmiPins.h" | |
134 #include "MmiIdle.h" | |
135 #include "Mmiicons.h" | |
136 #include "MmiSettings.h" | |
137 #include "MmiMenu.h" | |
138 #include "MmiNetwork.h" | |
139 #include "MmiServices.h" | |
140 #include "MmiBookController.h" | |
141 #include "MmiBookServices.h" | |
142 #include "MmiNetwork.h" | |
143 #include "MmiSimToolkit.h" | |
144 | |
145 #ifndef FF_NO_VOICE_MEMO | |
146 #include "MmiVoiceMemo.h" | |
147 #endif | |
148 | |
149 #include "MmiCPHS.h" | |
150 #include "mmiSmsIdle.h" | |
151 #include "mmiSmsMenu.h" | |
152 | |
153 /* Set Default FFS value to sound structure - RAVI - 23-12-2005 */ | |
154 #ifdef NEPTUNE_BOARD | |
155 #include "MmiSounds.h" | |
156 #endif | |
157 /* END RAVI */ | |
158 | |
159 #ifdef BTE_MOBILE | |
160 #include "mmiBluetooth.h" | |
161 #endif | |
162 | |
163 #ifdef MMI_GPRS_ENABLED | |
164 #include "MmiGprs.h" | |
165 #endif /* GPRS */ | |
166 | |
167 /* SPR759 - SH*/ | |
168 #ifdef MMI_HOMEZONE_ENABLED | |
169 #include "MmiHomezone.h" | |
170 #endif | |
171 | |
172 /* SPR1983 - SH */ | |
173 #ifdef FF_WAP | |
174 #include "MmiWapFfs.h" | |
175 | |
176 /* SPR2086 - SH */ | |
177 #include "AUIWapext.h" | |
178 #endif | |
179 | |
180 #ifndef NEPTUNE_BOARD | |
181 #ifdef FF_EM_MODE | |
182 #include "MmiEm.h" | |
183 #endif | |
184 #else | |
185 #ifdef TI_PS_FF_EM | |
186 #include "MmiEm.h" | |
187 #endif | |
188 #endif | |
189 | |
190 #include "cus_aci.h" | |
191 | |
192 #include "prim.h" | |
193 #ifndef PCM_2_FFS | |
194 #include "pcm.h" | |
195 #endif | |
196 | |
197 | |
198 #include "mmiColours.h" | |
199 | |
200 #ifndef MFW_EVENT_PASSED | |
201 #define MFW_EVENT_PASSED 0 | |
202 #endif | |
203 | |
204 // Jun 23 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken) | |
205 #include "mfw_ffs.h" | |
206 | |
207 #ifdef FF_MMI_MULTIMEDIA | |
208 #include "mfw_MultimediaApp.h" | |
209 #endif | |
210 | |
211 | |
212 extern void sms_cb_init (void); | |
213 | |
214 /******************************************************************************* | |
215 | |
216 Static data | |
217 | |
218 *******************************************************************************/ | |
219 | |
220 static MfwHnd win; | |
221 static MfwHnd kbd; | |
222 | |
223 /* The following information controls the welcome animation | |
224 */ | |
225 #define WELCOME 1 | |
226 #define NO_WELCOME 0 | |
227 | |
228 /* static MfwHnd win_animation; x0039928 - Lint warning fix */ | |
229 /* static USHORT animation_index; x0039928 - Lint warning fix */ | |
230 /* static U8 welcome_status; x0039928 - Lint warning fix */ | |
231 /* SPR877 - SH - set to TRUE if welcome animation has finished */ | |
232 UBYTE animation_complete = FALSE; | |
233 | |
234 /******************************************************************************* | |
235 | |
236 Local prototypes | |
237 | |
238 *******************************************************************************/ | |
239 | |
240 static int winEvent( MfwEvt e, MfwWin *w ); | |
241 static int keyEvent( MfwEvt e, MfwKbd *k ); | |
242 | |
243 | |
244 static void showDefault( void ); | |
245 | |
246 /* SH - moved showwelcome primitive to header file */ | |
247 static int show_welcome_cb(T_MFW_HND win, USHORT identifier, UBYTE reason); | |
248 // Oct 11, 2005 REF: LOCOSTO-SPR-34629 - xpradipg | |
249 #ifdef TI_PS_UICC_CHIPSET_15 | |
250 extern unsigned char TIlogColour[]; | |
251 #endif | |
252 /******************************************************************************* | |
253 | |
254 Private methods | |
255 | |
256 *******************************************************************************/ | |
257 | |
258 #if(0) /* x0039928 - Lint warning fix */ | |
259 /******************************************************************************* | |
260 | |
261 $Function: winEvent | |
262 | |
263 $Description: Window event handler, handles window visible events and | |
264 ignores all others | |
265 | |
266 $Returns: MFW_EVENT_CONSUMED or MFW_EVENT_PASSED | |
267 | |
268 $Arguments: e, event to be handles, w, window handle | |
269 | |
270 *******************************************************************************/ | |
271 | |
272 static int winEvent( MfwEvt e, MfwWin *w ) | |
273 { | |
274 TRACE_FUNCTION("WinEvent(Start)"); | |
275 switch( e ) | |
276 { | |
277 case MfwWinVisible: | |
278 { | |
279 if (w->flags & MfwWinVisible) | |
280 show(); | |
281 } | |
282 break; | |
283 | |
284 default: | |
285 { | |
286 return MFW_EVENT_PASSED; | |
287 } | |
288 } | |
289 | |
290 return MFW_EVENT_CONSUMED; | |
291 } | |
292 | |
293 | |
294 /******************************************************************************* | |
295 | |
296 $Function: winanimEvent | |
297 | |
298 $Description: Handle events during the window animation | |
299 | |
300 $Returns: None. | |
301 | |
302 $Arguments: None. | |
303 | |
304 *******************************************************************************/ | |
305 | |
306 static int winanimEvent( MfwEvt e, MfwWin *w ) | |
307 { | |
308 | |
309 TRACE_FUNCTION("winanimEvent"); | |
310 | |
311 switch( e ) | |
312 { | |
313 case MfwWinVisible: | |
314 dspl_ClearAll(); | |
315 | |
316 break; | |
317 default: | |
318 { | |
319 return MFW_EVENT_PASSED; | |
320 } | |
321 } | |
322 | |
323 return MFW_EVENT_CONSUMED; | |
324 } | |
325 | |
326 #endif | |
327 | |
328 /******************************************************************************* | |
329 | |
330 $Function: startregis | |
331 | |
332 $Description: All we need to do here is start the SIM | |
333 | |
334 $Returns: None. | |
335 | |
336 $Arguments: None. | |
337 | |
338 *******************************************************************************/ | |
339 | |
340 static void startregis( void ) | |
341 { | |
342 TRACE_FUNCTION("start registration"); | |
343 // Oct 11, 2005 REF: LOCOSTO-SPR-34629 - xpradipg | |
344 // the static image is displayed just before intiating the full functionality | |
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); | |
347 #endif | |
348 sim_activate(); | |
349 | |
350 | |
351 | |
352 } | |
353 | |
354 /******************************************************************************* | |
355 | |
356 Public methods | |
357 | |
358 *******************************************************************************/ | |
359 | |
360 /******************************************************************************* | |
361 | |
362 $Function: startInit | |
363 | |
364 $Description: Initialises the MMI startup functions | |
365 | |
366 $Returns: None. | |
367 | |
368 $Arguments: None. | |
369 | |
370 *******************************************************************************/ | |
371 | |
372 void startInit( void ) | |
373 { | |
374 | |
375 #ifdef FF_MMI_MMS | |
376 /* TISHMMS Project */ | |
377 extern void mms_wap_data_init(void); | |
378 extern void mms_mms_data_init(void); | |
379 #endif | |
380 | |
381 // T_MFW_HND hnd; // RAVI | |
382 | |
383 /* Assume the welcome status is welcome | |
384 */ | |
385 /* welcome_status = WELCOME; x0039928 - Lint warning fix */ | |
386 | |
387 animation_complete = FALSE; | |
388 | |
389 /* unset the flag for ready state at the beginning*/ | |
390 smsidle_unset_ready_state(); | |
391 | |
392 /* setup signalling and AUTOFOCUS | |
393 */ | |
394 mfwSetSignallingMethod( 1 ); | |
395 winAutoFocus( TRUE ); | |
396 | |
397 /* API/GW - Set Colour of displays */ | |
398 colour_initial_colours(); | |
399 | |
400 /* GW-SPR#1035-Added SAT changes by Nebi (changed initialisation order). */ | |
401 /* initialise network services */ | |
402 simToolkitInit( 0 ); | |
403 bookInitialise( 0 ); | |
404 callInit( 0 ); | |
405 iconsInit(); | |
406 | |
407 #ifdef BTE_MOBILE | |
408 mmi_bt_init(); | |
409 #endif | |
410 | |
411 /* Handlers created on windows */ | |
412 pin_init( 0 ); | |
413 networkInit( 0 ); | |
414 smsidle_start(0, NULL); | |
415 servicesInit( 0 ); | |
416 | |
417 idleInit( 0 ); | |
418 | |
419 #ifndef FF_NO_VOICE_MEMO | |
420 voice_memo_init (); | |
421 #endif | |
422 | |
423 voice_mail_init (); | |
424 sms_cb_init (); | |
425 | |
426 mmi_cphs_init(); | |
427 | |
428 /* SPR#2346 - SH - GPRS */ | |
429 #ifdef MMI_GPRS_ENABLED | |
430 GPRS_Init(); | |
431 #endif /* GPRS */ | |
432 | |
433 #ifndef NEPTUNE_BOARD | |
434 #ifdef FF_EM_MODE | |
435 mmi_em_init();/*MC SPR1209 engineering mode*/ | |
436 #endif | |
437 | |
438 /* SPR#2086 - SH - Startup WAP */ | |
439 #if defined (FF_WAP) && defined (FF_GPF_TCPIP) | |
440 AUI_wap_init(); | |
441 #endif | |
442 | |
443 #ifdef FF_MMI_MMS | |
444 /* TISHMMS Project */ | |
445 /*init mms wap profile*/ | |
446 mms_wap_data_init(); | |
447 mms_mms_data_init(); | |
448 #endif | |
449 #else /* NEPTUNE_BOARD */ | |
450 /* NEPTUNE: Sumit*/ | |
451 #if 0 | |
452 /* SPR#2346 - SH - GPRS */ | |
453 #ifdef MMI_GPRS_ENABLED | |
454 GPRS_Init(); | |
455 #endif /* GPRS */ | |
456 | |
457 #ifdef TI_PS_FF_EM | |
458 mmi_em_init();/*MC SPR1209 engineering mode*/ | |
459 #endif | |
460 | |
461 /* SPR#2086 - SH - Startup WAP */ | |
462 #if defined (FF_WAP) && defined (FF_GPF_TCPIP) | |
463 AUI_wap_init(); | |
464 #endif | |
465 | |
466 #ifdef FF_MMI_MMS | |
467 /* TISHMMS Project */ | |
468 /*init mms wap profile*/ | |
469 mms_wap_data_init(); | |
470 mms_mms_data_init(); | |
471 #endif | |
472 #endif /* if 0 */ | |
473 #endif /* NEPTUNE_BOARD */ | |
474 | |
475 /* Set FFS value into sound structure - RAVI - 21-12-2005 */ | |
476 #ifdef NEPTUNE_BOARD | |
477 setDefaultSound(); | |
478 #endif | |
479 /* END RAVI - 21-12-2005 */ | |
480 | |
481 /* Retrive the configurable ring tone stored */ | |
482 #ifdef NEPTUNE_BOARD | |
483 #ifdef FF_MMI_MULTIMEDIA | |
484 Store_Default_Parameter (); | |
485 setDefaultMSLTone (); | |
486 #endif | |
487 #endif | |
488 /* End */ | |
489 //xashmic 21 Sep 2006, OMAPS00095831 | |
490 //During bootup, PIN, PUK, SIMP, Insert SIM stages, | |
491 //Audio module, USB module needs to be initialized for | |
492 //Emergency call , USB enumeration respectively | |
493 mmeInit(); //fieldstrength driver | |
494 /* SH - PIN screen now comes before welcome screen */ | |
495 startregis(); | |
496 } | |
497 | |
498 /******************************************************************************* | |
499 | |
500 $Function: startExit | |
501 | |
502 $Description: Stops the MMI start windows, basically reverses the effect | |
503 of the startInit above | |
504 | |
505 $Returns: None. | |
506 | |
507 $Arguments: None. | |
508 | |
509 *******************************************************************************/ | |
510 | |
511 void startExit( void ) | |
512 { | |
513 /* remove keyboard handlers | |
514 */ | |
515 kbdDelete(kbd); | |
516 kbd = 0; | |
517 | |
518 /* SPR#2346 - SH - GPRS */ | |
519 #ifdef MMI_GPRS_ENABLED | |
520 GPRS_Exit(); | |
521 #endif /* GPRS */ | |
522 | |
523 | |
524 /* shut down the sim toolkit | |
525 */ | |
526 simToolkitExit(); | |
527 | |
528 /* close the phonebook, calls, idle, services, icons, sounds | |
529 and network handlers | |
530 */ | |
531 bookExit(); | |
532 | |
533 #ifdef BTE_MOBILE | |
534 mmi_bt_exit(); | |
535 #endif | |
536 | |
537 callExit(); | |
538 idleExit(); | |
539 smsidle_destroy (); | |
540 iconsExit(); | |
541 cphs_exit(); //MC | |
542 #ifdef NEPTUNE_BOARD | |
543 #ifdef TI_PS_FF_EM | |
544 mmi_em_exit();/*MC, SPR1209 engineering mode */ | |
545 #endif | |
546 #else | |
547 #ifdef FF_EM_MODE | |
548 mmi_em_exit();/*MC, SPR1209 engineering mode */ | |
549 #endif | |
550 #endif | |
551 } | |
552 | |
553 /******************************************************************************* | |
554 | |
555 $Function: startExec | |
556 | |
557 $Description: start window execute method | |
558 | |
559 $Returns: None. | |
560 | |
561 $Arguments: reason, for invoking the execute method, | |
562 next, not used passed for compatibility | |
563 | |
564 *******************************************************************************/ | |
565 | |
566 void startExec( int reason, MmiState next ) | |
567 { | |
568 switch (reason) | |
569 { | |
570 case PhoneInit: | |
571 { | |
572 /* initialising, run the animation | |
573 */ | |
574 sim_init(); /* init SIM handler */ | |
575 nm_init(); /* init REG handler */ | |
576 startInit(); /* init startup module */ | |
577 | |
578 } | |
579 break; | |
580 | |
581 case FirstTimeNMFound: | |
582 { | |
583 /* first time through setup window and idle handlers | |
584 */ | |
585 TRACE_EVENT("NM Found"); | |
586 | |
587 winFocus( win ); | |
588 winShow( win ); | |
589 idleExec( IdleNormal, 0 ); | |
590 | |
591 } | |
592 break; | |
593 | |
594 case NmSearching: | |
595 { | |
596 /* just trace on the search event for now | |
597 */ | |
598 TRACE_EVENT("Search"); | |
599 | |
600 } | |
601 break; | |
602 | |
603 default: | |
604 { | |
605 /* no default handling | |
606 */ | |
607 break; | |
608 } | |
609 } | |
610 } | |
611 | |
612 /******************************************************************************* | |
613 | |
614 $Function: startWhoIsFocused | |
615 | |
616 $Description: provides handle of currently focussed window | |
617 | |
618 $Returns: mfwFocus | |
619 | |
620 $Arguments: None. | |
621 | |
622 *******************************************************************************/ | |
623 | |
624 MfwHnd startWhoIsFocused( void ) | |
625 { | |
626 return( mfwFocus ); | |
627 } | |
628 | |
629 /******************************************************************************* | |
630 | |
631 $Function: showwelcome | |
632 | |
633 $Description: shows a welcome Message when swiching on the mobile | |
634 | |
635 $Returns: none | |
636 | |
637 $Arguments: | |
638 | |
639 *******************************************************************************/ | |
640 | |
641 void showwelcome (T_MFW_HND win) /* SH - not static, as now externally called */ | |
642 { | |
643 | |
644 TRACE_FUNCTION("showwelcome ()"); | |
645 | |
646 | |
647 idle_set_starting_up(FALSE); /*SPR#1662-NH Starting is finished for Idle */ | |
648 // Oct 11, 2005 REF: LOCOSTO-SPR-34629 - xpradipg | |
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 | |
651 // we go ahead with the display of the Idle screen by calling show_welcome_cb | |
652 | |
653 #if 0 /* FreeCalypso */ | |
654 boot_time_snapshot(EAppInit); /*OMAPS00091029 x0039928(sumanth) - to mark the end of app init*/ | |
655 #endif | |
656 TRACE_EVENT("Boot Time Snapshot - EAppInit"); | |
657 #ifdef TI_PS_UICC_CHIPSET_15 | |
658 show_welcome_cb(win,0,0); | |
659 #else | |
660 { | |
661 T_DISPLAY_DATA display_info; | |
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 ); | |
664 | |
665 /* | |
666 * Call Icon | |
667 */ | |
668 mmi_dialogs_insert_animation (info_dialog (win, &display_info), 400 ,(MfwIcnAttr*)&welcome_Attr,animwelcome); | |
669 } | |
670 #endif | |
671 | |
672 | |
673 } | |
674 | |
675 /******************************************************************************* | |
676 | |
677 $Function: show_welcome_cb | |
678 | |
679 $Description: shows a welcome Message when swiching on the mobile | |
680 | |
681 $Returns: none | |
682 | |
683 $Arguments: | |
684 | |
685 *******************************************************************************/ | |
686 | |
687 static int show_welcome_cb(T_MFW_HND win, USHORT identifier, UBYTE reason) | |
688 { | |
689 TRACE_FUNCTION("show_welcome_cb"); | |
690 | |
691 /* SH - removed call to startregis, now in startInit */ | |
692 | |
693 /* SPR759 - SH. Initialise homezone */ | |
694 #ifdef MMI_HOMEZONE_ENABLED | |
695 homezoneInit(); | |
696 #endif /* HOMEZONE */ | |
697 | |
698 /* SPR#1983 - SH - Initialise flash files for WAP */ | |
699 | |
700 #if defined (FF_WAP) && defined (CO_UDP_IP) | |
701 flash_wap_init(); | |
702 #endif /* WAP */ | |
703 | |
704 /* SPR#1112 - SH - Check which phonebook is active. If FFS is formatted and | |
705 * FFS phonebook is selected, initialise it. */ | |
706 #ifndef NEPTUNE_BOARD | |
707 #ifdef INT_PHONEBOOK | |
708 bookInitInternal(); | |
709 #endif | |
710 #else | |
711 #ifdef INT_PHONEBOOK | |
712 // bookInitInternal(); //SUMIT: Neptune: removed call to bookInitInternal for FFS | |
713 #endif | |
714 #endif | |
715 | |
716 /* SPR#1352 - SH - Initialise TTY */ | |
717 #ifdef MMI_TTY_ENABLED | |
718 call_tty_init(); | |
719 #endif | |
720 /* end SH */ | |
721 | |
722 animation_complete = TRUE; | |
723 | |
724 /* SPR#1929 - DS - Check if there is voicemail waiting. Port of 1960 */ | |
725 /*a0393213 cphs rel4*/ | |
726 #ifdef FF_CPHS_REL4 | |
727 if(!isMWISFilePresent()) | |
728 #endif | |
729 GetCphsVoicemailStatus(0); | |
730 | |
731 /* 30th May,2006 OMAPS00079650 a0393213 (R.Prabakar) | |
732 Description : CPHS Call Forwarding feature implementation | |
733 Solution : As part of the implemention, divert status is got during boot-up. | |
734 The existing code is also maintained*/ | |
735 #ifdef FF_CPHS | |
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 | |
738 cphs_get_divert_status() should be made only after fetching MSP information from network*/ | |
739 #ifdef FF_CPHS_REL4 | |
740 if(!isCFISFilePresent()) | |
741 #endif | |
742 cphs_get_divert_status (); | |
743 #else | |
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. | |
746 if(FFS_flashData.CFState==TRUE) | |
747 { | |
748 iconsSetState(iconIdCallFor); | |
749 } | |
750 else | |
751 { | |
752 iconsDeleteState(iconIdCallFor); | |
753 } | |
754 #endif | |
755 | |
756 idleEvent(IdleUpdate); | |
757 | |
758 return 1; // RAVI - Changed Return to Return 1 | |
759 } | |
760 | |
761 /* GW return when animation is complete (and the idle screen can be displayed*/ | |
762 int mmiStart_animationComplete( void ) | |
763 { | |
764 return (animation_complete); | |
765 } | |
766 | |
767 | |
768 #ifdef NEW_KEY_INPUT | |
769 #include "kpd_cfg.h" | |
770 #include "mfw_kbd.h" | |
771 #define MAX_KEY 255 | |
772 U32 mfw_kbd_map [MAX_KEY] = | |
773 { | |
774 KEY_0, | |
775 KEY_1, | |
776 KEY_2, | |
777 KEY_3, | |
778 KEY_4, | |
779 KEY_5, | |
780 KEY_6, | |
781 KEY_7, | |
782 KEY_8, | |
783 KEY_9, | |
784 KEY_STAR, | |
785 | |
786 }; | |
787 | |
788 void mfw_keyMap(int mfw_key, int hw_key) | |
789 { | |
790 if ((hw_key >0) && (hw_key<MAX_KEY)) | |
791 mfw_kbd_map[hw_key] = mfw_key; | |
792 } | |
793 | |
794 void start_setKeys( void ) | |
795 { | |
796 mfw_keyMap(KEY_0, KPD_KEY_0); | |
797 mfw_keyMap(KEY_1, KPD_KEY_1); | |
798 mfw_keyMap(KEY_2, KPD_KEY_2); | |
799 mfw_keyMap(KEY_3, KPD_KEY_3); | |
800 mfw_keyMap(KEY_4, KPD_KEY_4); | |
801 mfw_keyMap(KEY_5, KPD_KEY_5); | |
802 mfw_keyMap(KEY_6, KPD_KEY_6); | |
803 mfw_keyMap(KEY_7, KPD_KEY_7); | |
804 mfw_keyMap(KEY_8, KPD_KEY_8); | |
805 mfw_keyMap(KEY_9, KPD_KEY_9); | |
806 mfw_keyMap(KEY_STAR, KPD_KEY_STAR); | |
807 mfw_keyMap(KEY_HASH, KPD_KEY_DIESE); | |
808 mfw_keyMap(KEY_LEFT, KPD_KEY_SOFT_LEFT); | |
809 mfw_keyMap(KEY_RIGHT, KPD_KEY_SOFT_RIGHT); | |
810 mfw_keyMap(KEY_CALL, KPD_KEY_CONNECT); | |
811 mfw_keyMap(KEY_HUP, KPD_KEY_DISCONNECT); | |
812 mfw_keyMap(KEY_POWER, KPD_PWR); | |
813 | |
814 mfw_keyMap(KEY_VOLUP, KPD_KEY_VOL_UP); | |
815 mfw_keyMap(KEY_VOLDOWN, KPD_KEY_VOL_DOWN); | |
816 | |
817 mfw_keyMap(KEY_MNUUP, KPD_KEY_UP); | |
818 mfw_keyMap(KEY_MNUDOWN, KPD_KEY_DOWN); | |
819 mfw_keyMap(KEY_MNULEFT, KPD_KEY_LEFT); | |
820 mfw_keyMap(KEY_MNURIGHT, KPD_KEY_RIGHT); | |
821 | |
822 | |
823 } | |
824 | |
825 #endif | |
826 | |
827 /******************************************************************************* | |
828 | |
829 End of File | |
830 | |
831 *******************************************************************************/ |