FreeCalypso > hg > fc-magnetite
comparison src/ui3/bmi/mmiStart.c @ 421:6a4d9f47793e
src/ui3/bmi: file renames to make the case consistent
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 21 Jan 2018 03:28:53 +0000 |
parents | src/ui3/bmi/MmiStart.c@e8ddbb0837ed |
children | bd2495364b5a |
comparison
equal
deleted
inserted
replaced
420:e8ddbb0837ed | 421:6a4d9f47793e |
---|---|
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 boot_time_snapshot(EAppInit); /*OMAPS00091029 x0039928(sumanth) - to mark the end of app init*/ | |
654 TRACE_EVENT("Boot Time Snapshot - EAppInit"); | |
655 #ifdef TI_PS_UICC_CHIPSET_15 | |
656 show_welcome_cb(win,0,0); | |
657 #else | |
658 { | |
659 T_DISPLAY_DATA display_info; | |
660 dlg_initDisplayData_TextId( &display_info, TxtNull, TxtNull, TxtNull, TxtNull , COLOUR_STATUS_WELCOME); | |
661 dlg_initDisplayData_events( &display_info, (T_VOID_FUNC)show_welcome_cb, FOUR_SECS, 0 ); | |
662 | |
663 /* | |
664 * Call Icon | |
665 */ | |
666 mmi_dialogs_insert_animation (info_dialog (win, &display_info), 400 ,(MfwIcnAttr*)&welcome_Attr,animwelcome); | |
667 } | |
668 #endif | |
669 | |
670 | |
671 } | |
672 | |
673 /******************************************************************************* | |
674 | |
675 $Function: show_welcome_cb | |
676 | |
677 $Description: shows a welcome Message when swiching on the mobile | |
678 | |
679 $Returns: none | |
680 | |
681 $Arguments: | |
682 | |
683 *******************************************************************************/ | |
684 | |
685 static int show_welcome_cb(T_MFW_HND win, USHORT identifier, UBYTE reason) | |
686 { | |
687 TRACE_FUNCTION("show_welcome_cb"); | |
688 | |
689 /* SH - removed call to startregis, now in startInit */ | |
690 | |
691 /* SPR759 - SH. Initialise homezone */ | |
692 #ifdef MMI_HOMEZONE_ENABLED | |
693 homezoneInit(); | |
694 #endif /* HOMEZONE */ | |
695 | |
696 /* SPR#1983 - SH - Initialise flash files for WAP */ | |
697 | |
698 #if defined (FF_WAP) && defined (CO_UDP_IP) | |
699 flash_wap_init(); | |
700 #endif /* WAP */ | |
701 | |
702 /* SPR#1112 - SH - Check which phonebook is active. If FFS is formatted and | |
703 * FFS phonebook is selected, initialise it. */ | |
704 #ifndef NEPTUNE_BOARD | |
705 #ifdef INT_PHONEBOOK | |
706 bookInitInternal(); | |
707 #endif | |
708 #else | |
709 #ifdef INT_PHONEBOOK | |
710 // bookInitInternal(); //SUMIT: Neptune: removed call to bookInitInternal for FFS | |
711 #endif | |
712 #endif | |
713 | |
714 /* SPR#1352 - SH - Initialise TTY */ | |
715 #ifdef MMI_TTY_ENABLED | |
716 call_tty_init(); | |
717 #endif | |
718 /* end SH */ | |
719 | |
720 animation_complete = TRUE; | |
721 | |
722 /* SPR#1929 - DS - Check if there is voicemail waiting. Port of 1960 */ | |
723 /*a0393213 cphs rel4*/ | |
724 #ifdef FF_CPHS_REL4 | |
725 if(!isMWISFilePresent()) | |
726 #endif | |
727 GetCphsVoicemailStatus(0); | |
728 | |
729 /* 30th May,2006 OMAPS00079650 a0393213 (R.Prabakar) | |
730 Description : CPHS Call Forwarding feature implementation | |
731 Solution : As part of the implemention, divert status is got during boot-up. | |
732 The existing code is also maintained*/ | |
733 #ifdef FF_CPHS | |
734 /*a0393213 cphs rel4*/ | |
735 /* call cphs_get_divert_status() only when EF(CFIS) is not present. when EF(CFIS) is present, the call to | |
736 cphs_get_divert_status() should be made only after fetching MSP information from network*/ | |
737 #ifdef FF_CPHS_REL4 | |
738 if(!isCFISFilePresent()) | |
739 #endif | |
740 cphs_get_divert_status (); | |
741 #else | |
742 // Jun 23, 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken) | |
743 // Setting the CF icon state depending on the value in flash. | |
744 if(FFS_flashData.CFState==TRUE) | |
745 { | |
746 iconsSetState(iconIdCallFor); | |
747 } | |
748 else | |
749 { | |
750 iconsDeleteState(iconIdCallFor); | |
751 } | |
752 #endif | |
753 | |
754 idleEvent(IdleUpdate); | |
755 | |
756 return 1; // RAVI - Changed Return to Return 1 | |
757 } | |
758 | |
759 /* GW return when animation is complete (and the idle screen can be displayed*/ | |
760 int mmiStart_animationComplete( void ) | |
761 { | |
762 return (animation_complete); | |
763 } | |
764 | |
765 | |
766 #ifdef NEW_KEY_INPUT | |
767 #include "kpd_cfg.h" | |
768 #include "mfw_kbd.h" | |
769 #define MAX_KEY 255 | |
770 U32 mfw_kbd_map [MAX_KEY] = | |
771 { | |
772 KEY_0, | |
773 KEY_1, | |
774 KEY_2, | |
775 KEY_3, | |
776 KEY_4, | |
777 KEY_5, | |
778 KEY_6, | |
779 KEY_7, | |
780 KEY_8, | |
781 KEY_9, | |
782 KEY_STAR, | |
783 | |
784 }; | |
785 | |
786 void mfw_keyMap(int mfw_key, int hw_key) | |
787 { | |
788 if ((hw_key >0) && (hw_key<MAX_KEY)) | |
789 mfw_kbd_map[hw_key] = mfw_key; | |
790 } | |
791 | |
792 void start_setKeys( void ) | |
793 { | |
794 mfw_keyMap(KEY_0, KPD_KEY_0); | |
795 mfw_keyMap(KEY_1, KPD_KEY_1); | |
796 mfw_keyMap(KEY_2, KPD_KEY_2); | |
797 mfw_keyMap(KEY_3, KPD_KEY_3); | |
798 mfw_keyMap(KEY_4, KPD_KEY_4); | |
799 mfw_keyMap(KEY_5, KPD_KEY_5); | |
800 mfw_keyMap(KEY_6, KPD_KEY_6); | |
801 mfw_keyMap(KEY_7, KPD_KEY_7); | |
802 mfw_keyMap(KEY_8, KPD_KEY_8); | |
803 mfw_keyMap(KEY_9, KPD_KEY_9); | |
804 mfw_keyMap(KEY_STAR, KPD_KEY_STAR); | |
805 mfw_keyMap(KEY_HASH, KPD_KEY_DIESE); | |
806 mfw_keyMap(KEY_LEFT, KPD_KEY_SOFT_LEFT); | |
807 mfw_keyMap(KEY_RIGHT, KPD_KEY_SOFT_RIGHT); | |
808 mfw_keyMap(KEY_CALL, KPD_KEY_CONNECT); | |
809 mfw_keyMap(KEY_HUP, KPD_KEY_DISCONNECT); | |
810 mfw_keyMap(KEY_POWER, KPD_PWR); | |
811 | |
812 mfw_keyMap(KEY_VOLUP, KPD_KEY_VOL_UP); | |
813 mfw_keyMap(KEY_VOLDOWN, KPD_KEY_VOL_DOWN); | |
814 | |
815 mfw_keyMap(KEY_MNUUP, KPD_KEY_UP); | |
816 mfw_keyMap(KEY_MNUDOWN, KPD_KEY_DOWN); | |
817 mfw_keyMap(KEY_MNULEFT, KPD_KEY_LEFT); | |
818 mfw_keyMap(KEY_MNURIGHT, KPD_KEY_RIGHT); | |
819 | |
820 | |
821 } | |
822 | |
823 #endif | |
824 | |
825 /******************************************************************************* | |
826 | |
827 End of File | |
828 | |
829 *******************************************************************************/ |