FreeCalypso > hg > fc-tourmaline
comparison src/ui/bmi/mmiSettings.c @ 168:464d69ef83e2
mmiSettings.c: bogotab fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 17 Jan 2021 23:20:41 +0000 |
parents | c0052fe355d3 |
children |
comparison
equal
deleted
inserted
replaced
167:897bdea4cb0b | 168:464d69ef83e2 |
---|---|
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 |
42 USBMS ER | 42 USBMS ER |
43 | 43 |
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. |
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 |
217 static MfwHnd win; /* our window */ | 217 static MfwHnd win; /* our window */ |
218 /* static MmiState nextState; // next state when finished x0039928 - Lint warning fix */ | 218 /* static MmiState nextState; // next state when finished x0039928 - Lint warning fix */ |
219 /* static DisplayData DisplayInfo; x0039928 - Lint warning fix */ | 219 /* static DisplayData DisplayInfo; x0039928 - Lint warning fix */ |
220 | 220 |
221 | 221 |
222 | |
223 #define SHOW_CONFIRM 3 | 222 #define SHOW_CONFIRM 3 |
224 #define ACTIVATE_CONFIRM 4 | 223 #define ACTIVATE_CONFIRM 4 |
225 #define DEACTIVATE_CONFIRM 5 | 224 #define DEACTIVATE_CONFIRM 5 |
226 #define FACTORY_RESET 6 | 225 #define FACTORY_RESET 6 |
227 | 226 |
228 UBYTE reply_path_bit =0; | 227 UBYTE reply_path_bit = 0; |
229 | 228 |
230 typedef struct | 229 typedef struct |
231 { | 230 { |
232 T_MMI_CONTROL mmi_control; | 231 T_MMI_CONTROL mmi_control; |
233 T_MFW_HND confirm_win; /* MFW win handler */ | 232 T_MFW_HND confirm_win; /* MFW win handler */ |
234 UBYTE local_status; | 233 UBYTE local_status; |
235 } T_confirm; | 234 } T_confirm; |
236 | 235 |
237 T_confirm confirm_data; | 236 T_confirm confirm_data; |
238 | 237 |
239 | 238 |
240 /* | 239 /* |
241 * Settings menu subs: | 240 * Settings menu subs: |
242 */ | 241 */ |
243 | 242 |
244 | |
245 | |
246 | |
247 #define ON 0 | 243 #define ON 0 |
248 #define OFF 1 | 244 #define OFF 1 |
249 #define CLEAR 2 | 245 #define CLEAR 2 |
250 | 246 |
251 | 247 |
252 typedef struct | 248 typedef struct |
253 { | 249 { |
265 AUTOREDIAL, | 261 AUTOREDIAL, |
266 AUTOANSWER, | 262 AUTOANSWER, |
267 ANYKEYANSWER, | 263 ANYKEYANSWER, |
268 CALLTIMERS, | 264 CALLTIMERS, |
269 KEYPAD_CLICK, | 265 KEYPAD_CLICK, |
270 KEYPAD_DTMF, | 266 KEYPAD_DTMF, |
271 KEYPAD_SILENT, | 267 KEYPAD_SILENT, |
272 #ifndef FF_NO_VOICE_MEMO | 268 #ifndef FF_NO_VOICE_MEMO |
273 VOICE_MEMO, | 269 VOICE_MEMO, |
274 #endif | 270 #endif |
275 #ifdef FF_POWER_MANAGEMENT | 271 #ifdef FF_POWER_MANAGEMENT |
277 #endif | 273 #endif |
278 MAX | 274 MAX |
279 }T_FACTORY_RESET_LIST; | 275 }T_FACTORY_RESET_LIST; |
280 | 276 |
281 | 277 |
282 | |
283 T_settings DEFAULT_SETTINGS[] = | 278 T_settings DEFAULT_SETTINGS[] = |
284 { | 279 { |
285 {ENGLISH, ON}, //select the Language:English as a default | 280 {ENGLISH, ON}, //select the Language:English as a default |
286 {GERMAN, OFF}, | 281 {GERMAN, OFF}, |
287 {AUTOREDIAL, OFF}, | 282 {AUTOREDIAL, OFF}, |
288 {AUTOANSWER, OFF}, | 283 {AUTOANSWER, OFF}, |
289 {ANYKEYANSWER, OFF}, | 284 {ANYKEYANSWER, OFF}, |
290 {CALLTIMERS, CLEAR}, | 285 {CALLTIMERS, CLEAR}, |
291 {KEYPAD_CLICK, ON}, //only one of the Keypads are eligible | 286 {KEYPAD_CLICK, ON}, //only one of the Keypads are eligible |
293 {KEYPAD_SILENT, OFF}, | 288 {KEYPAD_SILENT, OFF}, |
294 #ifndef FF_NO_VOICE_MEMO | 289 #ifndef FF_NO_VOICE_MEMO |
295 {VOICE_MEMO, CLEAR}, | 290 {VOICE_MEMO, CLEAR}, |
296 #endif | 291 #endif |
297 #ifdef FF_POWER_MANAGEMENT | 292 #ifdef FF_POWER_MANAGEMENT |
298 {LCD_REFRESH, ON}, /*OMAPS00098881 (removing power variant) a0393213(Prabakar)*/ | 293 {LCD_REFRESH, ON}, /*OMAPS00098881 (removing power variant) a0393213(Prabakar)*/ |
299 #endif | 294 #endif |
300 {MAX, 0xFF} | 295 {MAX, 0xFF} |
301 }; | 296 }; |
302 | 297 |
303 /******************************************************************************* | 298 /******************************************************************************* |
304 | 299 |
305 $Function: SmsValidityPeriod | 300 $Function: SmsValidityPeriod |
306 | 301 |
307 $Description: Store the validity period information, selected by the user. | 302 $Description: Store the validity period information, selected by the user. |
308 | 303 |
309 | 304 |
310 $Returns: Execution status | 305 $Returns: Execution status |
311 | 306 |
312 $Arguments: m - menu handler | 307 $Arguments: m - menu handler |
313 i - Menu item selected | 308 i - Menu item selected |
314 | 309 |
315 *******************************************************************************/ | 310 *******************************************************************************/ |
316 int SmsValidityPeriod(MfwMnu* m, MfwMnuItem* i) | 311 int SmsValidityPeriod(MfwMnu* m, MfwMnuItem* i) |
317 { | 312 { |
318 T_MFW_SMS_INFO sms_parameter; | 313 T_MFW_SMS_INFO sms_parameter; |
319 UBYTE index = 0; // RAVI - Assigned 0. | 314 UBYTE index = 0; // RAVI - Assigned 0. |
320 T_DISPLAY_DATA DisplayInfo; | 315 T_DISPLAY_DATA DisplayInfo; |
321 int txtId = 0; // RAVI - Assigned 0. | 316 int txtId = 0; // RAVI - Assigned 0. |
322 | 317 |
323 T_MFW_HND win = mfwParent(mfw_header()); | 318 T_MFW_HND win = mfwParent(mfw_header()); |
324 | 319 |
325 TRACE_FUNCTION(">>>> SmsValidityPeriod()"); | 320 TRACE_FUNCTION(">>>> SmsValidityPeriod()"); |
326 | 321 |
327 /*SPR#1952 - DS - Show the new period setting on pop-up dialog */ | 322 /*SPR#1952 - DS - Show the new period setting on pop-up dialog */ |
328 switch (m->lCursor[m->level]) | 323 switch (m->lCursor[m->level]) |
329 { | 324 { |
330 case 0: | 325 case 0: |
331 txtId = Txt1Hour; | 326 txtId = Txt1Hour; |
332 index = VP_REL_1_HOUR; | 327 index = VP_REL_1_HOUR; |
333 break; | 328 break; |
334 case 1: | 329 case 1: |
346 case 4: | 341 case 4: |
347 txtId = TxtMaxTime; | 342 txtId = TxtMaxTime; |
348 index = VP_REL_MAXIMUM; // May 10, 2004 REF: CRR 15753 Deepa M.D | 343 index = VP_REL_MAXIMUM; // May 10, 2004 REF: CRR 15753 Deepa M.D |
349 break; | 344 break; |
350 | 345 |
351 } | 346 } |
352 | 347 |
353 /* API - 28/07/03 - CQ10203 - Read the Data and then set the REL VP identifier*/ | 348 /* API - 28/07/03 - CQ10203 - Read the Data and then set the REL VP identifier*/ |
354 SmsSend_get_config_data(&sms_parameter); | 349 SmsSend_get_config_data(&sms_parameter); |
355 | 350 |
356 FFS_flashData.vp_rel = index; | 351 FFS_flashData.vp_rel = index; |
357 flash_write(); | 352 flash_write(); |
358 | 353 |
359 sms_parameter.vp_rel = FFS_flashData.vp_rel; | 354 sms_parameter.vp_rel = FFS_flashData.vp_rel; |
360 TRACE_EVENT_P1("sms_parameter.vp_rel = %d", sms_parameter.vp_rel); | 355 TRACE_EVENT_P1("sms_parameter.vp_rel = %d", sms_parameter.vp_rel); |
361 /*API - CQ10203 END*/ | 356 /*API - CQ10203 END*/ |
362 | 357 |
363 if (sms_set_val_period(&sms_parameter) == MFW_SMS_OK) | 358 if (sms_set_val_period(&sms_parameter) == MFW_SMS_OK) |
364 dlg_initDisplayData_TextId( &DisplayInfo, TxtNull, TxtCancel,TxtSmsValidityPeriodSet, txtId /*SPR#1952*/, COLOUR_STATUS); | 359 dlg_initDisplayData_TextId( &DisplayInfo, TxtNull, TxtCancel,TxtSmsValidityPeriodSet, txtId /*SPR#1952*/, COLOUR_STATUS); |
365 else | 360 else |
366 dlg_initDisplayData_TextId( &DisplayInfo, TxtNull, TxtCancel,TxtFailed, TxtNull, COLOUR_STATUS); | 361 dlg_initDisplayData_TextId( &DisplayInfo, TxtNull, TxtCancel,TxtFailed, TxtNull, COLOUR_STATUS); |
367 | 362 |
368 dlg_initDisplayData_events( &DisplayInfo, (T_VOID_FUNC)NULL, THREE_SECS, KEY_RIGHT|KEY_CLEAR ); | 363 dlg_initDisplayData_events( &DisplayInfo, (T_VOID_FUNC)NULL, THREE_SECS, KEY_RIGHT|KEY_CLEAR ); |
369 | 364 |
370 // Display confirmation screen. | 365 // Display confirmation screen. |
371 info_dialog(win,&DisplayInfo); | 366 info_dialog(win,&DisplayInfo); |
372 | 367 |
373 return 1; | 368 return 1; |
374 } | 369 } |
375 | 370 |
376 | 371 |
377 /* Marcus: Issue 1170: 30/09/2002: Start */ | 372 /* Marcus: Issue 1170: 30/09/2002: Start */ |
378 /******************************************************************************* | 373 /******************************************************************************* |
379 | 374 |
380 $Function: SmsStatusReportRequest | 375 $Function: SmsStatusReportRequest |
381 | 376 |
382 $Description: Activate/Deactivate SRR, selected by the user. | 377 $Description: Activate/Deactivate SRR, selected by the user. |
383 | 378 |
384 $Returns: Execution status | 379 $Returns: Execution status |
385 | 380 |
386 $Arguments: m - menu handler | 381 $Arguments: m - menu handler |
387 i - Menu item selected | 382 i - Menu item selected |
388 | 383 |
389 *******************************************************************************/ | 384 *******************************************************************************/ |
390 int SmsStatusReportRequest(MfwMnu* m, MfwMnuItem* i) | 385 int SmsStatusReportRequest(MfwMnu* m, MfwMnuItem* i) |
391 { | 386 { |
392 int index = m->lCursor[m->level]; | 387 int index = m->lCursor[m->level]; |
393 T_DISPLAY_DATA DisplayInfo; | 388 T_DISPLAY_DATA DisplayInfo; |
394 T_MFW_SMS_INFO sms_info; | 389 T_MFW_SMS_INFO sms_info; |
395 T_MFW_HND win = mfwParent(mfw_header()); | 390 T_MFW_HND win = mfwParent(mfw_header()); |
396 int TextId2; | 391 int TextId2; |
397 TRACE_FUNCTION(">>>> SmsStatusReportRequest()"); | 392 TRACE_FUNCTION(">>>> SmsStatusReportRequest()"); |
398 | 393 |
399 if (sms_parameter(&sms_info, TRUE) == MFW_SMS_OK) | 394 if (sms_parameter(&sms_info, TRUE) == MFW_SMS_OK) |
400 { | 395 { |
401 if (index == 0) | 396 if (index == 0) |
409 if (index == 0) | 404 if (index == 0) |
410 TextId2 = TxtOff; | 405 TextId2 = TxtOff; |
411 else | 406 else |
412 TextId2 = TxtOn; | 407 TextId2 = TxtOn; |
413 | 408 |
414 dlg_initDisplayData_TextId( &DisplayInfo, TxtSoftOK, TxtNull,TxtSRR, TextId2, COLOUR_POPUP); | 409 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 ); | 410 dlg_initDisplayData_events( &DisplayInfo, (T_VOID_FUNC)NULL, THREE_SECS, KEY_RIGHT | KEY_LEFT ); |
416 | 411 |
417 info_dialog(win,&DisplayInfo); | 412 info_dialog(win,&DisplayInfo); |
418 } | 413 } |
419 } | 414 } |
420 return 1; | 415 return 1; |
421 } | 416 } |
422 /* Marcus: Issue 1170: 30/09/2002: End */ | 417 /* Marcus: Issue 1170: 30/09/2002: End */ |
423 | 418 |
424 /* | 419 /* |
425 March 2, 2005 REF: CRR 11536 x0018858 | 420 March 2, 2005 REF: CRR 11536 x0018858 |
430 | 425 |
431 $Function: SmsReplyPathRequest | 426 $Function: SmsReplyPathRequest |
432 | 427 |
433 $Description: Activate/Deactivate reply path, selected by the user. | 428 $Description: Activate/Deactivate reply path, selected by the user. |
434 | 429 |
435 $Returns: Execution status | 430 $Returns: Execution status |
436 | 431 |
437 $Arguments: m - menu handler | 432 $Arguments: m - menu handler |
438 i - Menu item selected | 433 i - Menu item selected |
439 | |
440 | 434 |
441 *******************************************************************************/ | 435 *******************************************************************************/ |
442 | 436 |
443 int SmsReplyPathRequest(MfwMnu* m, MfwMnuItem* i) | 437 int SmsReplyPathRequest(MfwMnu* m, MfwMnuItem* i) |
444 { | 438 { |
445 int index = m->lCursor[m->level]; | 439 int index = m->lCursor[m->level]; |
446 T_DISPLAY_DATA DisplayInfo; | 440 T_DISPLAY_DATA DisplayInfo; |
447 T_MFW_SMS_INFO sms_info; | 441 T_MFW_SMS_INFO sms_info; |
448 T_MFW_HND win = mfwParent(mfw_header()); | 442 T_MFW_HND win = mfwParent(mfw_header()); |
449 int TextId2; | 443 int TextId2; |
450 TRACE_FUNCTION(">>>> SmsReplyPathRequest()"); | 444 TRACE_FUNCTION(">>>> SmsReplyPathRequest()"); |
451 | 445 |
452 if (sms_parameter(&sms_info, TRUE) == MFW_SMS_OK) | 446 if (sms_parameter(&sms_info, TRUE) == MFW_SMS_OK) |
453 { | 447 { |
454 if (index == 0) | 448 if (index == 0) |
456 else | 450 else |
457 reply_path_bit= SMS_SET_RP; | 451 reply_path_bit= SMS_SET_RP; |
458 | 452 |
459 TRACE_EVENT_P1("The reply paTH BIT IS = %d", reply_path_bit); | 453 TRACE_EVENT_P1("The reply paTH BIT IS = %d", reply_path_bit); |
460 | 454 |
461 if (index == 0) | 455 if (index == 0) |
462 TextId2 = TxtOff; | 456 TextId2 = TxtOff; |
463 else | 457 else |
464 TextId2 = TxtOn; | 458 TextId2 = TxtOn; |
465 | 459 |
466 dlg_initDisplayData_TextId( &DisplayInfo, TxtSoftOK, TxtNull,TxtRP, TextId2, COLOUR_POPUP); | 460 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 ); | 461 dlg_initDisplayData_events( &DisplayInfo, (T_VOID_FUNC)NULL, THREE_SECS, KEY_RIGHT | KEY_LEFT ); |
468 | 462 |
469 info_dialog(win,&DisplayInfo); | 463 info_dialog(win,&DisplayInfo); |
470 | 464 |
471 } | 465 } |
472 return 1; | 466 return 1; |
473 } | 467 } |
474 // End --11536 | 468 // End --11536 |
475 | 469 |
476 | 470 |
477 /******************************************************************************* | 471 /******************************************************************************* |
484 | 478 |
485 $Arguments: | 479 $Arguments: |
486 | 480 |
487 *******************************************************************************/ | 481 *******************************************************************************/ |
488 int settingsVoiceMail(MfwMnu* m, MfwMnuItem* i) | 482 int settingsVoiceMail(MfwMnu* m, MfwMnuItem* i) |
489 | 483 { |
490 { | 484 cphs_get_mailbox (); |
491 | |
492 cphs_get_mailbox (); | |
493 | |
494 | |
495 return 0; | 485 return 0; |
496 } | 486 } |
497 | 487 |
498 /******************************************************************************* | 488 /******************************************************************************* |
499 | 489 |
506 $Arguments: | 496 $Arguments: |
507 | 497 |
508 *******************************************************************************/ | 498 *******************************************************************************/ |
509 int settingsScNumber(MfwMnu* m, MfwMnuItem* i) | 499 int settingsScNumber(MfwMnu* m, MfwMnuItem* i) |
510 { | 500 { |
511 | |
512 return 0; | 501 return 0; |
513 } | 502 } |
514 /******************************************************************************* | 503 /******************************************************************************* |
515 | 504 |
516 $Function: settingsInit | 505 $Function: settingsInit |
522 $Arguments: | 511 $Arguments: |
523 | 512 |
524 *******************************************************************************/ | 513 *******************************************************************************/ |
525 void settingsInit (void) | 514 void settingsInit (void) |
526 { | 515 { |
527 | |
528 TRACE_EVENT ("settingsInit()"); | 516 TRACE_EVENT ("settingsInit()"); |
529 | 517 |
530 /* nextState = 0; x0039928 - Lint warning fix */ | 518 /* nextState = 0; x0039928 - Lint warning fix */ |
531 | 519 |
532 win = winCreate(0,0,MfwWinVisible,(MfwCb)winEvent); | 520 win = winCreate(0,0,MfwWinVisible,(MfwCb)winEvent); |
584 | 572 |
585 $Function: settingsGetStatus | 573 $Function: settingsGetStatus |
586 | 574 |
587 $Description: Function to return the status of various BMI settings | 575 $Description: Function to return the status of various BMI settings |
588 | 576 |
589 $Returns: Non-zero number if setting is ON | 577 $Returns: Non-zero number if setting is ON |
590 Zero if the setting is OFF | 578 Zero if the setting is OFF |
591 | 579 |
592 $Arguments: flagBit - value indicating which setting is to be changed. | 580 $Arguments: flagBit - value indicating which setting is to be changed. |
593 | 581 |
594 *******************************************************************************/ | 582 *******************************************************************************/ |
595 int settingsGetStatus(int flagBit) | 583 int settingsGetStatus(int flagBit) |
607 | 595 |
608 $Function: settingsSetStatus | 596 $Function: settingsSetStatus |
609 | 597 |
610 $Description: Function to set or clear the status of various BMI settings | 598 $Description: Function to set or clear the status of various BMI settings |
611 | 599 |
612 $Returns: None. | 600 $Returns: None. |
613 | 601 |
614 $Arguments: flagBit - value indicating which setting is to be changed. | 602 $Arguments: flagBit - value indicating which setting is to be changed. |
615 state - SET_SETTING - set the value | 603 state - SET_SETTING - set the value |
616 - CLEAR_SETTING - clear the value. | 604 - CLEAR_SETTING - clear the value. |
617 GW SPR#2470 Created | 605 GW SPR#2470 Created |
618 *******************************************************************************/ | 606 *******************************************************************************/ |
619 void settingsSetStatus(unsigned int flagBit, int value) | 607 void settingsSetStatus(unsigned int flagBit, int value) |
620 { | 608 { |
621 if (flagBit & SettingsKeyPadLockOn) | 609 if (flagBit & SettingsKeyPadLockOn) |
645 $Arguments: | 633 $Arguments: |
646 | 634 |
647 *******************************************************************************/ | 635 *******************************************************************************/ |
648 int settingsAutoRedialOn(MfwMnu* m, MfwMnuItem* i) | 636 int settingsAutoRedialOn(MfwMnu* m, MfwMnuItem* i) |
649 { | 637 { |
650 | 638 T_MFW_HND win = mfw_parent(mfw_header()); |
651 T_MFW_HND win = mfw_parent(mfw_header()); | 639 |
652 | 640 confirm_Init(win); |
653 confirm_Init(win); | 641 |
654 | 642 cm_set_redial(CM_REDIAL_AUTO); |
655 cm_set_redial(CM_REDIAL_AUTO); | |
656 | |
657 | 643 |
658 confirm_data.local_status = ACTIVATE_CONFIRM; | 644 confirm_data.local_status = ACTIVATE_CONFIRM; |
659 | 645 |
660 SEND_EVENT (confirm_data.confirm_win, SHOW_CONFIRM, 0, 0); | 646 SEND_EVENT (confirm_data.confirm_win, SHOW_CONFIRM, 0, 0); |
661 | 647 |
662 return 0; | 648 return 0; |
663 } | 649 } |
664 /******************************************************************************* | 650 /******************************************************************************* |
665 | 651 |
666 $Function: settingsAutoRedialOff | 652 $Function: settingsAutoRedialOff |
667 | 653 |
673 | 659 |
674 *******************************************************************************/ | 660 *******************************************************************************/ |
675 int settingsAutoRedialOff(MfwMnu* m, MfwMnuItem* i) | 661 int settingsAutoRedialOff(MfwMnu* m, MfwMnuItem* i) |
676 { | 662 { |
677 T_MFW_HND win = mfw_parent(mfw_header()); | 663 T_MFW_HND win = mfw_parent(mfw_header()); |
678 confirm_Init(win); | 664 confirm_Init(win); |
679 | 665 |
680 cm_set_redial(CM_REDIAL_OFF); | 666 cm_set_redial(CM_REDIAL_OFF); |
681 | 667 |
682 confirm_data.local_status = DEACTIVATE_CONFIRM; | 668 confirm_data.local_status = DEACTIVATE_CONFIRM; |
683 | 669 |
684 SEND_EVENT (confirm_data.confirm_win, SHOW_CONFIRM, 0, 0); | 670 SEND_EVENT (confirm_data.confirm_win, SHOW_CONFIRM, 0, 0); |
685 | 671 |
686 | 672 return 0; |
687 | |
688 return 0; | |
689 } | 673 } |
690 /******************************************************************************* | 674 /******************************************************************************* |
691 | 675 |
692 $Function: settingsSilentModeOn | 676 $Function: settingsSilentModeOn |
693 | 677 |
777 *******************************************************************************/ | 761 *******************************************************************************/ |
778 int settingsAutoAnswerOn(MfwMnu* m, MfwMnuItem* i) | 762 int settingsAutoAnswerOn(MfwMnu* m, MfwMnuItem* i) |
779 { | 763 { |
780 T_MFW_HND win = mfw_parent(mfw_header()); | 764 T_MFW_HND win = mfw_parent(mfw_header()); |
781 | 765 |
782 confirm_Init(win); | 766 confirm_Init(win); |
783 | 767 |
784 FFS_flashData.settings_status |= SettingsAutoAnswerOn; | 768 FFS_flashData.settings_status |= SettingsAutoAnswerOn; |
785 flash_write(); | 769 flash_write(); |
786 confirm_data.local_status = ACTIVATE_CONFIRM; | 770 confirm_data.local_status = ACTIVATE_CONFIRM; |
787 | 771 |
788 SEND_EVENT (confirm_data.confirm_win, SHOW_CONFIRM, 0, 0); | 772 SEND_EVENT (confirm_data.confirm_win, SHOW_CONFIRM, 0, 0); |
789 | 773 |
790 return 0; | 774 return 0; |
791 } | 775 } |
792 /******************************************************************************* | 776 /******************************************************************************* |
793 | 777 |
794 $Function: settingsAutoAnswerOff | 778 $Function: settingsAutoAnswerOff |
795 | 779 |
802 *******************************************************************************/ | 786 *******************************************************************************/ |
803 int settingsAutoAnswerOff(MfwMnu* m, MfwMnuItem* i) | 787 int settingsAutoAnswerOff(MfwMnu* m, MfwMnuItem* i) |
804 { | 788 { |
805 T_MFW_HND win = mfw_parent(mfw_header()); | 789 T_MFW_HND win = mfw_parent(mfw_header()); |
806 | 790 |
807 confirm_Init(win); | 791 confirm_Init(win); |
808 | 792 |
809 FFS_flashData.settings_status &= ~SettingsAutoAnswerOn; | 793 FFS_flashData.settings_status &= ~SettingsAutoAnswerOn; |
810 flash_write(); | 794 flash_write(); |
811 confirm_data.local_status = DEACTIVATE_CONFIRM; | 795 confirm_data.local_status = DEACTIVATE_CONFIRM; |
812 | 796 |
813 SEND_EVENT (confirm_data.confirm_win, SHOW_CONFIRM, 0, 0); | 797 SEND_EVENT (confirm_data.confirm_win, SHOW_CONFIRM, 0, 0); |
814 | 798 |
815 | 799 return 0; |
816 | |
817 return 0; | |
818 } | 800 } |
819 | 801 |
820 | 802 |
821 /******************************************************************************* | 803 /******************************************************************************* |
822 | 804 |
831 *******************************************************************************/ | 813 *******************************************************************************/ |
832 int settingsAnyKeyAnswerOn(MfwMnu* m, MfwMnuItem* i) | 814 int settingsAnyKeyAnswerOn(MfwMnu* m, MfwMnuItem* i) |
833 { | 815 { |
834 T_MFW_HND win = mfw_parent(mfw_header()); | 816 T_MFW_HND win = mfw_parent(mfw_header()); |
835 | 817 |
836 confirm_Init(win); | 818 confirm_Init(win); |
837 | 819 |
838 FFS_flashData.settings_status |= SettingsAnyKeyAnswerOn; | 820 FFS_flashData.settings_status |= SettingsAnyKeyAnswerOn; |
839 flash_write(); | 821 flash_write(); |
840 confirm_data.local_status = ACTIVATE_CONFIRM; | 822 confirm_data.local_status = ACTIVATE_CONFIRM; |
841 | 823 |
842 SEND_EVENT (confirm_data.confirm_win, SHOW_CONFIRM, 0, 0); | 824 SEND_EVENT (confirm_data.confirm_win, SHOW_CONFIRM, 0, 0); |
843 return 0; | 825 return 0; |
844 } | 826 } |
845 /******************************************************************************* | 827 /******************************************************************************* |
846 | 828 |
847 $Function: settingsAnyKeyAnswerOff | 829 $Function: settingsAnyKeyAnswerOff |
848 | 830 |
853 $Arguments: | 835 $Arguments: |
854 | 836 |
855 *******************************************************************************/ | 837 *******************************************************************************/ |
856 int settingsAnyKeyAnswerOff(MfwMnu* m, MfwMnuItem* i) | 838 int settingsAnyKeyAnswerOff(MfwMnu* m, MfwMnuItem* i) |
857 { | 839 { |
858 | |
859 T_MFW_HND win = mfw_parent(mfw_header()); | 840 T_MFW_HND win = mfw_parent(mfw_header()); |
860 | 841 |
861 confirm_Init(win); | 842 confirm_Init(win); |
862 | 843 |
863 FFS_flashData.settings_status &= ~SettingsAnyKeyAnswerOn; | 844 FFS_flashData.settings_status &= ~SettingsAnyKeyAnswerOn; |
864 flash_write(); | 845 flash_write(); |
865 confirm_data.local_status = DEACTIVATE_CONFIRM; | 846 confirm_data.local_status = DEACTIVATE_CONFIRM; |
866 | 847 |
867 SEND_EVENT (confirm_data.confirm_win, SHOW_CONFIRM, 0, 0); | 848 SEND_EVENT (confirm_data.confirm_win, SHOW_CONFIRM, 0, 0); |
868 | 849 |
869 return 0; | 850 return 0; |
870 } | 851 } |
871 | 852 |
872 /******************************************************************************* | 853 /******************************************************************************* |
873 | 854 |
874 $Function: factoryReset | 855 $Function: factoryReset |
875 | 856 |
876 $Description: Reset all the user-settings, | 857 $Description: Reset all the user-settings, |
877 At first it show up a confirmation screen | 858 At first it show up a confirmation screen |
878 $Returns: | 859 $Returns: |
879 | 860 |
880 $Arguments: | 861 $Arguments: |
881 | 862 |
882 *******************************************************************************/ | 863 *******************************************************************************/ |
883 int factoryReset(MfwMnu* m, MfwMnuItem* i) | 864 int factoryReset(MfwMnu* m, MfwMnuItem* i) |
884 { | 865 { |
885 | |
886 T_MFW_HND win = mfw_parent(mfw_header()); | 866 T_MFW_HND win = mfw_parent(mfw_header()); |
887 | 867 |
888 confirm_Init(win); | 868 confirm_Init(win); |
889 | 869 |
890 confirm_data.local_status = FACTORY_RESET; | 870 confirm_data.local_status = FACTORY_RESET; |
891 | 871 |
892 SEND_EVENT (confirm_data.confirm_win, FACTORY_RESET, 0, 0); | 872 SEND_EVENT (confirm_data.confirm_win, FACTORY_RESET, 0, 0); |
893 return 0; | 873 return 0; |
894 } | 874 } |
895 | |
896 | 875 |
897 | 876 |
898 /******************************************************************************* | 877 /******************************************************************************* |
899 | 878 |
900 $Function: setUserSettings2Default | 879 $Function: setUserSettings2Default |
907 | 886 |
908 *******************************************************************************/ | 887 *******************************************************************************/ |
909 void setUserSettings2Default (void) | 888 void setUserSettings2Default (void) |
910 { | 889 { |
911 //char buf[30]; // RAVI | 890 //char buf[30]; // RAVI |
912 | |
913 | |
914 | 891 |
915 if (DEFAULT_SETTINGS[ENGLISH].status EQ ON) | 892 if (DEFAULT_SETTINGS[ENGLISH].status EQ ON) |
916 { | 893 { |
917 // set the language :ENGLISH | 894 // set the language :ENGLISH |
918 MmiRsrcSetLang(ENGLISH_LANGUAGE);/*MC, SPR 1242 - changed to new function*/ | 895 MmiRsrcSetLang(ENGLISH_LANGUAGE);/*MC, SPR 1242 - changed to new function*/ |
919 } | 896 } |
920 | 897 |
921 | |
922 if (DEFAULT_SETTINGS[GERMAN].status EQ ON) | 898 if (DEFAULT_SETTINGS[GERMAN].status EQ ON) |
923 { | 899 { |
924 // set the language :GERMAN | 900 // set the language :GERMAN |
925 MmiRsrcSetLang(GERMAN_LANGUAGE); /*MC, SPR 1242 - changed to new function*/ | 901 MmiRsrcSetLang(GERMAN_LANGUAGE); /*MC, SPR 1242 - changed to new function*/ |
926 } | 902 } |
927 | 903 |
928 | |
929 if (DEFAULT_SETTINGS[AUTOREDIAL].status EQ ON) | 904 if (DEFAULT_SETTINGS[AUTOREDIAL].status EQ ON) |
930 { | 905 { |
931 // set the Auto-redial | 906 // set the Auto-redial |
932 cm_set_redial(CM_REDIAL_AUTO); | 907 cm_set_redial(CM_REDIAL_AUTO); |
933 } | 908 } |
934 else | 909 else |
935 { | 910 { |
936 cm_set_redial(CM_REDIAL_OFF); | 911 cm_set_redial(CM_REDIAL_OFF); |
937 } | 912 } |
938 | 913 |
939 | |
940 if (DEFAULT_SETTINGS[AUTOANSWER].status EQ ON) | 914 if (DEFAULT_SETTINGS[AUTOANSWER].status EQ ON) |
941 { | 915 { |
942 // set the Autoanswer | 916 // set the Autoanswer |
943 FFS_flashData.settings_status |= SettingsAutoAnswerOn; | 917 FFS_flashData.settings_status |= SettingsAutoAnswerOn; |
944 } | 918 } |
946 { | 920 { |
947 //switch off the Autoanswer | 921 //switch off the Autoanswer |
948 FFS_flashData.settings_status &= ~SettingsAutoAnswerOn; | 922 FFS_flashData.settings_status &= ~SettingsAutoAnswerOn; |
949 } | 923 } |
950 | 924 |
951 | |
952 if (DEFAULT_SETTINGS[ANYKEYANSWER].status EQ ON) | 925 if (DEFAULT_SETTINGS[ANYKEYANSWER].status EQ ON) |
953 { | 926 { |
954 // set the Anykeyanswer | 927 // set the Anykeyanswer |
955 FFS_flashData.settings_status |= SettingsAnyKeyAnswerOn; | 928 FFS_flashData.settings_status |= SettingsAnyKeyAnswerOn; |
956 } | 929 } |
963 if (DEFAULT_SETTINGS[CALLTIMERS].status EQ CLEAR) | 936 if (DEFAULT_SETTINGS[CALLTIMERS].status EQ CLEAR) |
964 { | 937 { |
965 //reset here the call timers | 938 //reset here the call timers |
966 //incoming, outgoing & last calls | 939 //incoming, outgoing & last calls |
967 } | 940 } |
968 | |
969 | 941 |
970 if (DEFAULT_SETTINGS[KEYPAD_CLICK].status EQ ON) | 942 if (DEFAULT_SETTINGS[KEYPAD_CLICK].status EQ ON) |
971 { | 943 { |
972 // set the Keypad click | 944 // set the Keypad click |
973 | 945 |
977 } | 949 } |
978 | 950 |
979 FFS_flashData.settings_status |= SettingsKeypadClick; | 951 FFS_flashData.settings_status |= SettingsKeypadClick; |
980 } | 952 } |
981 | 953 |
982 | |
983 if (DEFAULT_SETTINGS[KEYPAD_DTMF].status EQ ON) | 954 if (DEFAULT_SETTINGS[KEYPAD_DTMF].status EQ ON) |
984 { | 955 { |
985 // set the Keypad DTMF | 956 // set the Keypad DTMF |
986 | 957 |
987 if (FFS_flashData.settings_status & SettingsKeypadClick) | 958 if (FFS_flashData.settings_status & SettingsKeypadClick) |
989 FFS_flashData.settings_status &= ~SettingsKeypadClick; | 960 FFS_flashData.settings_status &= ~SettingsKeypadClick; |
990 } | 961 } |
991 | 962 |
992 FFS_flashData.settings_status |= SettingsKeypadDTMF; | 963 FFS_flashData.settings_status |= SettingsKeypadDTMF; |
993 } | 964 } |
994 | |
995 | 965 |
996 if (DEFAULT_SETTINGS[KEYPAD_SILENT].status EQ ON) | 966 if (DEFAULT_SETTINGS[KEYPAD_SILENT].status EQ ON) |
997 { | 967 { |
998 // set the Keypad silence | 968 // set the Keypad silence |
999 | 969 |
1012 // sprintf (buf, " FFS_flashData.settings_status %d", FFS_flashData.settings_status); | 982 // sprintf (buf, " FFS_flashData.settings_status %d", FFS_flashData.settings_status); |
1013 // TRACE_EVENT (buf); | 983 // TRACE_EVENT (buf); |
1014 | 984 |
1015 //xrashmic 7 Dec, 2004 MMI-SPR-26161 and MMI-SPR-23965 | 985 //xrashmic 7 Dec, 2004 MMI-SPR-26161 and MMI-SPR-23965 |
1016 // Resetting the downloaded and extracted wap objects | 986 // Resetting the downloaded and extracted wap objects |
1017 FFS_flashData.image_usr_obj=0; | 987 FFS_flashData.image_usr_obj = 0; |
1018 FFS_flashData.audio_usr_obj =0; | 988 FFS_flashData.audio_usr_obj = 0; |
1019 | 989 |
1020 #ifndef FF_NO_VOICE_MEMO | 990 #ifndef FF_NO_VOICE_MEMO |
1021 if (DEFAULT_SETTINGS[VOICE_MEMO].status EQ CLEAR) | 991 if (DEFAULT_SETTINGS[VOICE_MEMO].status EQ CLEAR) |
1022 { | 992 { |
1023 /* Mar 28, 2007 DR: OMAPS00122762 x0039928 */ | 993 /* Mar 28, 2007 DR: OMAPS00122762 x0039928 */ |
1105 $Arguments: | 1075 $Arguments: |
1106 | 1076 |
1107 *******************************************************************************/ | 1077 *******************************************************************************/ |
1108 void confirm_Exit (T_MFW_HND own_window) | 1078 void confirm_Exit (T_MFW_HND own_window) |
1109 { | 1079 { |
1110 | |
1111 T_MFW_WIN * win_data = ((T_MFW_HDR *)own_window)->data; | 1080 T_MFW_WIN * win_data = ((T_MFW_HDR *)own_window)->data; |
1112 T_confirm * data = (T_confirm *)win_data->user; | 1081 T_confirm * data = (T_confirm *)win_data->user; |
1113 | 1082 |
1114 confirm_destroy (data->confirm_win); | 1083 confirm_destroy (data->confirm_win); |
1115 } | 1084 } |
1116 | 1085 |
1117 /******************************************************************************* | 1086 /******************************************************************************* |
1118 | 1087 |
1119 $Function: confirm_create | 1088 $Function: confirm_create |
1222 { | 1191 { |
1223 T_DISPLAY_DATA display_info; | 1192 T_DISPLAY_DATA display_info; |
1224 | 1193 |
1225 TRACE_FUNCTION ("confirm_dialog()"); | 1194 TRACE_FUNCTION ("confirm_dialog()"); |
1226 | 1195 |
1227 | 1196 dlg_initDisplayData_TextId( &display_info, TxtNull, TxtNull,TxtNull, TxtNull , COLOUR_STATUS); |
1228 dlg_initDisplayData_TextId( &display_info, TxtNull, TxtNull,TxtNull, TxtNull , COLOUR_STATUS); | 1197 dlg_initDisplayData_events( &display_info, (T_VOID_FUNC)confirm_dialog_cb, THREE_SECS, KEY_CLEAR | KEY_RIGHT | KEY_LEFT ); |
1229 dlg_initDisplayData_events( &display_info, (T_VOID_FUNC)confirm_dialog_cb, THREE_SECS, KEY_CLEAR | KEY_RIGHT | KEY_LEFT ); | |
1230 | 1198 |
1231 if (confirm_data.local_status EQ ACTIVATE_CONFIRM) | 1199 if (confirm_data.local_status EQ ACTIVATE_CONFIRM) |
1232 { | 1200 { |
1233 display_info.TextId = TxtActivated; | 1201 display_info.TextId = TxtActivated; |
1234 } | 1202 } |
1235 else if (confirm_data.local_status EQ DEACTIVATE_CONFIRM) | 1203 else if (confirm_data.local_status EQ DEACTIVATE_CONFIRM) |
1236 { | 1204 { |
1237 display_info.TextId = TxtDeActivated; | 1205 display_info.TextId = TxtDeActivated; |
1238 } | 1206 } |
1239 else if (confirm_data.local_status EQ FACTORY_RESET) | 1207 else if (confirm_data.local_status EQ FACTORY_RESET) |
1240 { | 1208 { |
1241 display_info.TextId = TxtPressOk; | 1209 display_info.TextId = TxtPressOk; |
1242 display_info.TextId2 = TxtReset; | 1210 display_info.TextId2 = TxtReset; |
1243 display_info.Time = TEN_SECS; | 1211 display_info.Time = TEN_SECS; |
1244 display_info.LeftSoftKey = TxtSoftOK; | 1212 display_info.LeftSoftKey = TxtSoftOK; |
1245 display_info.RightSoftKey = TxtSoftBack; | 1213 display_info.RightSoftKey = TxtSoftBack; |
1246 | |
1247 } | 1214 } |
1248 | 1215 |
1249 /* | 1216 /* |
1250 * Call Info Screen | 1217 * Call Info Screen |
1251 */ | 1218 */ |
1252 info_dialog (confirm_data.confirm_win, &display_info); | 1219 info_dialog (confirm_data.confirm_win, &display_info); |
1253 | 1220 } |
1254 } | 1221 |
1255 /******************************************************************************* | 1222 /******************************************************************************* |
1256 | 1223 |
1257 $Function: confirm_dialog_cb | 1224 $Function: confirm_dialog_cb |
1258 | 1225 |
1259 $Description: | 1226 $Description: |
1263 $Arguments: | 1230 $Arguments: |
1264 | 1231 |
1265 *******************************************************************************/ | 1232 *******************************************************************************/ |
1266 void confirm_dialog_cb(T_MFW_HND win, UBYTE identifier, UBYTE reason) | 1233 void confirm_dialog_cb(T_MFW_HND win, UBYTE identifier, UBYTE reason) |
1267 { | 1234 { |
1268 TRACE_FUNCTION ("confirm_dialog_cb()"); | 1235 TRACE_FUNCTION ("confirm_dialog_cb()"); |
1269 | 1236 |
1270 switch (reason) | 1237 switch (reason) |
1271 { | 1238 { |
1272 case INFO_KCD_LEFT: | 1239 case INFO_KCD_LEFT: |
1273 // user confirm to reset all the user settings ! | 1240 // user confirm to reset all the user settings ! |
1274 setUserSettings2Default (); | 1241 setUserSettings2Default (); |
1275 confirm_Exit(win); | 1242 confirm_Exit(win); |
1276 break; | 1243 break; |
1277 | 1244 |
1278 case INFO_TIMEOUT: | 1245 case INFO_TIMEOUT: |
1279 /* no break; */ | 1246 /* no break; */ |
1280 case INFO_KCD_HUP: | 1247 case INFO_KCD_HUP: |
1281 /* no break; */ | 1248 /* no break; */ |
1282 case INFO_KCD_RIGHT: | 1249 case INFO_KCD_RIGHT: |
1283 /* no break; */ | 1250 /* no break; */ |
1284 case INFO_KCD_CLEAR: | 1251 case INFO_KCD_CLEAR: |
1285 confirm_Exit(win); | 1252 confirm_Exit(win); |
1286 break; | 1253 break; |
1287 } | 1254 } |
1288 } | 1255 } |
1289 | 1256 |
1290 /******************************************************************************* | 1257 /******************************************************************************* |
1291 | 1258 |
1292 $Function: confirm | 1259 $Function: confirm |
1301 void confirm (T_MFW_HND win, USHORT event, SHORT value, void * parameter) | 1268 void confirm (T_MFW_HND win, USHORT event, SHORT value, void * parameter) |
1302 { | 1269 { |
1303 // T_MFW_WIN * win_data = ((T_MFW_HDR *) win)->data; // RAVI | 1270 // T_MFW_WIN * win_data = ((T_MFW_HDR *) win)->data; // RAVI |
1304 // T_confirm * data = (T_confirm *)win_data->user; // RAVI | 1271 // T_confirm * data = (T_confirm *)win_data->user; // RAVI |
1305 | 1272 |
1306 TRACE_FUNCTION("confirm()"); | 1273 TRACE_FUNCTION("confirm()"); |
1307 | 1274 |
1308 switch (event) | 1275 switch (event) |
1309 { | 1276 { |
1310 case SHOW_CONFIRM: | 1277 case SHOW_CONFIRM: |
1311 confirm_dialog(); | 1278 confirm_dialog(); |
1312 break; | 1279 break; |
1313 case FACTORY_RESET: | 1280 case FACTORY_RESET: |
1314 confirm_dialog(); | 1281 confirm_dialog(); |
1315 break; | 1282 break; |
1316 | |
1317 } | 1283 } |
1318 | 1284 } |
1319 } | 1285 |
1320 static void showSet (void) | 1286 static void showSet (void) |
1321 { | 1287 { |
1322 | |
1323 T_DISPLAY_DATA display_info; | 1288 T_DISPLAY_DATA display_info; |
1324 | 1289 |
1325 dlg_initDisplayData_TextId( &display_info, TxtSoftOK, TxtNull, TxtActivated, TxtNull, COLOUR_STATUS); | 1290 dlg_initDisplayData_TextId( &display_info, TxtSoftOK, TxtNull, TxtActivated, TxtNull, COLOUR_STATUS); |
1326 dlg_initDisplayData_events( &display_info, NULL, THREE_SECS, KEY_HUP| KEY_LEFT ); | 1291 dlg_initDisplayData_events( &display_info, NULL, THREE_SECS, KEY_HUP| KEY_LEFT ); |
1327 | 1292 |
1328 info_dialog ( NULL, &display_info); | 1293 info_dialog ( NULL, &display_info); |
1329 } | 1294 } |
1330 | 1295 |
1331 static void showClear (void) | 1296 static void showClear (void) |
1332 { | 1297 { |
1333 | |
1334 T_DISPLAY_DATA display_info; | 1298 T_DISPLAY_DATA display_info; |
1335 | 1299 |
1336 dlg_initDisplayData_TextId( &display_info, TxtSoftOK, TxtNull, TxtDeActivated, TxtNull, COLOUR_STATUS); | 1300 dlg_initDisplayData_TextId( &display_info, TxtSoftOK, TxtNull, TxtDeActivated, TxtNull, COLOUR_STATUS); |
1337 dlg_initDisplayData_events( &display_info, NULL, THREE_SECS, KEY_HUP| KEY_LEFT ); | 1301 dlg_initDisplayData_events( &display_info, NULL, THREE_SECS, KEY_HUP| KEY_LEFT ); |
1338 | 1302 |
1339 info_dialog ( NULL, &display_info); | 1303 info_dialog ( NULL, &display_info); |
1340 } | 1304 } |
1341 | 1305 |
1342 // MENU_ITEM ( TxtCheckStatus, servicesDivertCheck, item_flag_none ), | 1306 // MENU_ITEM ( TxtCheckStatus, servicesDivertCheck, item_flag_none ), |
1343 void settingsShowStateAnykeyAnswer (void) | 1307 void settingsShowStateAnykeyAnswer (void) |
1344 { | 1308 { |
1345 if (settingsGetStatus(SettingsAnyKeyAnswerOn)) | 1309 if (settingsGetStatus(SettingsAnyKeyAnswerOn)) |
1346 showSet(); | 1310 showSet(); |
1347 else | 1311 else |
1348 showClear(); | 1312 showClear(); |
1349 } | 1313 } |
1314 | |
1350 void settingsShowStateAutoAnswer (void) | 1315 void settingsShowStateAutoAnswer (void) |
1351 { | 1316 { |
1352 if (settingsGetStatus(SettingsAutoAnswerOn)) | 1317 if (settingsGetStatus(SettingsAutoAnswerOn)) |
1353 showSet(); | 1318 showSet(); |
1354 else | 1319 else |
1355 showClear(); | 1320 showClear(); |
1356 } | 1321 } |
1322 | |
1357 void settingsShowStateAutoRedial(void) | 1323 void settingsShowStateAutoRedial(void) |
1358 { | 1324 { |
1359 if (FFS_flashData.redial_mode == CM_REDIAL_AUTO) | 1325 if (FFS_flashData.redial_mode == CM_REDIAL_AUTO) |
1360 showSet(); | 1326 showSet(); |
1361 else | 1327 else |
1362 showClear(); | 1328 showClear(); |
1363 } | 1329 } |
1330 | |
1364 /*GW SPR#2470 Created*/ | 1331 /*GW SPR#2470 Created*/ |
1365 void settingsShowStateCBDisable(void) | 1332 void settingsShowStateCBDisable(void) |
1366 { | 1333 { |
1367 if (settingsGetStatus(SettingsCBDisable)) | 1334 if (settingsGetStatus(SettingsCBDisable)) |
1368 showClear(); | 1335 showClear(); |
1399 // Jul 29, 2004 REF = CRR 20898 xkundadu | 1366 // Jul 29, 2004 REF = CRR 20898 xkundadu |
1400 /******************************************************************************* | 1367 /******************************************************************************* |
1401 $Function: settingsFocusCurSelAutoAns | 1368 $Function: settingsFocusCurSelAutoAns |
1402 | 1369 |
1403 $Description: This function sets the focus to the On or Off menu item of the | 1370 $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. | 1371 'Auto Answer' menu in the Phone Settings main menu. |
1405 Check whether the 'Auto Answer' is enabled by reading the data | 1372 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 | 1373 stored in the FFS. Depending on that, set the focus to the menu |
1407 item. | 1374 item. |
1408 | 1375 |
1409 $Returns: void | 1376 $Returns: void |
1410 | 1377 |
1411 $Arguments: void | 1378 $Arguments: void |
1412 *******************************************************************************/ | 1379 *******************************************************************************/ |
1413 | |
1414 | 1380 |
1415 void settingsFocusCurSelAutoAns(void) | 1381 void settingsFocusCurSelAutoAns(void) |
1416 { | 1382 { |
1417 // Points to the index of the menuitem to be selected | 1383 // Points to the index of the menuitem to be selected |
1418 // If it is 1, 'Off' menuItem will be selected, else 'On' menuitem | 1384 // If it is 1, 'Off' menuItem will be selected, else 'On' menuitem |
1436 } | 1402 } |
1437 | 1403 |
1438 // Send the event to display the menu item and appropriate menuitem | 1404 // Send the event to display the menu item and appropriate menuitem |
1439 // selected. | 1405 // selected. |
1440 SEND_EVENT(setting_win, DEFAULT_OPTION, NULL, &menuItemIndex); | 1406 SEND_EVENT(setting_win, DEFAULT_OPTION, NULL, &menuItemIndex); |
1441 | |
1442 } | 1407 } |
1443 | 1408 |
1444 // Jul 22,2004 CRR:20896 xrashmic - SASKEN | 1409 // Jul 22,2004 CRR:20896 xrashmic - SASKEN |
1445 // Description: The time current time format is not highlighted | 1410 // Description: The time current time format is not highlighted |
1446 // Fix: Instead of showing the submenu directly we call this function | 1411 // Fix: Instead of showing the submenu directly we call this function |
1457 } | 1422 } |
1458 | 1423 |
1459 /******************************************************************************* | 1424 /******************************************************************************* |
1460 $Function: settingsFocusCurSelAnyKeyAns | 1425 $Function: settingsFocusCurSelAnyKeyAns |
1461 $Description: This function sets the focus to the On or Off menu item of the | 1426 $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. | 1427 'AnyKey Answer' menu in the Phone Settings main menu. |
1463 Check whether the 'Any Key Answer' is enabled by reading the data | 1428 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 | 1429 stored in the FFS. Depending on that, set the focus to the menu |
1465 item | 1430 item |
1466 $Returns: void | 1431 $Returns: void |
1467 $Arguments: void | 1432 $Arguments: void |
1468 *******************************************************************************/ | 1433 *******************************************************************************/ |
1469 // Jul 28, 2004 REF: CRR 20899 xkundadu | 1434 // Jul 28, 2004 REF: CRR 20899 xkundadu |
1470 void settingsFocusCurSelAnyKeyAns(void) | 1435 void settingsFocusCurSelAnyKeyAns(void) |
1492 } | 1457 } |
1493 | 1458 |
1494 // Send the event to display the menu items and set focus to appropriate | 1459 // Send the event to display the menu items and set focus to appropriate |
1495 // menuitem. | 1460 // menuitem. |
1496 SEND_EVENT(setting_win, DEFAULT_OPTION, NULL, &menuItemIndex); | 1461 SEND_EVENT(setting_win, DEFAULT_OPTION, NULL, &menuItemIndex); |
1497 | |
1498 } | 1462 } |
1499 | 1463 |
1500 // May 04, 2005 REF: CRR 30285 x0021334 | 1464 // May 04, 2005 REF: CRR 30285 x0021334 |
1501 /******************************************************************************* | 1465 /******************************************************************************* |
1502 $Function: settingsSmsStatusReportCurSel | 1466 $Function: settingsSmsStatusReportCurSel |
1503 $Description: This function sets the focus to the On or Off menu item of the | 1467 $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. | 1468 'Status Report' submenu menu in the Messages Settings menu. |
1505 $Returns: void | 1469 $Returns: void |
1506 $Arguments: void | 1470 $Arguments: void |
1507 *******************************************************************************/ | 1471 *******************************************************************************/ |
1508 void settingsSmsStatusReportCurSel(void) | 1472 void settingsSmsStatusReportCurSel(void) |
1509 { | 1473 { |
1519 } | 1483 } |
1520 else | 1484 else |
1521 { | 1485 { |
1522 TRACE_FUNCTION("sms info could not be retrieved "); | 1486 TRACE_FUNCTION("sms info could not be retrieved "); |
1523 } | 1487 } |
1524 | 1488 } |
1525 | |
1526 } | |
1527 |