comparison src/ui/bmi/mmiSettings.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 464d69ef83e2
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: Settings 14 $Module: Settings
15 $File: MmiSettings.c 15 $File: MmiSettings.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 25
26 ******************************************************************************** 26 ********************************************************************************
27 $History: MmiSettings.c 27 $History: MmiSettings.c
28 28
29 Mar 28, 2007 DR: OMAPS00122762 x0039928 29 Mar 28, 2007 DR: OMAPS00122762 x0039928
30 Description: MM: Deleting a PCM Voice Memo message in one particular memory, 30 Description: MM: Deleting a PCM Voice Memo message in one particular memory,
31 delete them in all memories 31 delete them in all memories
32 Solution: voice memo position and pcm voice memo position is provided for all the devices. 32 Solution: voice memo position and pcm voice memo position is provided for all the devices.
33 33
34 Oct 30 2006, OMAPS00098881 x0039928(sumanth) 34 Oct 30 2006, OMAPS00098881 x0039928(sumanth)
35 Removal of power variant 35 Removal of power variant
36 36
37 xashmic 27 Sep 2006, OMAPS00096389 37 xashmic 27 Sep 2006, OMAPS00096389
38 ENH - a) Providing static menu for re-selection of enum options for enumeration 38 ENH - a) Providing static menu for re-selection of enum options for enumeration
39 b) Popup menu displayed on connect event, can be enabled or disabled via menu option 39 b) Popup menu displayed on connect event, can be enabled or disabled via menu option
40 40
41 xashmic 9 Sep 2006, OMAPS00092732 41 xashmic 9 Sep 2006, OMAPS00092732
42 USBMS ER 42 USBMS ER
44 May 30, 2006 DR: OMAPS00070657 x0pleela 44 May 30, 2006 DR: OMAPS00070657 x0pleela
45 Description: CPHS feature on Locosto-Lite 45 Description: CPHS feature on Locosto-Lite
46 Solution: For ALS feature, 46 Solution: For ALS feature,
47 a) Updating function "setUserSettings2Default ()" to memset Line1 and line2 47 a) Updating function "setUserSettings2Default ()" to memset Line1 and line2
48 fields of FFS_flashData 48 fields of FFS_flashData
49 49
50 Apr 06, 2006 ERT: OMAPS00070660 x0039928(sumanth) 50 Apr 06, 2006 ERT: OMAPS00070660 x0039928(sumanth)
51 Description: Need to reduce flash foot-print for Locosto Lite 51 Description: Need to reduce flash foot-print for Locosto Lite
52 Solution: Voice Memo feature is put under the flag #ifndef FF_NO_VOICE_MEMO to compile 52 Solution: Voice Memo feature is put under the flag #ifndef FF_NO_VOICE_MEMO to compile
53 out voice memo feature if the above flag is enabled. 53 out voice memo feature if the above flag is enabled.
54 54
55 May 04, 2005 REF: CRR 30285 x0021334 55 May 04, 2005 REF: CRR 30285 x0021334
56 Description: SMS Status Request in idle and dedicated mode (using Menu) setting does not work 56 Description: SMS Status Request in idle and dedicated mode (using Menu) setting does not work
57 Solution: status of sms status request is read and focus is set accrodingly. 57 Solution: status of sms status request is read and focus is set accrodingly.
58 58
59 March 2, 2005 REF: CRR 11536 x0018858 59 March 2, 2005 REF: CRR 11536 x0018858
60 Description: Reply path not supported while sending a reply. 60 Description: Reply path not supported while sending a reply.
61 Solution: Added menu option for the reply path. 61 Solution: Added menu option for the reply path.
62 62
63 Aug 25, 2004 REF: CRR 24904 Deepa M.D 63 Aug 25, 2004 REF: CRR 24904 Deepa M.D
64 Bug:cleanup compile switches used for Go-lite 64 Bug:cleanup compile switches used for Go-lite
65 Fix:COLOURDISPLAY compiler switch has been added to the functions which are 65 Fix:COLOURDISPLAY compiler switch has been added to the functions which are
66 used only for the normal color build. 66 used only for the normal color build.
67 67
68 xrashmic 7 Dec, 2004 MMI-SPR-23965 68 xrashmic 7 Dec, 2004 MMI-SPR-23965
69 Description: Not able to extract the objects in EMS message 69 Description: Not able to extract the objects in EMS message
70 Solution: Extract and store the objects in the Object Manager 70 Solution: Extract and store the objects in the Object Manager
71 71
72 xrashmic 29 Nov, 2004 MMI-SPR-26161 72 xrashmic 29 Nov, 2004 MMI-SPR-26161
73 Description: The downloaded object through wap was not visible to the MMI 73 Description: The downloaded object through wap was not visible to the MMI
74 Solution: The downloaded wap object is available in the object manager 74 Solution: The downloaded wap object is available in the object manager
75 and can be used by the MMS 75 and can be used by the MMS
76 76
77 Jul 28, 2004 REF: CRR 20899 xkundadu 77 Jul 28, 2004 REF: CRR 20899 xkundadu
78 Description: No identification for user whether 'Any-key-Answer' is On/Off 78 Description: No identification for user whether 'Any-key-Answer' is On/Off
79 Solution: The menu focus will be on the 'On' menu if the 'Any key 79 Solution: The menu focus will be on the 'On' menu if the 'Any key
80 answer' is enabled, otherwise focus will be on 'Off' menu item. 80 answer' is enabled, otherwise focus will be on 'Off' menu item.
81 Changed "submenu" to "menuItem" to call a function, to set focus to 81 Changed "submenu" to "menuItem" to call a function, to set focus to
82 the selected option.Added function settingsFocusCurSelAnyKeyAns() 82 the selected option.Added function settingsFocusCurSelAnyKeyAns()
83 to set the focus to selected item. 83 to set the focus to selected item.
84 84
85 85
86 Jul 29, 2004 REF: CRR 20898 xkundadu 86 Jul 29, 2004 REF: CRR 20898 xkundadu
87 Description: No identification for user whether 'Auto-Answer' is On/Off 87 Description: No identification for user whether 'Auto-Answer' is On/Off
88 Solution: The menu focus will be on the 'On' menu if the 'Auto 88 Solution: The menu focus will be on the 'On' menu if the 'Auto
89 answer' is enabled, otherwise focus will be on 'Off' menu item. 89 answer' is enabled, otherwise focus will be on 'Off' menu item.
90 Changed 'submenu' to 'menuItem' to call a function, which sets the 90 Changed 'submenu' to 'menuItem' to call a function, which sets the
91 focus to the selected option. Added the function 91 focus to the selected option. Added the function
92 settingsFocusCurSelAutoAns() to set the focus to selected item. 92 settingsFocusCurSelAutoAns() to set the focus to selected item.
93 93
94 94
95 Jul 22,2004 CRR:20896 xrashmic - SASKEN 95 Jul 22,2004 CRR:20896 xrashmic - SASKEN
96 Description: The current time format is not highlighted 96 Description: The current time format is not highlighted
97 Fix: Instead of providing the submenu directly we call a function 97 Fix: Instead of providing the submenu directly we call a function
98 where we set the menu and also higlight the previously selected menu item 98 where we set the menu and also higlight the previously selected menu item
99 99
100 // Issue Number : SPR#12822 on 31/03/04 by vvadiraj 100 // Issue Number : SPR#12822 on 31/03/04 by vvadiraj
101 May 10, 2004 REF: CRR 15753 Deepa M.D 101 May 10, 2004 REF: CRR 15753 Deepa M.D
102 Menuitem provided to set the validity period to maximum. 102 Menuitem provided to set the validity period to maximum.
103 $End 103 $End
104 *******************************************************************************/ 104 *******************************************************************************/
105 105
106 106
107 /******************************************************************************* 107 /*******************************************************************************
108 108
109 Include Files 109 Include Files
110 110
111 *******************************************************************************/ 111 *******************************************************************************/
112 112
113 #define ENTITY_MFW 113 #define ENTITY_MFW
114 114
115 /* includes */ 115 /* includes */
159 #include "mfw_sms.h" 159 #include "mfw_sms.h"
160 #include "mfw_cphs.h" 160 #include "mfw_cphs.h"
161 #include "mfw_sat.h" 161 #include "mfw_sat.h"
162 #include "Mfw_td.h" 162 #include "Mfw_td.h"
163 163
164 #include "mfw_mme.h"//xashmic 27 Sep 2006, OMAPS00096389 164 #include "mfw_mme.h"//xashmic 27 Sep 2006, OMAPS00096389
165 165
166 #include "dspl.h" 166 #include "dspl.h"
167 167
168 #include "MmiMmi.h" 168 #include "MmiMmi.h"
169 #include "MmiDummy.h" 169 #include "MmiDummy.h"
246 246
247 #define ON 0 247 #define ON 0
248 #define OFF 1 248 #define OFF 1
249 #define CLEAR 2 249 #define CLEAR 2
250 250
251 251
252 typedef struct 252 typedef struct
253 { 253 {
254 UBYTE setting; 254 UBYTE setting;
255 UBYTE status; 255 UBYTE status;
256 } T_settings; 256 } T_settings;
257 257
258 //GW Added for settings not stored in FFS 258 //GW Added for settings not stored in FFS
259 static unsigned int BMIsettings=0; /* x0039928 - Lint warning fix */ 259 static unsigned int BMIsettings=0; /* x0039928 - Lint warning fix */
260 260
261 typedef enum 261 typedef enum
262 { 262 {
263 ENGLISH = 0, 263 ENGLISH = 0,
264 GERMAN, 264 GERMAN,
265 AUTOREDIAL, 265 AUTOREDIAL,
266 AUTOANSWER, 266 AUTOANSWER,
276 LCD_REFRESH, /*OMAPS00098881 (removing power variant) a0393213(Prabakar)*/ 276 LCD_REFRESH, /*OMAPS00098881 (removing power variant) a0393213(Prabakar)*/
277 #endif 277 #endif
278 MAX 278 MAX
279 }T_FACTORY_RESET_LIST; 279 }T_FACTORY_RESET_LIST;
280 280
281 281
282 282
283 T_settings DEFAULT_SETTINGS[] = 283 T_settings DEFAULT_SETTINGS[] =
284 { 284 {
285 {ENGLISH, ON}, //select the Language:English as a default 285 {ENGLISH, ON}, //select the Language:English as a default
286 {GERMAN, OFF}, 286 {GERMAN, OFF},
287 {AUTOREDIAL, OFF}, 287 {AUTOREDIAL, OFF},
288 {AUTOANSWER, OFF}, 288 {AUTOANSWER, OFF},
289 {ANYKEYANSWER, OFF}, 289 {ANYKEYANSWER, OFF},
290 {CALLTIMERS, CLEAR}, 290 {CALLTIMERS, CLEAR},
291 {KEYPAD_CLICK, ON}, //only one of the Keypads are eligible 291 {KEYPAD_CLICK, ON}, //only one of the Keypads are eligible
292 {KEYPAD_DTMF, OFF}, 292 {KEYPAD_DTMF, OFF},
293 {KEYPAD_SILENT, OFF}, 293 {KEYPAD_SILENT, OFF},
294 #ifndef FF_NO_VOICE_MEMO 294 #ifndef FF_NO_VOICE_MEMO
295 {VOICE_MEMO, CLEAR}, 295 {VOICE_MEMO, CLEAR},
296 #endif 296 #endif
297 #ifdef FF_POWER_MANAGEMENT 297 #ifdef FF_POWER_MANAGEMENT
298 {LCD_REFRESH, ON}, /*OMAPS00098881 (removing power variant) a0393213(Prabakar)*/ 298 {LCD_REFRESH, ON}, /*OMAPS00098881 (removing power variant) a0393213(Prabakar)*/
299 #endif 299 #endif
300 {MAX, 0xFF} 300 {MAX, 0xFF}
301 }; 301 };
302 302
303 /******************************************************************************* 303 /*******************************************************************************
304 304
305 $Function: SmsValidityPeriod 305 $Function: SmsValidityPeriod
306 306
307 $Description: Store the validity period information, selected by the user. 307 $Description: Store the validity period information, selected by the user.
308 308
309 309
310 $Returns: Execution status 310 $Returns: Execution status
311 311
312 $Arguments: m - menu handler 312 $Arguments: m - menu handler
313 i - Menu item selected 313 i - Menu item selected
314 314
315 *******************************************************************************/ 315 *******************************************************************************/
316 int SmsValidityPeriod(MfwMnu* m, MfwMnuItem* i) 316 int SmsValidityPeriod(MfwMnu* m, MfwMnuItem* i)
317 { 317 {
318 T_MFW_SMS_INFO sms_parameter; 318 T_MFW_SMS_INFO sms_parameter;
319 UBYTE index = 0; // RAVI - Assigned 0. 319 UBYTE index = 0; // RAVI - Assigned 0.
320 T_DISPLAY_DATA DisplayInfo; 320 T_DISPLAY_DATA DisplayInfo;
321 int txtId = 0; // RAVI - Assigned 0. 321 int txtId = 0; // RAVI - Assigned 0.
322 322
323 T_MFW_HND win = mfwParent(mfw_header()); 323 T_MFW_HND win = mfwParent(mfw_header());
324 324
325 TRACE_FUNCTION(">>>> SmsValidityPeriod()"); 325 TRACE_FUNCTION(">>>> SmsValidityPeriod()");
326 326
327 /*SPR#1952 - DS - Show the new period setting on pop-up dialog */ 327 /*SPR#1952 - DS - Show the new period setting on pop-up dialog */
328 switch (m->lCursor[m->level]) 328 switch (m->lCursor[m->level])
329 { 329 {
343 txtId = Txt1Week; 343 txtId = Txt1Week;
344 index = VP_REL_1_WEEK; 344 index = VP_REL_1_WEEK;
345 break; 345 break;
346 case 4: 346 case 4:
347 txtId = TxtMaxTime; 347 txtId = TxtMaxTime;
348 index = VP_REL_MAXIMUM; // May 10, 2004 REF: CRR 15753 Deepa M.D 348 index = VP_REL_MAXIMUM; // May 10, 2004 REF: CRR 15753 Deepa M.D
349 break; 349 break;
350 350
351 } 351 }
352 352
353 /* API - 28/07/03 - CQ10203 - Read the Data and then set the REL VP identifier*/ 353 /* API - 28/07/03 - CQ10203 - Read the Data and then set the REL VP identifier*/
354 SmsSend_get_config_data(&sms_parameter); 354 SmsSend_get_config_data(&sms_parameter);
355 355
356 FFS_flashData.vp_rel = index; 356 FFS_flashData.vp_rel = index;
357 flash_write(); 357 flash_write();
358 358
359 sms_parameter.vp_rel = FFS_flashData.vp_rel; 359 sms_parameter.vp_rel = FFS_flashData.vp_rel;
360 TRACE_EVENT_P1("sms_parameter.vp_rel = %d", sms_parameter.vp_rel); 360 TRACE_EVENT_P1("sms_parameter.vp_rel = %d", sms_parameter.vp_rel);
361 /*API - CQ10203 END*/ 361 /*API - CQ10203 END*/
362 362
363 if (sms_set_val_period(&sms_parameter) == MFW_SMS_OK) 363 if (sms_set_val_period(&sms_parameter) == MFW_SMS_OK)
364 dlg_initDisplayData_TextId( &DisplayInfo, TxtNull, TxtCancel,TxtSmsValidityPeriodSet, txtId /*SPR#1952*/, COLOUR_STATUS); 364 dlg_initDisplayData_TextId( &DisplayInfo, TxtNull, TxtCancel,TxtSmsValidityPeriodSet, txtId /*SPR#1952*/, COLOUR_STATUS);
365 else 365 else
366 dlg_initDisplayData_TextId( &DisplayInfo, TxtNull, TxtCancel,TxtFailed, TxtNull, COLOUR_STATUS); 366 dlg_initDisplayData_TextId( &DisplayInfo, TxtNull, TxtCancel,TxtFailed, TxtNull, COLOUR_STATUS);
367 367
368 dlg_initDisplayData_events( &DisplayInfo, (T_VOID_FUNC)NULL, THREE_SECS, KEY_RIGHT|KEY_CLEAR ); 368 dlg_initDisplayData_events( &DisplayInfo, (T_VOID_FUNC)NULL, THREE_SECS, KEY_RIGHT|KEY_CLEAR );
369 369
370 // Display confirmation screen. 370 // Display confirmation screen.
371 info_dialog(win,&DisplayInfo); 371 info_dialog(win,&DisplayInfo);
372 372
373 return 1; 373 return 1;
374 } 374 }
375 375
376 376
377 /* Marcus: Issue 1170: 30/09/2002: Start */ 377 /* Marcus: Issue 1170: 30/09/2002: Start */
378 /******************************************************************************* 378 /*******************************************************************************
379 379
380 $Function: SmsStatusReportRequest 380 $Function: SmsStatusReportRequest
381 381
382 $Description: Activate/Deactivate SRR, selected by the user. 382 $Description: Activate/Deactivate SRR, selected by the user.
383 383
384 $Returns: Execution status 384 $Returns: Execution status
385 385
386 $Arguments: m - menu handler 386 $Arguments: m - menu handler
387 i - Menu item selected 387 i - Menu item selected
388 388
389 *******************************************************************************/ 389 *******************************************************************************/
390 int SmsStatusReportRequest(MfwMnu* m, MfwMnuItem* i) 390 int SmsStatusReportRequest(MfwMnu* m, MfwMnuItem* i)
391 { 391 {
392 int index = m->lCursor[m->level]; 392 int index = m->lCursor[m->level];
393 T_DISPLAY_DATA DisplayInfo; 393 T_DISPLAY_DATA DisplayInfo;
400 { 400 {
401 if (index == 0) 401 if (index == 0)
402 sms_info.srr = SMS_NOT_REQUESTED_SRR; 402 sms_info.srr = SMS_NOT_REQUESTED_SRR;
403 else 403 else
404 sms_info.srr = SMS_REQUESTED_SRR; 404 sms_info.srr = SMS_REQUESTED_SRR;
405 405
406 if (sms_parameter(&sms_info, FALSE) == MFW_SMS_OK) 406 if (sms_parameter(&sms_info, FALSE) == MFW_SMS_OK)
407 { 407 {
408 408
409 if (index == 0) 409 if (index == 0)
410 TextId2 = TxtOff; 410 TextId2 = TxtOff;
411 else 411 else
412 TextId2 = TxtOn; 412 TextId2 = TxtOn;
413 413
414 dlg_initDisplayData_TextId( &DisplayInfo, TxtSoftOK, TxtNull,TxtSRR, TextId2, COLOUR_POPUP); 414 dlg_initDisplayData_TextId( &DisplayInfo, TxtSoftOK, TxtNull,TxtSRR, TextId2, COLOUR_POPUP);
415 dlg_initDisplayData_events( &DisplayInfo, (T_VOID_FUNC)NULL, THREE_SECS, KEY_RIGHT | KEY_LEFT ); 415 dlg_initDisplayData_events( &DisplayInfo, (T_VOID_FUNC)NULL, THREE_SECS, KEY_RIGHT | KEY_LEFT );
416 416
417 info_dialog(win,&DisplayInfo); 417 info_dialog(win,&DisplayInfo);
418 } 418 }
419 } 419 }
420 return 1; 420 return 1;
421 } 421 }
422 /* Marcus: Issue 1170: 30/09/2002: End */ 422 /* Marcus: Issue 1170: 30/09/2002: End */
423 423
424 /* 424 /*
425 March 2, 2005 REF: CRR 11536 x0018858 425 March 2, 2005 REF: CRR 11536 x0018858
426 Added a function to set the Reply path 426 Added a function to set the Reply path
427 */ 427 */
428 //begin -11536 428 //begin -11536
429 /******************************************************************************* 429 /*******************************************************************************
430 430
431 $Function: SmsReplyPathRequest 431 $Function: SmsReplyPathRequest
432 432
433 $Description: Activate/Deactivate reply path, selected by the user. 433 $Description: Activate/Deactivate reply path, selected by the user.
434 434
435 $Returns: Execution status 435 $Returns: Execution status
436 436
437 $Arguments: m - menu handler 437 $Arguments: m - menu handler
438 i - Menu item selected 438 i - Menu item selected
439 439
440 440
441 *******************************************************************************/ 441 *******************************************************************************/
455 reply_path_bit= SMS_UNSET_RP; 455 reply_path_bit= SMS_UNSET_RP;
456 else 456 else
457 reply_path_bit= SMS_SET_RP; 457 reply_path_bit= SMS_SET_RP;
458 458
459 TRACE_EVENT_P1("The reply paTH BIT IS = %d", reply_path_bit); 459 TRACE_EVENT_P1("The reply paTH BIT IS = %d", reply_path_bit);
460 460
461 if (index == 0) 461 if (index == 0)
462 TextId2 = TxtOff; 462 TextId2 = TxtOff;
463 else 463 else
464 TextId2 = TxtOn; 464 TextId2 = TxtOn;
465 465
466 dlg_initDisplayData_TextId( &DisplayInfo, TxtSoftOK, TxtNull,TxtRP, TextId2, COLOUR_POPUP); 466 dlg_initDisplayData_TextId( &DisplayInfo, TxtSoftOK, TxtNull,TxtRP, TextId2, COLOUR_POPUP);
467 dlg_initDisplayData_events( &DisplayInfo, (T_VOID_FUNC)NULL, THREE_SECS, KEY_RIGHT | KEY_LEFT ); 467 dlg_initDisplayData_events( &DisplayInfo, (T_VOID_FUNC)NULL, THREE_SECS, KEY_RIGHT | KEY_LEFT );
468 468
469 info_dialog(win,&DisplayInfo); 469 info_dialog(win,&DisplayInfo);
470 470
471 } 471 }
472 return 1; 472 return 1;
473 } 473 }
474 // End --11536 474 // End --11536
475 475
478 478
479 $Function: settingsVoiceMail 479 $Function: settingsVoiceMail
480 480
481 $Description: menu entry function 481 $Description: menu entry function
482 482
483 $Returns: 483 $Returns:
484 484
485 $Arguments: 485 $Arguments:
486 486
487 *******************************************************************************/ 487 *******************************************************************************/
488 int settingsVoiceMail(MfwMnu* m, MfwMnuItem* i) 488 int settingsVoiceMail(MfwMnu* m, MfwMnuItem* i)
489 489
490 { 490 {
491 491
499 499
500 $Function: settingsVoiceMail 500 $Function: settingsVoiceMail
501 501
502 $Description: menu entry function 502 $Description: menu entry function
503 503
504 $Returns: 504 $Returns:
505 505
506 $Arguments: 506 $Arguments:
507 507
508 *******************************************************************************/ 508 *******************************************************************************/
509 int settingsScNumber(MfwMnu* m, MfwMnuItem* i) 509 int settingsScNumber(MfwMnu* m, MfwMnuItem* i)
510 { 510 {
511 511
512 return 0; 512 return 0;
515 515
516 $Function: settingsInit 516 $Function: settingsInit
517 517
518 $Description: init settings handling 518 $Description: init settings handling
519 519
520 $Returns: 520 $Returns:
521 521
522 $Arguments: 522 $Arguments:
523 523
524 *******************************************************************************/ 524 *******************************************************************************/
525 void settingsInit (void) 525 void settingsInit (void)
526 { 526 {
527 527
528 TRACE_EVENT ("settingsInit()"); 528 TRACE_EVENT ("settingsInit()");
537 537
538 $Function: settingsExit 538 $Function: settingsExit
539 539
540 $Description: exit settings handling 540 $Description: exit settings handling
541 541
542 $Returns: 542 $Returns:
543 543
544 $Arguments: 544 $Arguments:
545 545
546 *******************************************************************************/ 546 *******************************************************************************/
547 void settingsExit (void) 547 void settingsExit (void)
548 { 548 {
549 TRACE_FUNCTION ("settingsExit()"); 549 TRACE_FUNCTION ("settingsExit()");
550 550
557 557
558 $Function: winEvent 558 $Function: winEvent
559 559
560 $Description: window event handler 560 $Description: window event handler
561 561
562 $Returns: 562 $Returns:
563 563
564 $Arguments: 564 $Arguments:
565 565
566 *******************************************************************************/ 566 *******************************************************************************/
567 static int winEvent (MfwEvt e, MfwWin *w) 567 static int winEvent (MfwEvt e, MfwWin *w)
568 { 568 {
569 TRACE_EVENT ("MmiSettings :: winEvent()"); 569 TRACE_EVENT ("MmiSettings :: winEvent()");
570 570
588 588
589 $Returns: Non-zero number if setting is ON 589 $Returns: Non-zero number if setting is ON
590 Zero if the setting is OFF 590 Zero if the setting is OFF
591 591
592 $Arguments: flagBit - value indicating which setting is to be changed. 592 $Arguments: flagBit - value indicating which setting is to be changed.
593 593
594 *******************************************************************************/ 594 *******************************************************************************/
595 int settingsGetStatus(int flagBit) 595 int settingsGetStatus(int flagBit)
596 { 596 {
597 if (flagBit & SettingsKeyPadLockOn) 597 if (flagBit & SettingsKeyPadLockOn)
598 { 598 {
599 return(BMIsettings & flagBit); 599 return(BMIsettings & flagBit);
600 } 600 }
601 else 601 else
602 { 602 {
603 return(FFS_flashData.settings_status & flagBit); 603 return(FFS_flashData.settings_status & flagBit);
604 } 604 }
605 } 605 }
606 /******************************************************************************* 606 /*******************************************************************************
607 607
608 $Function: settingsSetStatus 608 $Function: settingsSetStatus
611 611
612 $Returns: None. 612 $Returns: None.
613 613
614 $Arguments: flagBit - value indicating which setting is to be changed. 614 $Arguments: flagBit - value indicating which setting is to be changed.
615 state - SET_SETTING - set the value 615 state - SET_SETTING - set the value
616 - CLEAR_SETTING - clear the value. 616 - CLEAR_SETTING - clear the value.
617 GW SPR#2470 Created 617 GW SPR#2470 Created
618 *******************************************************************************/ 618 *******************************************************************************/
619 void settingsSetStatus(unsigned int flagBit, int value) 619 void settingsSetStatus(unsigned int flagBit, int value)
620 { 620 {
621 if (flagBit & SettingsKeyPadLockOn) 621 if (flagBit & SettingsKeyPadLockOn)
638 638
639 $Function: settingsAutoRedialOn 639 $Function: settingsAutoRedialOn
640 640
641 $Description: auto redial switch on 641 $Description: auto redial switch on
642 642
643 $Returns: 643 $Returns:
644 644
645 $Arguments: 645 $Arguments:
646 646
647 *******************************************************************************/ 647 *******************************************************************************/
648 int settingsAutoRedialOn(MfwMnu* m, MfwMnuItem* i) 648 int settingsAutoRedialOn(MfwMnu* m, MfwMnuItem* i)
649 { 649 {
650 650
651 T_MFW_HND win = mfw_parent(mfw_header()); 651 T_MFW_HND win = mfw_parent(mfw_header());
665 665
666 $Function: settingsAutoRedialOff 666 $Function: settingsAutoRedialOff
667 667
668 $Description: auto redial switch off 668 $Description: auto redial switch off
669 669
670 $Returns: 670 $Returns:
671 671
672 $Arguments: 672 $Arguments:
673 673
674 *******************************************************************************/ 674 *******************************************************************************/
675 int settingsAutoRedialOff(MfwMnu* m, MfwMnuItem* i) 675 int settingsAutoRedialOff(MfwMnu* m, MfwMnuItem* i)
676 { 676 {
677 T_MFW_HND win = mfw_parent(mfw_header()); 677 T_MFW_HND win = mfw_parent(mfw_header());
678 confirm_Init(win); 678 confirm_Init(win);
691 691
692 $Function: settingsSilentModeOn 692 $Function: settingsSilentModeOn
693 693
694 $Description: Activate the silent Mode 694 $Description: Activate the silent Mode
695 695
696 $Returns: 696 $Returns:
697 697
698 $Arguments: 698 $Arguments:
699 699
700 *******************************************************************************/ 700 *******************************************************************************/
701 int settingsSilentModeOn(void) 701 int settingsSilentModeOn(void)
702 { 702 {
703 TRACE_FUNCTION(">> settingsSilentModeOn()"); 703 TRACE_FUNCTION(">> settingsSilentModeOn()");
704 FFS_flashData.settings_status |= SettingsSilentMode; 704 FFS_flashData.settings_status |= SettingsSilentMode;
711 711
712 $Function: settingsSilentModeOff 712 $Function: settingsSilentModeOff
713 713
714 $Description: Deactivate the silent Mode 714 $Description: Deactivate the silent Mode
715 715
716 $Returns: 716 $Returns:
717 717
718 $Arguments: 718 $Arguments:
719 719
720 *******************************************************************************/ 720 *******************************************************************************/
721 int settingsSilentModeOff(void) 721 int settingsSilentModeOff(void)
722 { 722 {
723 TRACE_EVENT(">> settingsSilentModeOff()"); 723 TRACE_EVENT(">> settingsSilentModeOff()");
724 FFS_flashData.settings_status &= ~SettingsSilentMode; 724 FFS_flashData.settings_status &= ~SettingsSilentMode;
730 730
731 /******************************************************************************* 731 /*******************************************************************************
732 732
733 $Function: settingsKeyPadLockOn 733 $Function: settingsKeyPadLockOn
734 734
735 $Description: 735 $Description:
736 736
737 $Returns: 737 $Returns:
738 738
739 $Arguments: 739 $Arguments:
740 740
741 *******************************************************************************/ 741 *******************************************************************************/
742 int settingsKeyPadLockOn(void) 742 int settingsKeyPadLockOn(void)
743 { 743 {
744 BMIsettings = BMIsettings | SettingsKeyPadLockOn; 744 BMIsettings = BMIsettings | SettingsKeyPadLockOn;
745 iconsSetState(iconIdKeyplock); 745 iconsSetState(iconIdKeyplock);
748 } 748 }
749 /******************************************************************************* 749 /*******************************************************************************
750 750
751 $Function: settingsKeyPadLockOff 751 $Function: settingsKeyPadLockOff
752 752
753 $Description: 753 $Description:
754 754
755 $Returns: 755 $Returns:
756 756
757 $Arguments: 757 $Arguments:
758 758
759 *******************************************************************************/ 759 *******************************************************************************/
760 int settingsKeyPadLockOff(void) 760 int settingsKeyPadLockOff(void)
761 { 761 {
762 BMIsettings = BMIsettings & ~SettingsKeyPadLockOn; 762 BMIsettings = BMIsettings & ~SettingsKeyPadLockOn;
763 iconsDeleteState(iconIdKeyplock); 763 iconsDeleteState(iconIdKeyplock);
766 } 766 }
767 /******************************************************************************* 767 /*******************************************************************************
768 768
769 $Function: settingsAutoAnswerOn 769 $Function: settingsAutoAnswerOn
770 770
771 $Description: 771 $Description:
772 772
773 $Returns: 773 $Returns:
774 774
775 $Arguments: 775 $Arguments:
776 776
777 *******************************************************************************/ 777 *******************************************************************************/
778 int settingsAutoAnswerOn(MfwMnu* m, MfwMnuItem* i) 778 int settingsAutoAnswerOn(MfwMnu* m, MfwMnuItem* i)
779 { 779 {
780 T_MFW_HND win = mfw_parent(mfw_header()); 780 T_MFW_HND win = mfw_parent(mfw_header());
781 781
791 } 791 }
792 /******************************************************************************* 792 /*******************************************************************************
793 793
794 $Function: settingsAutoAnswerOff 794 $Function: settingsAutoAnswerOff
795 795
796 $Description: 796 $Description:
797 797
798 $Returns: 798 $Returns:
799 799
800 $Arguments: 800 $Arguments:
801 801
802 *******************************************************************************/ 802 *******************************************************************************/
803 int settingsAutoAnswerOff(MfwMnu* m, MfwMnuItem* i) 803 int settingsAutoAnswerOff(MfwMnu* m, MfwMnuItem* i)
804 { 804 {
805 T_MFW_HND win = mfw_parent(mfw_header()); 805 T_MFW_HND win = mfw_parent(mfw_header());
806 806
820 820
821 /******************************************************************************* 821 /*******************************************************************************
822 822
823 $Function: settingsAnyKeyAnswerOn 823 $Function: settingsAnyKeyAnswerOn
824 824
825 $Description: 825 $Description:
826 826
827 $Returns: 827 $Returns:
828 828
829 $Arguments: 829 $Arguments:
830 830
831 *******************************************************************************/ 831 *******************************************************************************/
832 int settingsAnyKeyAnswerOn(MfwMnu* m, MfwMnuItem* i) 832 int settingsAnyKeyAnswerOn(MfwMnu* m, MfwMnuItem* i)
833 { 833 {
834 T_MFW_HND win = mfw_parent(mfw_header()); 834 T_MFW_HND win = mfw_parent(mfw_header());
835 835
844 } 844 }
845 /******************************************************************************* 845 /*******************************************************************************
846 846
847 $Function: settingsAnyKeyAnswerOff 847 $Function: settingsAnyKeyAnswerOff
848 848
849 $Description: 849 $Description:
850 850
851 $Returns: 851 $Returns:
852 852
853 $Arguments: 853 $Arguments:
854 854
855 *******************************************************************************/ 855 *******************************************************************************/
856 int settingsAnyKeyAnswerOff(MfwMnu* m, MfwMnuItem* i) 856 int settingsAnyKeyAnswerOff(MfwMnu* m, MfwMnuItem* i)
857 { 857 {
858 858
859 T_MFW_HND win = mfw_parent(mfw_header()); 859 T_MFW_HND win = mfw_parent(mfw_header());
860 860
861 confirm_Init(win); 861 confirm_Init(win);
862 862
863 FFS_flashData.settings_status &= ~SettingsAnyKeyAnswerOn; 863 FFS_flashData.settings_status &= ~SettingsAnyKeyAnswerOn;
864 flash_write(); 864 flash_write();
865 confirm_data.local_status = DEACTIVATE_CONFIRM; 865 confirm_data.local_status = DEACTIVATE_CONFIRM;
866 866
867 SEND_EVENT (confirm_data.confirm_win, SHOW_CONFIRM, 0, 0); 867 SEND_EVENT (confirm_data.confirm_win, SHOW_CONFIRM, 0, 0);
871 871
872 /******************************************************************************* 872 /*******************************************************************************
873 873
874 $Function: factoryReset 874 $Function: factoryReset
875 875
876 $Description: Reset all the user-settings, 876 $Description: Reset all the user-settings,
877 At first it show up a confirmation screen 877 At first it show up a confirmation screen
878 $Returns: 878 $Returns:
879 879
880 $Arguments: 880 $Arguments:
881 881
882 *******************************************************************************/ 882 *******************************************************************************/
883 int factoryReset(MfwMnu* m, MfwMnuItem* i) 883 int factoryReset(MfwMnu* m, MfwMnuItem* i)
884 { 884 {
885 885
886 T_MFW_HND win = mfw_parent(mfw_header()); 886 T_MFW_HND win = mfw_parent(mfw_header());
887 887
888 confirm_Init(win); 888 confirm_Init(win);
889 889
890 confirm_data.local_status = FACTORY_RESET; 890 confirm_data.local_status = FACTORY_RESET;
891 891
892 SEND_EVENT (confirm_data.confirm_win, FACTORY_RESET, 0, 0); 892 SEND_EVENT (confirm_data.confirm_win, FACTORY_RESET, 0, 0);
897 897
898 /******************************************************************************* 898 /*******************************************************************************
899 899
900 $Function: setUserSettings2Default 900 $Function: setUserSettings2Default
901 901
902 $Description: The user confirm to delete the user-settings. 902 $Description: The user confirm to delete the user-settings.
903 903
904 $Returns: 904 $Returns:
905 905
906 $Arguments: 906 $Arguments:
907 907
908 *******************************************************************************/ 908 *******************************************************************************/
909 void setUserSettings2Default (void) 909 void setUserSettings2Default (void)
910 { 910 {
911 //char buf[30]; // RAVI 911 //char buf[30]; // RAVI
912 912
927 927
928 928
929 if (DEFAULT_SETTINGS[AUTOREDIAL].status EQ ON) 929 if (DEFAULT_SETTINGS[AUTOREDIAL].status EQ ON)
930 { 930 {
931 // set the Auto-redial 931 // set the Auto-redial
932 cm_set_redial(CM_REDIAL_AUTO); 932 cm_set_redial(CM_REDIAL_AUTO);
933 } 933 }
934 else 934 else
935 { 935 {
936 cm_set_redial(CM_REDIAL_OFF); 936 cm_set_redial(CM_REDIAL_OFF);
937 } 937 }
952 if (DEFAULT_SETTINGS[ANYKEYANSWER].status EQ ON) 952 if (DEFAULT_SETTINGS[ANYKEYANSWER].status EQ ON)
953 { 953 {
954 // set the Anykeyanswer 954 // set the Anykeyanswer
955 FFS_flashData.settings_status |= SettingsAnyKeyAnswerOn; 955 FFS_flashData.settings_status |= SettingsAnyKeyAnswerOn;
956 } 956 }
957 else 957 else
958 { 958 {
959 //switch off the Anykeyanswer 959 //switch off the Anykeyanswer
960 FFS_flashData.settings_status &= ~SettingsAnyKeyAnswerOn; 960 FFS_flashData.settings_status &= ~SettingsAnyKeyAnswerOn;
961 } 961 }
962 962
1003 } 1003 }
1004 else if (FFS_flashData.settings_status & SettingsKeypadDTMF) 1004 else if (FFS_flashData.settings_status & SettingsKeypadDTMF)
1005 { 1005 {
1006 FFS_flashData.settings_status &= ~SettingsKeypadDTMF; 1006 FFS_flashData.settings_status &= ~SettingsKeypadDTMF;
1007 } 1007 }
1008 1008
1009 } 1009 }
1010 1010
1011 //GW-SPR#1018- Trace is too big for the buffer and is causing a crash. 1011 //GW-SPR#1018- Trace is too big for the buffer and is causing a crash.
1012 // sprintf (buf, " FFS_flashData.settings_status %d", FFS_flashData.settings_status); 1012 // sprintf (buf, " FFS_flashData.settings_status %d", FFS_flashData.settings_status);
1013 // TRACE_EVENT (buf); 1013 // TRACE_EVENT (buf);
1019 1019
1020 #ifndef FF_NO_VOICE_MEMO 1020 #ifndef FF_NO_VOICE_MEMO
1021 if (DEFAULT_SETTINGS[VOICE_MEMO].status EQ CLEAR) 1021 if (DEFAULT_SETTINGS[VOICE_MEMO].status EQ CLEAR)
1022 { 1022 {
1023 /* Mar 28, 2007 DR: OMAPS00122762 x0039928 */ 1023 /* Mar 28, 2007 DR: OMAPS00122762 x0039928 */
1024 #ifndef FF_MMI_FILEMANAGER 1024 #ifndef FF_MMI_FILEMANAGER
1025 // clear the voice memo 1025 // clear the voice memo
1026 FFS_flashData.voice_memo_position = 0; 1026 FFS_flashData.voice_memo_position = 0;
1027 #endif 1027 #endif
1028 1028
1029 } 1029 }
1030 #endif 1030 #endif
1031 1031
1032 /*OMAPS00098881(removing power variant) a0393213(Prabakar)*/ 1032 /*OMAPS00098881(removing power variant) a0393213(Prabakar)*/
1033 #ifdef FF_POWER_MANAGEMENT 1033 #ifdef FF_POWER_MANAGEMENT
1060 resetFactoryBackground(); 1060 resetFactoryBackground();
1061 1061
1062 /*API - 28/07/03 - CQ10203 - Add a call to set the validity period to default on Factory Reset*/ 1062 /*API - 28/07/03 - CQ10203 - Add a call to set the validity period to default on Factory Reset*/
1063 resetSMSValidityPeriod(); 1063 resetSMSValidityPeriod();
1064 /*API - CQ10203 - END*/ 1064 /*API - CQ10203 - END*/
1065 1065
1066 // PCM 1066 // PCM
1067 // here should also update the user-data-settings !! 1067 // here should also update the user-data-settings !!
1068 // in PCM 1068 // in PCM
1069 //xashmic 27 Sep 2006, OMAPS00096389 1069 //xashmic 27 Sep 2006, OMAPS00096389
1070 //xashmic 9 Sep 2006, OMAPS00092732 1070 //xashmic 9 Sep 2006, OMAPS00092732
1071 //By default PS shutdown is disabled 1071 //By default PS shutdown is disabled
1072 #ifdef FF_MMI_USBMS 1072 #ifdef FF_MMI_USBMS
1073 FFS_flashData.usb_ms_flags=MFW_USBMS_DEFAULT; 1073 FFS_flashData.usb_ms_flags=MFW_USBMS_DEFAULT;
1074 #endif 1074 #endif
1075 1075
1081 1081
1082 /******************************************************************************* 1082 /*******************************************************************************
1083 1083
1084 $Function: confirm_Init 1084 $Function: confirm_Init
1085 1085
1086 $Description: 1086 $Description:
1087 1087
1088 $Returns: 1088 $Returns:
1089 1089
1090 $Arguments: 1090 $Arguments:
1091 1091
1092 *******************************************************************************/ 1092 *******************************************************************************/
1093 T_MFW_HND confirm_Init (T_MFW_HND parent_window) 1093 T_MFW_HND confirm_Init (T_MFW_HND parent_window)
1094 { 1094 {
1095 return (confirm_create (parent_window)); 1095 return (confirm_create (parent_window));
1096 } 1096 }
1097 /******************************************************************************* 1097 /*******************************************************************************
1098 1098
1099 $Function: confirm_Exit 1099 $Function: confirm_Exit
1100 1100
1101 $Description: 1101 $Description:
1102 1102
1103 $Returns: 1103 $Returns:
1104 1104
1105 $Arguments: 1105 $Arguments:
1106 1106
1107 *******************************************************************************/ 1107 *******************************************************************************/
1108 void confirm_Exit (T_MFW_HND own_window) 1108 void confirm_Exit (T_MFW_HND own_window)
1109 { 1109 {
1110 1110
1111 T_MFW_WIN * win_data = ((T_MFW_HDR *)own_window)->data; 1111 T_MFW_WIN * win_data = ((T_MFW_HDR *)own_window)->data;
1116 1116
1117 /******************************************************************************* 1117 /*******************************************************************************
1118 1118
1119 $Function: confirm_create 1119 $Function: confirm_create
1120 1120
1121 $Description: 1121 $Description:
1122 1122
1123 $Returns: 1123 $Returns:
1124 1124
1125 $Arguments: 1125 $Arguments:
1126 1126
1127 *******************************************************************************/ 1127 *******************************************************************************/
1128 T_MFW_HND confirm_create (T_MFW_HND parent_window) 1128 T_MFW_HND confirm_create (T_MFW_HND parent_window)
1129 { 1129 {
1130 T_confirm * data = &confirm_data; 1130 T_confirm * data = &confirm_data;
1131 T_MFW_WIN * win; 1131 T_MFW_WIN * win;
1143 data->mmi_control.dialog = (T_DIALOG_FUNC)confirm; 1143 data->mmi_control.dialog = (T_DIALOG_FUNC)confirm;
1144 data->mmi_control.data = data; 1144 data->mmi_control.data = data;
1145 win = ((T_MFW_HDR *)data->confirm_win)->data; 1145 win = ((T_MFW_HDR *)data->confirm_win)->data;
1146 win->user = (void *) data; 1146 win->user = (void *) data;
1147 1147
1148 1148
1149 winShow(data->confirm_win); 1149 winShow(data->confirm_win);
1150 /* 1150 /*
1151 * return window handle 1151 * return window handle
1152 */ 1152 */
1153 return data->confirm_win; 1153 return data->confirm_win;
1155 1155
1156 /******************************************************************************* 1156 /*******************************************************************************
1157 1157
1158 $Function: confirm_destroy 1158 $Function: confirm_destroy
1159 1159
1160 $Description: 1160 $Description:
1161 1161
1162 $Returns: 1162 $Returns:
1163 1163
1164 $Arguments: 1164 $Arguments:
1165 1165
1166 *******************************************************************************/ 1166 *******************************************************************************/
1167 void confirm_destroy (T_MFW_HND own_window) 1167 void confirm_destroy (T_MFW_HND own_window)
1168 { 1168 {
1169 T_MFW_WIN * win; 1169 T_MFW_WIN * win;
1170 T_confirm * data; 1170 T_confirm * data;
1189 } 1189 }
1190 /******************************************************************************* 1190 /*******************************************************************************
1191 1191
1192 $Function: confirm_win_cb 1192 $Function: confirm_win_cb
1193 1193
1194 $Description: 1194 $Description:
1195 1195
1196 $Returns: 1196 $Returns:
1197 1197
1198 $Arguments: 1198 $Arguments:
1199 1199
1200 *******************************************************************************/ 1200 *******************************************************************************/
1201 static int confirm_win_cb (T_MFW_EVENT event, T_MFW_WIN * win) 1201 static int confirm_win_cb (T_MFW_EVENT event, T_MFW_WIN * win)
1202 { 1202 {
1203 /* 1203 /*
1204 * Top Window has no output 1204 * Top Window has no output
1209 1209
1210 /******************************************************************************* 1210 /*******************************************************************************
1211 1211
1212 $Function: confirm_dialog 1212 $Function: confirm_dialog
1213 1213
1214 $Description: 1214 $Description:
1215 1215
1216 $Returns: 1216 $Returns:
1217 1217
1218 $Arguments: 1218 $Arguments:
1219 1219
1220 *******************************************************************************/ 1220 *******************************************************************************/
1221 static void confirm_dialog(void) 1221 static void confirm_dialog(void)
1222 { 1222 {
1223 T_DISPLAY_DATA display_info; 1223 T_DISPLAY_DATA display_info;
1224 1224
1254 } 1254 }
1255 /******************************************************************************* 1255 /*******************************************************************************
1256 1256
1257 $Function: confirm_dialog_cb 1257 $Function: confirm_dialog_cb
1258 1258
1259 $Description: 1259 $Description:
1260 1260
1261 $Returns: 1261 $Returns:
1262 1262
1263 $Arguments: 1263 $Arguments:
1264 1264
1265 *******************************************************************************/ 1265 *******************************************************************************/
1266 void confirm_dialog_cb(T_MFW_HND win, UBYTE identifier, UBYTE reason) 1266 void confirm_dialog_cb(T_MFW_HND win, UBYTE identifier, UBYTE reason)
1267 { 1267 {
1268 TRACE_FUNCTION ("confirm_dialog_cb()"); 1268 TRACE_FUNCTION ("confirm_dialog_cb()");
1269 1269
1270 switch (reason) 1270 switch (reason)
1271 { 1271 {
1272 case INFO_KCD_LEFT: 1272 case INFO_KCD_LEFT:
1273 // user confirm to reset all the user settings ! 1273 // user confirm to reset all the user settings !
1274 setUserSettings2Default (); 1274 setUserSettings2Default ();
1275 confirm_Exit(win); 1275 confirm_Exit(win);
1276 break; 1276 break;
1277 1277
1278 case INFO_TIMEOUT: 1278 case INFO_TIMEOUT:
1279 /* no break; */ 1279 /* no break; */
1280 case INFO_KCD_HUP: 1280 case INFO_KCD_HUP:
1281 /* no break; */ 1281 /* no break; */
1289 1289
1290 /******************************************************************************* 1290 /*******************************************************************************
1291 1291
1292 $Function: confirm 1292 $Function: confirm
1293 1293
1294 $Description: 1294 $Description:
1295 1295
1296 $Returns: 1296 $Returns:
1297 1297
1298 $Arguments: 1298 $Arguments:
1299 1299
1300 *******************************************************************************/ 1300 *******************************************************************************/
1301 void confirm (T_MFW_HND win, USHORT event, SHORT value, void * parameter) 1301 void confirm (T_MFW_HND win, USHORT event, SHORT value, void * parameter)
1302 { 1302 {
1303 // T_MFW_WIN * win_data = ((T_MFW_HDR *) win)->data; // RAVI 1303 // T_MFW_WIN * win_data = ((T_MFW_HDR *) win)->data; // RAVI
1304 // T_confirm * data = (T_confirm *)win_data->user; // RAVI 1304 // T_confirm * data = (T_confirm *)win_data->user; // RAVI
1377 // Solution: Instead of providing the submenu directly we call this function 1377 // Solution: Instead of providing the submenu directly we call this function
1378 // where we set the menu and also higlight the previously selected menu item. 1378 // where we set the menu and also higlight the previously selected menu item.
1379 1379
1380 /***************************Go-lite Optimization changes Start***********************/ 1380 /***************************Go-lite Optimization changes Start***********************/
1381 //Aug 25, 2004 REF: CRR 24904 Deepa M.D 1381 //Aug 25, 2004 REF: CRR 24904 Deepa M.D
1382 //This function is used only for the Color build.Hence it is put under the 1382 //This function is used only for the Color build.Hence it is put under the
1383 //COLOURDISPLAY compiler switch 1383 //COLOURDISPLAY compiler switch
1384 #ifdef COLOURDISPLAY 1384 #ifdef COLOURDISPLAY
1385 void settingsFocusNwIconCurSel(void) 1385 void settingsFocusNwIconCurSel(void)
1386 { 1386 {
1387 UBYTE SaveNwIcon; 1387 UBYTE SaveNwIcon;
1388 T_MFW_HND setting_win; 1388 T_MFW_HND setting_win;
1389 T_MFW_HND win = mfw_parent(mfw_header()); 1389 T_MFW_HND win = mfw_parent(mfw_header());
1390 1390
1391 setting_win= bookMenuStart(win, NWIconAttributes(), 0); 1391 setting_win= bookMenuStart(win, NWIconAttributes(), 0);
1392 SaveNwIcon=(FFS_flashData.ProviderNetworkShow == TRUE)?0:1; 1392 SaveNwIcon=(FFS_flashData.ProviderNetworkShow == TRUE)?0:1;
1393 SEND_EVENT(setting_win, DEFAULT_OPTION, NULL, &SaveNwIcon); 1393 SEND_EVENT(setting_win, DEFAULT_OPTION, NULL, &SaveNwIcon);
1394 } 1394 }
1395 #endif 1395 #endif
1396 /***************************Go-lite Optimization changes Start***********************/ 1396 /***************************Go-lite Optimization changes Start***********************/
1397 //SPR 12822:VVADIRAJ 1397 //SPR 12822:VVADIRAJ
1398 1398
1399 // Jul 29, 2004 REF = CRR 20898 xkundadu 1399 // Jul 29, 2004 REF = CRR 20898 xkundadu
1400 /******************************************************************************* 1400 /*******************************************************************************
1401 $Function: settingsFocusCurSelAutoAns 1401 $Function: settingsFocusCurSelAutoAns
1402 1402
1403 $Description: This function sets the focus to the On or Off menu item of the 1403 $Description: This function sets the focus to the On or Off menu item of the
1404 'Auto Answer' menu in the Phone Settings main menu. 1404 'Auto Answer' menu in the Phone Settings main menu.
1405 Check whether the 'Auto Answer' is enabled by reading the data 1405 Check whether the 'Auto Answer' is enabled by reading the data
1406 stored in the FFS. Depending on that, set the focus to the menu 1406 stored in the FFS. Depending on that, set the focus to the menu
1407 item. 1407 item.
1408 1408
1409 $Returns: void 1409 $Returns: void
1410 1410
1411 $Arguments: void 1411 $Arguments: void
1412 *******************************************************************************/ 1412 *******************************************************************************/
1413 1413
1414 1414
1415 void settingsFocusCurSelAutoAns(void) 1415 void settingsFocusCurSelAutoAns(void)
1416 { 1416 {
1417 // Points to the index of the menuitem to be selected 1417 // Points to the index of the menuitem to be selected
1418 // If it is 1, 'Off' menuItem will be selected, else 'On' menuitem 1418 // If it is 1, 'Off' menuItem will be selected, else 'On' menuitem
1419 // will be selected. 1419 // will be selected.
1420 UBYTE menuItemIndex = 1; 1420 UBYTE menuItemIndex = 1;
1421 1421
1422 T_MFW_HND setting_win; 1422 T_MFW_HND setting_win;
1423 T_MFW_HND win = mfw_parent(mfw_header()); 1423 T_MFW_HND win = mfw_parent(mfw_header());
1424 1424
1425 TRACE_FUNCTION ("settingsFocusCurSelAutoAns() "); 1425 TRACE_FUNCTION ("settingsFocusCurSelAutoAns() ");
1426 1426
1427 // Starting the menu corresponding to AutoAnswer. 1427 // Starting the menu corresponding to AutoAnswer.
1428 setting_win = bookMenuStart(win, GetAutoAnswerMenu(), 0); 1428 setting_win = bookMenuStart(win, GetAutoAnswerMenu(), 0);
1429 1429
1432 if( (FFS_flashData.settings_status & SettingsAutoAnswerOn) 1432 if( (FFS_flashData.settings_status & SettingsAutoAnswerOn)
1433 EQ SettingsAutoAnswerOn) 1433 EQ SettingsAutoAnswerOn)
1434 { 1434 {
1435 menuItemIndex = 0; 1435 menuItemIndex = 0;
1436 } 1436 }
1437 1437
1438 // Send the event to display the menu item and appropriate menuitem 1438 // Send the event to display the menu item and appropriate menuitem
1439 // selected. 1439 // selected.
1440 SEND_EVENT(setting_win, DEFAULT_OPTION, NULL, &menuItemIndex); 1440 SEND_EVENT(setting_win, DEFAULT_OPTION, NULL, &menuItemIndex);
1441 1441
1442 } 1442 }
1443 1443
1444 // Jul 22,2004 CRR:20896 xrashmic - SASKEN 1444 // Jul 22,2004 CRR:20896 xrashmic - SASKEN
1445 // Description: The time current time format is not highlighted 1445 // Description: The time current time format is not highlighted
1446 // Fix: Instead of showing the submenu directly we call this function 1446 // Fix: Instead of showing the submenu directly we call this function
1447 // where we set the menu and also higlight the previously selected menu item 1447 // where we set the menu and also higlight the previously selected menu item
1448 void settingsFocusTimeFormatCurSel(void) 1448 void settingsFocusTimeFormatCurSel(void)
1449 { 1449 {
1450 UBYTE CurSel; 1450 UBYTE CurSel;
1451 T_MFW_HND setting_win; 1451 T_MFW_HND setting_win;
1452 T_MFW_HND win = mfw_parent(mfw_header()); 1452 T_MFW_HND win = mfw_parent(mfw_header());
1453 1453
1454 setting_win= bookMenuStart(win, TimeFormatAttributes(), 0); 1454 setting_win= bookMenuStart(win, TimeFormatAttributes(), 0);
1455 CurSel = FFS_flashData.time_format; 1455 CurSel = FFS_flashData.time_format;
1456 SEND_EVENT(setting_win, DEFAULT_OPTION, NULL, &CurSel); 1456 SEND_EVENT(setting_win, DEFAULT_OPTION, NULL, &CurSel);
1457 } 1457 }
1458 1458
1459 /******************************************************************************* 1459 /*******************************************************************************
1460 $Function: settingsFocusCurSelAnyKeyAns 1460 $Function: settingsFocusCurSelAnyKeyAns
1461 $Description: This function sets the focus to the On or Off menu item of the 1461 $Description: This function sets the focus to the On or Off menu item of the
1462 'AnyKey Answer' menu in the Phone Settings main menu. 1462 'AnyKey Answer' menu in the Phone Settings main menu.
1463 Check whether the 'Any Key Answer' is enabled by reading the data 1463 Check whether the 'Any Key Answer' is enabled by reading the data
1464 stored in the FFS. Depending on that, set the focus to the menu 1464 stored in the FFS. Depending on that, set the focus to the menu
1465 item 1465 item
1466 $Returns: void 1466 $Returns: void
1467 $Arguments: void 1467 $Arguments: void
1468 *******************************************************************************/ 1468 *******************************************************************************/
1469 // Jul 28, 2004 REF: CRR 20899 xkundadu 1469 // Jul 28, 2004 REF: CRR 20899 xkundadu
1470 void settingsFocusCurSelAnyKeyAns(void) 1470 void settingsFocusCurSelAnyKeyAns(void)
1471 { 1471 {
1472 // Points to the index of the menuitem to be selected 1472 // Points to the index of the menuitem to be selected
1473 // If it is 1, 'Off' menuItem will be selected, else 'On' menuitem 1473 // If it is 1, 'Off' menuItem will be selected, else 'On' menuitem
1474 // will be selected. 1474 // will be selected.
1475 UBYTE menuItemIndex = 1; 1475 UBYTE menuItemIndex = 1;
1476 1476
1477 T_MFW_HND setting_win; 1477 T_MFW_HND setting_win;
1478 T_MFW_HND win = mfw_parent(mfw_header()); 1478 T_MFW_HND win = mfw_parent(mfw_header());
1479 1479
1480 TRACE_FUNCTION ("settingsFocusCurSelAnyKeyAns() "); 1480 TRACE_FUNCTION ("settingsFocusCurSelAnyKeyAns() ");
1481 1481
1482 // Starting the menu corresponding to AnyKeyanswer. 1482 // Starting the menu corresponding to AnyKeyanswer.
1483 setting_win = bookMenuStart(win, GetAnyKeyAnswerMenu(), 0); 1483 setting_win = bookMenuStart(win, GetAnyKeyAnswerMenu(), 0);
1484 1484
1488 EQ SettingsAnyKeyAnswerOn) 1488 EQ SettingsAnyKeyAnswerOn)
1489 { 1489 {
1490 //Set the focus to the 'On' menu item. 1490 //Set the focus to the 'On' menu item.
1491 menuItemIndex = 0; 1491 menuItemIndex = 0;
1492 } 1492 }
1493 1493
1494 // Send the event to display the menu items and set focus to appropriate 1494 // Send the event to display the menu items and set focus to appropriate
1495 // menuitem. 1495 // menuitem.
1496 SEND_EVENT(setting_win, DEFAULT_OPTION, NULL, &menuItemIndex); 1496 SEND_EVENT(setting_win, DEFAULT_OPTION, NULL, &menuItemIndex);
1497 1497
1498 } 1498 }
1499 1499
1500 // May 04, 2005 REF: CRR 30285 x0021334 1500 // May 04, 2005 REF: CRR 30285 x0021334
1501 /******************************************************************************* 1501 /*******************************************************************************
1502 $Function: settingsSmsStatusReportCurSel 1502 $Function: settingsSmsStatusReportCurSel
1503 $Description: This function sets the focus to the On or Off menu item of the 1503 $Description: This function sets the focus to the On or Off menu item of the
1504 'Status Report' submenu menu in the Messages Settings menu. 1504 'Status Report' submenu menu in the Messages Settings menu.
1505 $Returns: void 1505 $Returns: void
1506 $Arguments: void 1506 $Arguments: void
1507 *******************************************************************************/ 1507 *******************************************************************************/
1508 void settingsSmsStatusReportCurSel(void) 1508 void settingsSmsStatusReportCurSel(void)
1509 { 1509 {
1510 T_MFW_HND setting_win; 1510 T_MFW_HND setting_win;
1511 T_MFW_SMS_INFO sms_info; 1511 T_MFW_SMS_INFO sms_info;
1512 T_MFW_HND win = mfw_parent(mfw_header()); 1512 T_MFW_HND win = mfw_parent(mfw_header());
1513 1513
1514 setting_win = bookMenuStart(win, SmsStatusReportAttributes(), 0); 1514 setting_win = bookMenuStart(win, SmsStatusReportAttributes(), 0);
1515 if (sms_parameter(&sms_info, TRUE) == MFW_SMS_OK) 1515 if (sms_parameter(&sms_info, TRUE) == MFW_SMS_OK)
1516 { 1516 {
1517 // Send the event to set focus to appropriate option. 1517 // Send the event to set focus to appropriate option.
1518 SEND_EVENT(setting_win, DEFAULT_OPTION, NULL, &sms_info.srr); 1518 SEND_EVENT(setting_win, DEFAULT_OPTION, NULL, &sms_info.srr);