comparison src/ui/bmi/mmiSimToolkit.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 adae850f9857
comparison
equal deleted inserted replaced
91:c3d28a37caad 92:c0052fe355d3
25 25
26 26
27 ******************************************************************************** 27 ********************************************************************************
28 28
29 $History: MmiSimToolkit.c 29 $History: MmiSimToolkit.c
30 30
31 Apr 18, 2006 Ref:OMAPS00116309 R.Prabakar (a0393213) 31 Apr 18, 2006 Ref:OMAPS00116309 R.Prabakar (a0393213)
32 CT-GCF[27.22.4.7.1]- MMI crashes on REFERSH seq 1.2 32 CT-GCF[27.22.4.7.1]- MMI crashes on REFERSH seq 1.2
33 Solution : Data type mismatch between ACI and MMI sorted out 33 Solution : Data type mismatch between ACI and MMI sorted out
34 34
35 35
39 39
40 16 Jan 2006, Ref OMAPS00110997, X0043642 40 16 Jan 2006, Ref OMAPS00110997, X0043642
41 Description: CT PTCRB - TC27.22.4.22.2 SET UP IDLE MODE TEXT (Icon support) - Unexpected TERMINAL RESPONSE performed 41 Description: CT PTCRB - TC27.22.4.22.2 SET UP IDLE MODE TEXT (Icon support) - Unexpected TERMINAL RESPONSE performed
42 Solution: Set satResult as unknownData icon is not present. 42 Solution: Set satResult as unknownData icon is not present.
43 43
44 44
45 Nov 17, 2006 REF:DR:OMAPS00104580 x0039928 45 Nov 17, 2006 REF:DR:OMAPS00104580 x0039928
46 Description: CT GCF - TC27.22.4.13.1 Seq 1.10 - PROACTIVE SIM COMMANDS: 46 Description: CT GCF - TC27.22.4.13.1 Seq 1.10 - PROACTIVE SIM COMMANDS:
47 SET UP CALL (NORMAL) - Call Set-up Failed 47 SET UP CALL (NORMAL) - Call Set-up Failed
48 Solution: Removed the Redial flag enabling code. 48 Solution: Removed the Redial flag enabling code.
49 49
50 Oct 13, 2006 OMAPS00095266 a0393213(R.Prabakar) 50 Oct 13, 2006 OMAPS00095266 a0393213(R.Prabakar)
51 Description : CT-GCF[27.22.4.22.1]-Incorrect string display 51 Description : CT-GCF[27.22.4.22.1]-Incorrect string display
52 Solution : The DCS attribute is set dynamically 52 Solution : The DCS attribute is set dynamically
53 53
54 06 Oct 2006, Ref OMAPS00095263, Archana(x0047075) 54 06 Oct 2006, Ref OMAPS00095263, Archana(x0047075)
55 Description : CT-GCF[27.22.4.24.1]-MS Resets 55 Description : CT-GCF[27.22.4.24.1]-MS Resets
56 Solution : Editor dialog is destroyed on destroy event instead of timeout. 56 Solution : Editor dialog is destroyed on destroy event instead of timeout.
57 57
58 Nov 07, 2006 ER:OMAPS00070661 R.Prabakar(a0393213) 58 Nov 07, 2006 ER:OMAPS00070661 R.Prabakar(a0393213)
59 R99 network compliancy : Implemented Language Notification and Provide Local Information (Language setting) 59 R99 network compliancy : Implemented Language Notification and Provide Local Information (Language setting)
60 SAT proactive commands and Language Selection SAT event 60 SAT proactive commands and Language Selection SAT event
61 61
62 10 Jul 2006, Ref OMAPS00077654, R.Prabakar(a0393213) 62 10 Jul 2006, Ref OMAPS00077654, R.Prabakar(a0393213)
63 Description : Cyrillic character support in MMI to pass GCF/PTCRB UCS2 TC (SATK) 63 Description : Cyrillic character support in MMI to pass GCF/PTCRB UCS2 TC (SATK)
64 Solution : UCS2 display added to terminal profile. Made some changes for long idle screen text display and 64 Solution : UCS2 display added to terminal profile. Made some changes for long idle screen text display and
65 UCS2 display for SAT icon 65 UCS2 display for SAT icon
66 66
67 Jun 06, 2006 DR: OMAPS00080543 - xreddymn 67 Jun 06, 2006 DR: OMAPS00080543 - xreddymn
68 Changes to display long SAT messages correctly on idle screen. 68 Changes to display long SAT messages correctly on idle screen.
69 69
70 29 May 2006 REF: OMAPS00071366, x0045876 70 29 May 2006 REF: OMAPS00071366, x0045876
71 Description: IT3 verdict: FAIL, [Step 13] The ME did not display idle screen without the message 71 Description: IT3 verdict: FAIL, [Step 13] The ME did not display idle screen without the message
72 "Idle Mode Text" as expected. 72 "Idle Mode Text" as expected.
73 73
74 xrashmic 16 Feb, 2006 OMAPS00064413 74 xrashmic 16 Feb, 2006 OMAPS00064413
75 When a SIM RESET occurs, while recreating the simtoolkit list view, the list win is also recreated. 75 When a SIM RESET occurs, while recreating the simtoolkit list view, the list win is also recreated.
76 76
77 May 26, 2006 REF: OMAPS00076094, x0045876 77 May 26, 2006 REF: OMAPS00076094, x0045876
78 Description: MMI's Terminal Profile (TP) setup is not in line with the SAT class e implementation 78 Description: MMI's Terminal Profile (TP) setup is not in line with the SAT class e implementation
79 Solution: TP is updated based on the current support by MMI. 79 Solution: TP is updated based on the current support by MMI.
80 80
82 Solution: Initialized Editor 82 Solution: Initialized Editor
83 83
84 May 09, 2006 REF: OMAPS00064076, x0045876 84 May 09, 2006 REF: OMAPS00064076, x0045876
85 Description: SAT IDLE TEXT - UCS2 Display 85 Description: SAT IDLE TEXT - UCS2 Display
86 Solution: Added UCS2 support to display UCS2 characters in IDLE MODE. 86 Solution: Added UCS2 support to display UCS2 characters in IDLE MODE.
87 87
88 xrashmic 16 Feb, 2006 OMAPS00064413 88 xrashmic 16 Feb, 2006 OMAPS00064413
89 When a SIM RESET occurs, while recreating the simtoolkit list view, the list win is also recreated. 89 When a SIM RESET occurs, while recreating the simtoolkit list view, the list win is also recreated.
90 90
91 Mar 11, 2006 REF:DR:OMAPS00061467 x0035544 91 Mar 11, 2006 REF:DR:OMAPS00061467 x0035544
92 Description: 27.22.4.13.3 SET UP CALL (display of icons) fails. 92 Description: 27.22.4.13.3 SET UP CALL (display of icons) fails.
93 Solution: In the function sim_toolkit_exec() for the event SAT_SETUP_CALL copied the icon data which is 93 Solution: In the function sim_toolkit_exec() for the event SAT_SETUP_CALL copied the icon data which is
94 got through the sat command on to the structures data->call_setup_parameter.iconInfo and to the data->call_setup_parameter.iconInfo2 94 got through the sat command on to the structures data->call_setup_parameter.iconInfo and to the data->call_setup_parameter.iconInfo2
95 appropriately.And For the event SAT_CALL_END freed the memory allocated for the icon data. 95 appropriately.And For the event SAT_CALL_END freed the memory allocated for the icon data.
96 on to the 96 on to the
97 97
98 Feb 02, 2006 DR: OMAPS00061468 - x0035544. 98 Feb 02, 2006 DR: OMAPS00061468 - x0035544.
99 Description: SAT 27.22.4.22.2 SET UP IDLE MODE TEXT (Icon support) fails 99 Description: SAT 27.22.4.22.2 SET UP IDLE MODE TEXT (Icon support) fails
100 Solution : SAT SET UP IDLE MODE TEXT (Icon) support added. 100 Solution : SAT SET UP IDLE MODE TEXT (Icon) support added.
101 101
102 Jan 16, 2006 DR: OMAPS00061460 - Shashi Shekar B.S. 102 Jan 16, 2006 DR: OMAPS00061460 - Shashi Shekar B.S.
103 Description: SAT Icon support 103 Description: SAT Icon support
104 Solution : SAT icon support added. 104 Solution : SAT icon support added.
105 105
106 Dec 23, 2005 REF: OMAPS00062166 x0039928 106 Dec 23, 2005 REF: OMAPS00062166 x0039928
107 Bug: CT-TIB-GCF[27.22.4.24.1]-sequence 1.2 crashes 107 Bug: CT-TIB-GCF[27.22.4.24.1]-sequence 1.2 crashes
108 Fix: Initialize the editor buffer. Initialization is taken care for DTMF and also for SS. 108 Fix: Initialize the editor buffer. Initialization is taken care for DTMF and also for SS.
109 109
110 110
111 xreddymn Sep-06-2005 MMI-SPR-33876: 111 xreddymn Sep-06-2005 MMI-SPR-33876:
112 Initialize editor buffer when displaying message box 112 Initialize editor buffer when displaying message box
113 in case of SAT_SEND_SMS 113 in case of SAT_SEND_SMS
114 114
115 Aug 16, 2004 REF: CRR 24323 Deepa M.D 115 Aug 16, 2004 REF: CRR 24323 Deepa M.D
118 118
119 25/10/00 Original Condat(UK) BMI version. 119 25/10/00 Original Condat(UK) BMI version.
120 21/02/03 removed all calls to function sat_add_unicode_tag_if_needed() and the 120 21/02/03 removed all calls to function sat_add_unicode_tag_if_needed() and the
121 function itself 121 function itself
122 26-05-04 CRR 19656 Sandip and Deepa M.D 122 26-05-04 CRR 19656 Sandip and Deepa M.D
123 Fix for The Dsample doesn't display lines ( <CR> or <LF> ) in the SETUP IDLE 123 Fix for The Dsample doesn't display lines ( <CR> or <LF> ) in the SETUP IDLE
124 TEXT command. 124 TEXT command.
125 Fix for The idle screen is empty when a SETUP IDLE TEXT command is sent with 125 Fix for The idle screen is empty when a SETUP IDLE TEXT command is sent with
126 a long text ( 239 characters ). 126 a long text ( 239 characters ).
127 127
128 128
129 $End 129 $End
130 130
131 *******************************************************************************/ 131 *******************************************************************************/
132 132
133 #define ENTITY_MFW 133 #define ENTITY_MFW
413 static const UBYTE sat_terminal_profile [13] = 413 static const UBYTE sat_terminal_profile [13] =
414 { 414 {
415 #ifdef SAT_TP1_PRF_DNL 415 #ifdef SAT_TP1_PRF_DNL
416 416
417 (SAT_TP1_PRF_DNL | SAT_TP1_MENU_SEL), 417 (SAT_TP1_PRF_DNL | SAT_TP1_MENU_SEL),
418 418
419 /* 26-05-2006, x0045876 (OMAPS00076094 - Removed SAT_TP2_UCS2_ENTRY, SAT_TP2_UCS2_DSPL, 419 /* 26-05-2006, x0045876 (OMAPS00076094 - Removed SAT_TP2_UCS2_ENTRY, SAT_TP2_UCS2_DSPL,
420 SAT_TP2_DSPL_EXT) */ 420 SAT_TP2_DSPL_EXT) */
421 /*10 Jul 2006, Ref OMAPS00077654, R.Prabakar(a0393213) 421 /*10 Jul 2006, Ref OMAPS00077654, R.Prabakar(a0393213)
422 Description : Cyrillic character support in MMI to pass GCF/PTCRB UCS2 TC (SATK) 422 Description : Cyrillic character support in MMI to pass GCF/PTCRB UCS2 TC (SATK)
423 Solution : UCS2 display added to terminal profile*/ 423 Solution : UCS2 display added to terminal profile*/
424 (SAT_TP2_CMD_RES|SAT_TP2_CC|SAT_TP2_ALPHA_ID| 424 (SAT_TP2_CMD_RES|SAT_TP2_CC|SAT_TP2_ALPHA_ID|
425 SAT_TP2_UCS2_DSPL), 425 SAT_TP2_UCS2_DSPL),
426 426
427 (SAT_TP3_DSPL_TXT|SAT_TP3_GET_INKEY|SAT_TP3_GET_INPUT| 427 (SAT_TP3_DSPL_TXT|SAT_TP3_GET_INKEY|SAT_TP3_GET_INPUT|
428 SAT_TP3_PLAY_TONE|SAT_TP3_REFRESH), 428 SAT_TP3_PLAY_TONE|SAT_TP3_REFRESH),
429 429
430 (SAT_TP4_SEL_ITEM|SAT_TP4_SEND_SMS|SAT_TP4_SEND_SS| 430 (SAT_TP4_SEL_ITEM|SAT_TP4_SEND_SMS|SAT_TP4_SEND_SS|
434 434
435 #ifdef FF_MMI_R99_SAT_LANG 435 #ifdef FF_MMI_R99_SAT_LANG
436 (SAT_TP6_LANG_SEL), /*OMAPS00070661 R.Prabakar(a0393213) Language Selection Enabled */ 436 (SAT_TP6_LANG_SEL), /*OMAPS00070661 R.Prabakar(a0393213) Language Selection Enabled */
437 #else 437 #else
438 0x0, 438 0x0,
439 #endif 439 #endif
440 440
441 0x0, 441 0x0,
442 442
443 (SAT_TP8_BIN_GET_INKEY | SAT_TP8_IDLE_TXT | SAT_TP8_AI2_SETUP_CALL), 443 (SAT_TP8_BIN_GET_INKEY | SAT_TP8_IDLE_TXT | SAT_TP8_AI2_SETUP_CALL),
444 444
445 #if defined(FF_WAP) 445 #if defined(FF_WAP)
446 #ifdef FF_MMI_R99_SAT_LANG 446 #ifdef FF_MMI_R99_SAT_LANG
447 /*OMAPS00070661 R.Prabakar(a0393213) Language Notification and Local Information(language setting)*/ 447 /*OMAPS00070661 R.Prabakar(a0393213) Language Notification and Local Information(language setting)*/
448 (SAT_TP9_SUST_DSPL_TXT|SAT_TP9_LAUNCH_BROWSER | SAT_TP9_PLI_LANG | SAT_TP9_LANG_NOTIFY), 448 (SAT_TP9_SUST_DSPL_TXT|SAT_TP9_LAUNCH_BROWSER | SAT_TP9_PLI_LANG | SAT_TP9_LANG_NOTIFY),
449 #else 449 #else
450 (SAT_TP9_SUST_DSPL_TXT|SAT_TP9_LAUNCH_BROWSER), 450 (SAT_TP9_SUST_DSPL_TXT|SAT_TP9_LAUNCH_BROWSER),
451 #endif 451 #endif
452 #else 452 #else
453 #ifdef FF_MMI_R99_SAT_LANG 453 #ifdef FF_MMI_R99_SAT_LANG
454 /*OMAPS00070661 R.Prabakar(a0393213) Language Notification and Local Information(language setting)*/ 454 /*OMAPS00070661 R.Prabakar(a0393213) Language Notification and Local Information(language setting)*/
455 (SAT_TP9_SUST_DSPL_TXT | SAT_TP9_PLI_LANG | SAT_TP9_LANG_NOTIFY), 455 (SAT_TP9_SUST_DSPL_TXT | SAT_TP9_PLI_LANG | SAT_TP9_LANG_NOTIFY),
456 #else 456 #else
457 SAT_TP9_SUST_DSPL_TXT, 457 SAT_TP9_SUST_DSPL_TXT,
458 #endif 458 #endif
459 #endif 459 #endif
460 460
461 /* 26-05-2006, x0045876 (OMAPS00076094 - Added Softkeys) */ 461 /* 26-05-2006, x0045876 (OMAPS00076094 - Added Softkeys) */
462 0x03, 462 0x03,
463 463
464 0x0, 464 0x0,
465 465
466 (SAT_TP12_OPEN_CHANNEL | SAT_TP12_CLOSE_CHANNEL | SAT_TP12_RECEIVE_DATA | 466 (SAT_TP12_OPEN_CHANNEL | SAT_TP12_CLOSE_CHANNEL | SAT_TP12_RECEIVE_DATA |
467 SAT_TP12_SEND_DATA), 467 SAT_TP12_SEND_DATA),
475 /*OMAPS00070661 R.Prabakar(a0393213) Language Notification, Local Information(language setting) and Language Selection Enabled*/ 475 /*OMAPS00070661 R.Prabakar(a0393213) Language Notification, Local Information(language setting) and Language Selection Enabled*/
476 0x09, 0x7B, 0x97, 0x3F, 0x61, 0x01, 0x00, 0x58, 0x29, 0x03, 0x00 /*, 0x0F, 0x03*/ 476 0x09, 0x7B, 0x97, 0x3F, 0x61, 0x01, 0x00, 0x58, 0x29, 0x03, 0x00 /*, 0x0F, 0x03*/
477 #else 477 #else
478 0x09, 0x7B, 0x97, 0x3F, 0x61, 0x00, 0x00, 0x58, 0x01, 0x03, 0x00 /*, 0x0F, 0x03*/ 478 0x09, 0x7B, 0x97, 0x3F, 0x61, 0x00, 0x00, 0x58, 0x01, 0x03, 0x00 /*, 0x0F, 0x03*/
479 #endif 479 #endif
480 /* END: 11-05-2006, x0045876 (OMAPS00076094) */ 480 /* END: 11-05-2006, x0045876 (OMAPS00076094) */
481 #endif 481 #endif
482 }; 482 };
483 483
484 static void sim_toolkit_destroy (T_MFW_HND own_window); 484 static void sim_toolkit_destroy (T_MFW_HND own_window);
485 static void sim_toolkit_exec (T_MFW_HND win, USHORT event, SHORT value, T_SAT_CMD * sat_command); 485 static void sim_toolkit_exec (T_MFW_HND win, USHORT event, SHORT value, T_SAT_CMD * sat_command);
550 #endif 550 #endif
551 |MfwSatOpenChannel| 551 |MfwSatOpenChannel|
552 MfwSatCloseChannel| 552 MfwSatCloseChannel|
553 MfwSatSendData| 553 MfwSatSendData|
554 MfwSatReceiveData| 554 MfwSatReceiveData|
555 MfwSatErrBusy /* SAT error handling */ 555 MfwSatErrBusy /* SAT error handling */
556 #ifdef FF_MMI_R99_SAT_LANG 556 #ifdef FF_MMI_R99_SAT_LANG
557 |MfwSatLangNotify | /*OMAPS00070661 (SAT-lang notify and local info(lang setting)) a0393213(R.Prabakar)*/ 557 |MfwSatLangNotify | /*OMAPS00070661 (SAT-lang notify and local info(lang setting)) a0393213(R.Prabakar)*/
558 MfwSatLocalInfo 558 MfwSatLocalInfo
559 #endif 559 #endif
560 , 560 ,
674 data->info_win = NULL; 674 data->info_win = NULL;
675 } 675 }
676 676
677 677
678 switch (event) 678 switch (event)
679 { 679 {
680 #ifdef FF_MMI_R99_SAT_LANG 680 #ifdef FF_MMI_R99_SAT_LANG
681 case SAT_LOCAL_INFO: 681 case SAT_LOCAL_INFO:
682 /*OMAPS00070661(SAT-Local Info(lang setting)) a0393213(R.Prabakar)*/ 682 /*OMAPS00070661(SAT-Local Info(lang setting)) a0393213(R.Prabakar)*/
683 TRACE_EVENT ("SAT Local Information "); 683 TRACE_EVENT ("SAT Local Information ");
684 if(sat_command->qual==LOCAL_INFO_LANG_SETTING_QUALIFIER)/*local information - language setting*/ 684 if(sat_command->qual==LOCAL_INFO_LANG_SETTING_QUALIFIER)/*local information - language setting*/
685 { 685 {
686 UBYTE lang[2]; 686 UBYTE lang[2];
687 687
688 switch(Mmi_getCurrentLanguage()) 688 switch(Mmi_getCurrentLanguage())
689 { 689 {
690 case ENGLISH_LANGUAGE: 690 case ENGLISH_LANGUAGE:
691 lang [0] = ASCII_FOR_E; /* 'e' */ 691 lang [0] = ASCII_FOR_E; /* 'e' */
699 sat_res[SAT_ERR_INDEX] = SAT_RES_SUCCESS; 699 sat_res[SAT_ERR_INDEX] = SAT_RES_SUCCESS;
700 sat_res[SAT_AI_INDEX] = SatResAiNoCause; 700 sat_res[SAT_AI_INDEX] = SatResAiNoCause;
701 break; 701 break;
702 case GERMAN_LANGUAGE: 702 case GERMAN_LANGUAGE:
703 lang [0] = ASCII_FOR_D; /* 'd' */ 703 lang [0] = ASCII_FOR_D; /* 'd' */
704 lang [1] = ASCII_FOR_E; /* 'e' */ 704 lang [1] = ASCII_FOR_E; /* 'e' */
705 sat_res[SAT_ERR_INDEX] = SAT_RES_SUCCESS; 705 sat_res[SAT_ERR_INDEX] = SAT_RES_SUCCESS;
706 sat_res[SAT_AI_INDEX] = SatResAiNoCause; 706 sat_res[SAT_AI_INDEX] = SatResAiNoCause;
707 break; 707 break;
708 default: 708 default:
709 sat_res[SAT_ERR_INDEX]=SAT_RES_MISSING; 709 sat_res[SAT_ERR_INDEX]=SAT_RES_MISSING;
710 sat_res[SAT_AI_INDEX] = SatResAiNoService; 710 sat_res[SAT_AI_INDEX] = SatResAiNoService;
711 } 711 }
712 /* Terminal Response - Specifying language set in ME */ 712 /* Terminal Response - Specifying language set in ME */
713 satLocalInfo(sat_command, sat_res, sizeof(sat_res), lang, sizeof(lang)); 713 satLocalInfo(sat_command, sat_res, sizeof(sat_res), lang, sizeof(lang));
714 } 714 }
715 break; 715 break;
716 case SAT_LANGUAGE_NOTIFY: 716 case SAT_LANGUAGE_NOTIFY:
717 /*OMAPS00070661(SAT-Lang notify) a0393213(R.Prabakar)*/ 717 /*OMAPS00070661(SAT-Lang notify) a0393213(R.Prabakar)*/
718 TRACE_EVENT ("Language Notification "); 718 TRACE_EVENT ("Language Notification ");
719 719
720 /* Terminal Response to SIM - OK for getting the notification of language */ 720 /* Terminal Response to SIM - OK for getting the notification of language */
721 sat_res[SAT_ERR_INDEX] = SAT_RES_SUCCESS; 721 sat_res[SAT_ERR_INDEX] = SAT_RES_SUCCESS;
722 sat_res[SAT_AI_INDEX] = SatResAiNoCause; 722 sat_res[SAT_AI_INDEX] = SatResAiNoCause;
723 723
724 if(sat_command->qual == LANG_NOTIFY_SPEC_LANG_QUALIFIER) /*specified language notification*/ 724 if(sat_command->qual == LANG_NOTIFY_SPEC_LANG_QUALIFIER) /*specified language notification*/
725 { 725 {
726 /* Check for language and set the respective language */ 726 /* Check for language and set the respective language */
727 if ((sat_command->c.language.lang[0] == ASCII_FOR_E) && (sat_command->c.language.lang[1] == ASCII_FOR_N)) /* English */ 727 if ((sat_command->c.language.lang[0] == ASCII_FOR_E) && (sat_command->c.language.lang[1] == ASCII_FOR_N)) /* English */
728 { 728 {
729 /* set as English */ 729 /* set as English */
730 Mmi_Set2Language(ENGLISH_LANGUAGE); 730 Mmi_Set2Language(ENGLISH_LANGUAGE);
731 } 731 }
732 else if ((sat_command->c.language.lang[0] == ASCII_FOR_D) && (sat_command->c.language.lang[1] == ASCII_FOR_E)) /* German */ 732 else if ((sat_command->c.language.lang[0] == ASCII_FOR_D) && (sat_command->c.language.lang[1] == ASCII_FOR_E)) /* German */
733 { 733 {
734 /* Set as German */ 734 /* Set as German */
735 Mmi_Set2Language(GERMAN_LANGUAGE); 735 Mmi_Set2Language(GERMAN_LANGUAGE);
736 736
737 } 737 }
738 else if ((sat_command->c.language.lang[0] == ASCII_FOR_Z) && (sat_command->c.language.lang[1] == ASCII_FOR_H)) /* Chineese */ 738 else if ((sat_command->c.language.lang[0] == ASCII_FOR_Z) && (sat_command->c.language.lang[1] == ASCII_FOR_H)) /* Chineese */
739 { 739 {
740 /* Set as Chineese */ 740 /* Set as Chineese */
741 Mmi_Set2Language (CHINESE_LANGUAGE); 741 Mmi_Set2Language (CHINESE_LANGUAGE);
742 } 742 }
743 else 743 else
752 } 752 }
753 else if(sat_command->qual == LANG_NOTIFY_NON_SPEC_LANG_QUALIFIER) /* non-specified language notification*/ 753 else if(sat_command->qual == LANG_NOTIFY_NON_SPEC_LANG_QUALIFIER) /* non-specified language notification*/
754 { 754 {
755 Mmi_Set2Language(ENGLISH_LANGUAGE); 755 Mmi_Set2Language(ENGLISH_LANGUAGE);
756 } 756 }
757 sat_done (sat_command, sat_res); 757 sat_done (sat_command, sat_res);
758 break; 758 break;
759 #endif /*FF_MMI_R99_SAT_LANG*/ 759 #endif /*FF_MMI_R99_SAT_LANG*/
760 case SAT_DISPLAY_TEXT: 760 case SAT_DISPLAY_TEXT:
761 TRACE_EVENT("SAT_DISPLAY_TEXT"); 761 TRACE_EVENT("SAT_DISPLAY_TEXT");
762 /* 762 /*
763 * Text with normal priority will be displayed 763 * Text with normal priority will be displayed
913 #ifdef FF_MMI_SAT_ICON 913 #ifdef FF_MMI_SAT_ICON
914 /*Check if the SAT command has icon*/ 914 /*Check if the SAT command has icon*/
915 if(sat_command->c.sms.info.icon.qual != 0xFF) 915 if(sat_command->c.sms.info.icon.qual != 0xFF)
916 { 916 {
917 /* Copy the icon data to the editor attributes*/ 917 /* Copy the icon data to the editor attributes*/
918 data->editor_data.editor_attr.TitleIcon.width = sat_command->c.sms.info.iconInfo.width; 918 data->editor_data.editor_attr.TitleIcon.width = sat_command->c.sms.info.iconInfo.width;
919 data->editor_data.editor_attr.TitleIcon.height = sat_command->c.sms.info.iconInfo.height; 919 data->editor_data.editor_attr.TitleIcon.height = sat_command->c.sms.info.iconInfo.height;
920 920
921 icon_length = sat_command->c.sms.info.iconInfo.width * sat_command->c.sms.info.iconInfo.height; 921 icon_length = sat_command->c.sms.info.iconInfo.width * sat_command->c.sms.info.iconInfo.height;
922 922
923 data->editor_data.editor_attr.TitleIcon.data = (char *)ALLOC_MEMORY (icon_length); 923 data->editor_data.editor_attr.TitleIcon.data = (char *)ALLOC_MEMORY (icon_length);
924 924
925 memcpy(data->editor_data.editor_attr.TitleIcon.data, sat_command->c.sms.info.iconInfo.dst, icon_length); 925 memcpy(data->editor_data.editor_attr.TitleIcon.data, sat_command->c.sms.info.iconInfo.dst, icon_length);
926 data->editor_data.editor_attr.TitleIcon.isTitle = TRUE; 926 data->editor_data.editor_attr.TitleIcon.isTitle = TRUE;
927 927
928 /* Icon is self-explanatory. No need to display text for this case.*/ 928 /* Icon is self-explanatory. No need to display text for this case.*/
929 if(sat_command->c.sms.info.icon.qual == 0x00) 929 if(sat_command->c.sms.info.icon.qual == 0x00)
930 { 930 {
931 /* Icon is self-explanatory. Do not display the text*/ 931 /* Icon is self-explanatory. Do not display the text*/
932 data->editor_data.editor_attr.TitleIcon.selfExplanatory = TRUE; 932 data->editor_data.editor_attr.TitleIcon.selfExplanatory = TRUE;
933 } 933 }
934 934
935 /* Free the memory of icon data that we got through the SATK command*/ 935 /* Free the memory of icon data that we got through the SATK command*/
936 mfwFree((U8 *)sat_command->c.sms.info.iconInfo.dst, icon_length); 936 mfwFree((U8 *)sat_command->c.sms.info.iconInfo.dst, icon_length);
937 sat_command->c.sms.info.iconInfo.dst = NULL; 937 sat_command->c.sms.info.iconInfo.dst = NULL;
938 938
939 } 939 }
940 #endif 940 #endif
941 941
942 data->info_win = AUI_edit_Start(win, &data->editor_data); 942 data->info_win = AUI_edit_Start(win, &data->editor_data);
943 #else /* NEW_EDITOR */ 943 #else /* NEW_EDITOR */
944 data->editor_data.LeftSoftKey = TxtNull; 944 data->editor_data.LeftSoftKey = TxtNull;
945 data->editor_data.AlternateLeftSoftKey = TxtNull; 945 data->editor_data.AlternateLeftSoftKey = TxtNull;
946 data->editor_data.RightSoftKey = TxtNull; 946 data->editor_data.RightSoftKey = TxtNull;
979 AUI_edit_SetMode(&data->editor_data, ED_MODE_READONLY, ED_CURSOR_NONE); 979 AUI_edit_SetMode(&data->editor_data, ED_MODE_READONLY, ED_CURSOR_NONE);
980 AUI_edit_SetEvents(&data->editor_data, event, TRUE, FOREVER, (T_AUI_EDIT_CB)sat_info_cb); 980 AUI_edit_SetEvents(&data->editor_data, event, TRUE, FOREVER, (T_AUI_EDIT_CB)sat_info_cb);
981 // Dec 23, 2005 REF: OMAPS00062166 x0039928 981 // Dec 23, 2005 REF: OMAPS00062166 x0039928
982 // Fix: Initialize the editor buffer 982 // Fix: Initialize the editor buffer
983 AUI_edit_SetBuffer(&data->editor_data, ATB_DCS_ASCII, (UBYTE*)"", 1); 983 AUI_edit_SetBuffer(&data->editor_data, ATB_DCS_ASCII, (UBYTE*)"", 1);
984 984
985 // Shashi Shekar B.S., a0876501, Jan 16, 2006, DR: OMAPS00061460 985 // Shashi Shekar B.S., a0876501, Jan 16, 2006, DR: OMAPS00061460
986 #ifdef FF_MMI_SAT_ICON 986 #ifdef FF_MMI_SAT_ICON
987 /*Check if the SAT command has icon*/ 987 /*Check if the SAT command has icon*/
988 if(sat_command->c.ss.info.icon.qual != 0xFF) 988 if(sat_command->c.ss.info.icon.qual != 0xFF)
989 { 989 {
990 /* Copy the icon data to the editor attributes*/ 990 /* Copy the icon data to the editor attributes*/
991 data->editor_data.editor_attr.TitleIcon.width = sat_command->c.ss.info.iconInfo.width; 991 data->editor_data.editor_attr.TitleIcon.width = sat_command->c.ss.info.iconInfo.width;
992 data->editor_data.editor_attr.TitleIcon.height = sat_command->c.ss.info.iconInfo.height; 992 data->editor_data.editor_attr.TitleIcon.height = sat_command->c.ss.info.iconInfo.height;
993 993
994 icon_length = sat_command->c.ss.info.iconInfo.width * sat_command->c.ss.info.iconInfo.height; 994 icon_length = sat_command->c.ss.info.iconInfo.width * sat_command->c.ss.info.iconInfo.height;
995 995
996 data->editor_data.editor_attr.TitleIcon.data = (char *)ALLOC_MEMORY (icon_length); 996 data->editor_data.editor_attr.TitleIcon.data = (char *)ALLOC_MEMORY (icon_length);
997 997
998 memcpy(data->editor_data.editor_attr.TitleIcon.data, sat_command->c.ss.info.iconInfo.dst, icon_length); 998 memcpy(data->editor_data.editor_attr.TitleIcon.data, sat_command->c.ss.info.iconInfo.dst, icon_length);
999 data->editor_data.editor_attr.TitleIcon.isTitle = TRUE; 999 data->editor_data.editor_attr.TitleIcon.isTitle = TRUE;
1000 1000
1001 /* Icon is self-explanatory. No need to display text for this case.*/ 1001 /* Icon is self-explanatory. No need to display text for this case.*/
1002 if(sat_command->c.ss.info.icon.qual == 0x00) 1002 if(sat_command->c.ss.info.icon.qual == 0x00)
1003 { 1003 {
1004 /* Icon is self-explanatory. Do not display the text*/ 1004 /* Icon is self-explanatory. Do not display the text*/
1005 data->editor_data.editor_attr.TitleIcon.selfExplanatory = TRUE; 1005 data->editor_data.editor_attr.TitleIcon.selfExplanatory = TRUE;
1006 } 1006 }
1007 1007
1008 /* Free the memory of icon data that we got through the SATK command*/ 1008 /* Free the memory of icon data that we got through the SATK command*/
1009 mfwFree((U8 *)sat_command->c.ss.info.iconInfo.dst, icon_length); 1009 mfwFree((U8 *)sat_command->c.ss.info.iconInfo.dst, icon_length);
1010 sat_command->c.ss.info.iconInfo.dst = NULL; 1010 sat_command->c.ss.info.iconInfo.dst = NULL;
1011 1011
1012 } 1012 }
1013 #endif 1013 #endif
1014 1014
1015 data->info_win = AUI_edit_Start(win, &data->editor_data); 1015 data->info_win = AUI_edit_Start(win, &data->editor_data);
1016 1016
1017 #else /* NEW_EDITOR */ 1017 #else /* NEW_EDITOR */
1018 data->editor_data.LeftSoftKey = TxtNull; 1018 data->editor_data.LeftSoftKey = TxtNull;
1019 data->editor_data.AlternateLeftSoftKey = TxtNull; 1019 data->editor_data.AlternateLeftSoftKey = TxtNull;
1038 #ifdef FF_MMI_SAT_ICON 1038 #ifdef FF_MMI_SAT_ICON
1039 /*Check if the SAT command has icon*/ 1039 /*Check if the SAT command has icon*/
1040 if(sat_command->c.ss.info.icon.qual != 0xFF) 1040 if(sat_command->c.ss.info.icon.qual != 0xFF)
1041 { 1041 {
1042 /* Free the memory of icon data that we got through the SATK command*/ 1042 /* Free the memory of icon data that we got through the SATK command*/
1043 mfwFree((U8 *)sat_command->c.ss.info.iconInfo.dst, sat_command->c.ss.info.iconInfo.width * 1043 mfwFree((U8 *)sat_command->c.ss.info.iconInfo.dst, sat_command->c.ss.info.iconInfo.width *
1044 sat_command->c.ss.info.iconInfo.height); 1044 sat_command->c.ss.info.iconInfo.height);
1045 sat_command->c.ss.info.iconInfo.dst = NULL; 1045 sat_command->c.ss.info.iconInfo.dst = NULL;
1046 } 1046 }
1047 #endif 1047 #endif
1048 sat_res[SAT_ERR_INDEX] = SatResUnknownData; 1048 sat_res[SAT_ERR_INDEX] = SatResUnknownData;
1077 Solution : Editor dialog is destroyed on destroy event instead of timeout. */ 1077 Solution : Editor dialog is destroyed on destroy event instead of timeout. */
1078 AUI_edit_SetEvents(&data->editor_data, event, TRUE, FOREVER, (T_AUI_EDIT_CB)sat_info_cb); 1078 AUI_edit_SetEvents(&data->editor_data, event, TRUE, FOREVER, (T_AUI_EDIT_CB)sat_info_cb);
1079 // Dec 23, 2005 REF: OMAPS00062166 x0039928 1079 // Dec 23, 2005 REF: OMAPS00062166 x0039928
1080 // Fix: Initialize the editor buffer 1080 // Fix: Initialize the editor buffer
1081 AUI_edit_SetBuffer(&data->editor_data, ATB_DCS_ASCII, (UBYTE*)"", 1); 1081 AUI_edit_SetBuffer(&data->editor_data, ATB_DCS_ASCII, (UBYTE*)"", 1);
1082 1082
1083 // Shashi Shekar B.S., a0876501, Jan 16, 2006, DR: OMAPS00061460 1083 // Shashi Shekar B.S., a0876501, Jan 16, 2006, DR: OMAPS00061460
1084 #ifdef FF_MMI_SAT_ICON 1084 #ifdef FF_MMI_SAT_ICON
1085 /*Check if the SAT command has icon*/ 1085 /*Check if the SAT command has icon*/
1086 if(sat_command->c.cmd.info.icon.qual != 0xFF) 1086 if(sat_command->c.cmd.info.icon.qual != 0xFF)
1087 { 1087 {
1088 /* Copy the icon data to the editor attributes*/ 1088 /* Copy the icon data to the editor attributes*/
1089 data->editor_data.editor_attr.TitleIcon.width = sat_command->c.cmd.info.iconInfo.width; 1089 data->editor_data.editor_attr.TitleIcon.width = sat_command->c.cmd.info.iconInfo.width;
1090 data->editor_data.editor_attr.TitleIcon.height = sat_command->c.cmd.info.iconInfo.height; 1090 data->editor_data.editor_attr.TitleIcon.height = sat_command->c.cmd.info.iconInfo.height;
1091 1091
1092 icon_length = sat_command->c.cmd.info.iconInfo.width * sat_command->c.cmd.info.iconInfo.height; 1092 icon_length = sat_command->c.cmd.info.iconInfo.width * sat_command->c.cmd.info.iconInfo.height;
1093 1093
1094 data->editor_data.editor_attr.TitleIcon.data = (char *)ALLOC_MEMORY (icon_length); 1094 data->editor_data.editor_attr.TitleIcon.data = (char *)ALLOC_MEMORY (icon_length);
1095 1095
1096 memcpy(data->editor_data.editor_attr.TitleIcon.data, sat_command->c.cmd.info.iconInfo.dst, icon_length); 1096 memcpy(data->editor_data.editor_attr.TitleIcon.data, sat_command->c.cmd.info.iconInfo.dst, icon_length);
1097 data->editor_data.editor_attr.TitleIcon.isTitle = TRUE; 1097 data->editor_data.editor_attr.TitleIcon.isTitle = TRUE;
1098 1098
1099 /* Icon is self-explanatory. No need to display text for this case.*/ 1099 /* Icon is self-explanatory. No need to display text for this case.*/
1100 if(sat_command->c.cmd.info.icon.qual == 0x00) 1100 if(sat_command->c.cmd.info.icon.qual == 0x00)
1101 { 1101 {
1102 /* Icon is self-explanatory. Do not display the text*/ 1102 /* Icon is self-explanatory. Do not display the text*/
1103 data->editor_data.editor_attr.TitleIcon.selfExplanatory = TRUE; 1103 data->editor_data.editor_attr.TitleIcon.selfExplanatory = TRUE;
1104 } 1104 }
1105 1105
1106 /* Free the memory of icon data that we got through the SATK command*/ 1106 /* Free the memory of icon data that we got through the SATK command*/
1107 mfwFree((U8 *)sat_command->c.cmd.info.iconInfo.dst, icon_length); 1107 mfwFree((U8 *)sat_command->c.cmd.info.iconInfo.dst, icon_length);
1108 sat_command->c.cmd.info.iconInfo.dst = NULL; 1108 sat_command->c.cmd.info.iconInfo.dst = NULL;
1109 1109
1110 } 1110 }
1111 #endif 1111 #endif
1112 1112
1113 data->info_win = AUI_edit_Start(win, &data->editor_data); 1113 data->info_win = AUI_edit_Start(win, &data->editor_data);
1114 1114
1115 #else /* NEW_EDITOR */ 1115 #else /* NEW_EDITOR */
1116 data->editor_data.LeftSoftKey = TxtNull; 1116 data->editor_data.LeftSoftKey = TxtNull;
1117 data->editor_data.AlternateLeftSoftKey = TxtNull; 1117 data->editor_data.AlternateLeftSoftKey = TxtNull;
1169 data->call_setup_parameter->TextString = sat_create_TEXT_ASCIIZ(&sat_command->c.call.info); 1169 data->call_setup_parameter->TextString = sat_create_TEXT_ASCIIZ(&sat_command->c.call.info);
1170 //x0035544 Feb 07, 2006 DR:OMAPS00061467 1170 //x0035544 Feb 07, 2006 DR:OMAPS00061467
1171 //copy the icon data for the first alpha identifier 1171 //copy the icon data for the first alpha identifier
1172 #ifdef FF_MMI_SAT_ICON 1172 #ifdef FF_MMI_SAT_ICON
1173 if (sat_command->c.call.info.icon.qual != 0xFF) 1173 if (sat_command->c.call.info.icon.qual != 0xFF)
1174 { 1174 {
1175 data->call_setup_parameter->IconInfo.width = sat_command->c.call.info.iconInfo.width; 1175 data->call_setup_parameter->IconInfo.width = sat_command->c.call.info.iconInfo.width;
1176 data->call_setup_parameter->IconInfo.height= sat_command->c.call.info.iconInfo.height; 1176 data->call_setup_parameter->IconInfo.height= sat_command->c.call.info.iconInfo.height;
1177 icon_length = sat_command->c.call.info.iconInfo.width * sat_command->c.call.info.iconInfo.height; 1177 icon_length = sat_command->c.call.info.iconInfo.width * sat_command->c.call.info.iconInfo.height;
1178 if(sat_command->c.call.info.iconInfo.dst != NULL) 1178 if(sat_command->c.call.info.iconInfo.dst != NULL)
1179 { 1179 {
1180 data->call_setup_parameter->IconInfo.dst = (char *)ALLOC_MEMORY (icon_length); 1180 data->call_setup_parameter->IconInfo.dst = (char *)ALLOC_MEMORY (icon_length);
1181 memcpy(data->call_setup_parameter->IconInfo.dst, sat_command->c.call.info.iconInfo.dst, icon_length); 1181 memcpy(data->call_setup_parameter->IconInfo.dst, sat_command->c.call.info.iconInfo.dst, icon_length);
1182 } 1182 }
1183 if(sat_command->c.call.info.icon.qual == 0x00) 1183 if(sat_command->c.call.info.icon.qual == 0x00)
1184 { 1184 {
1185 /* Icon is self-explanatory. Do not display the text*/ 1185 /* Icon is self-explanatory. Do not display the text*/
1186 data->call_setup_parameter->IconInfo.selfExplanatory = TRUE; 1186 data->call_setup_parameter->IconInfo.selfExplanatory = TRUE;
1187 1187
1188 } 1188 }
1189 else 1189 else
1190 data->call_setup_parameter->IconInfo.selfExplanatory = FALSE; 1190 data->call_setup_parameter->IconInfo.selfExplanatory = FALSE;
1191 1191
1192 /* Free the memory of icon data that we got through the SATK command*/ 1192 /* Free the memory of icon data that we got through the SATK command*/
1193 if(sat_command->c.call.info.iconInfo.dst != NULL) 1193 if(sat_command->c.call.info.iconInfo.dst != NULL)
1194 { 1194 {
1195 mfwFree((U8 *)sat_command->c.call.info.iconInfo.dst, icon_length); 1195 mfwFree((U8 *)sat_command->c.call.info.iconInfo.dst, icon_length);
1196 sat_command->c.call.info.iconInfo.dst = NULL; 1196 sat_command->c.call.info.iconInfo.dst = NULL;
1197 } 1197 }
1198 } 1198 }
1199 else 1199 else
1200 { 1200 {
1201 data->call_setup_parameter->IconInfo.dst = NULL; 1201 data->call_setup_parameter->IconInfo.dst = NULL;
1202 data->call_setup_parameter->IconInfo.width = 0; 1202 data->call_setup_parameter->IconInfo.width = 0;
1203 data->call_setup_parameter->IconInfo.height = 0; 1203 data->call_setup_parameter->IconInfo.height = 0;
1204 data->call_setup_parameter->IconInfo.selfExplanatory = FALSE; 1204 data->call_setup_parameter->IconInfo.selfExplanatory = FALSE;
1205 } 1205 }
1206 1206
1207 #endif 1207 #endif
1208 } 1208 }
1209 else 1209 else
1210 { 1210 {
1211 /* provide an empty string; NULL would crash in info_dialog() */ 1211 /* provide an empty string; NULL would crash in info_dialog() */
1212 TRACE_EVENT("call.info contains no data!"); 1212 TRACE_EVENT("call.info contains no data!");
1232 (sat_command->c.call.info2.len NEQ (U8)-1)) 1232 (sat_command->c.call.info2.len NEQ (U8)-1))
1233 { 1233 {
1234 TRACE_EVENT("call.info2 contains data."); 1234 TRACE_EVENT("call.info2 contains data.");
1235 data->call_setup_parameter->TextString2 = sat_create_TEXT_ASCIIZ(&sat_command->c.call.info2); 1235 data->call_setup_parameter->TextString2 = sat_create_TEXT_ASCIIZ(&sat_command->c.call.info2);
1236 //x0035544 Feb 07, 2006 DR:OMAPS00061467 1236 //x0035544 Feb 07, 2006 DR:OMAPS00061467
1237 //copy the icon data for the second alpha identifier 1237 //copy the icon data for the second alpha identifier
1238 #ifdef FF_MMI_SAT_ICON 1238 #ifdef FF_MMI_SAT_ICON
1239 if (sat_command->c.call.info2.icon.qual != 0xFF) 1239 if (sat_command->c.call.info2.icon.qual != 0xFF)
1240 { 1240 {
1241 data->call_setup_parameter->IconInfo2.width= sat_command->c.call.info2.iconInfo.width; 1241 data->call_setup_parameter->IconInfo2.width= sat_command->c.call.info2.iconInfo.width;
1242 data->call_setup_parameter->IconInfo2.height = sat_command->c.call.info2.iconInfo.height; 1242 data->call_setup_parameter->IconInfo2.height = sat_command->c.call.info2.iconInfo.height;
1243 data->call_setup_parameter->IconInfo2.dst = data->call_setup_parameter->IconInfo.dst; 1243 data->call_setup_parameter->IconInfo2.dst = data->call_setup_parameter->IconInfo.dst;
1244 if(sat_command->c.call.info2.icon.qual == 0x00) 1244 if(sat_command->c.call.info2.icon.qual == 0x00)
1245 { 1245 {
1246 // Icon is self-explanatory. Do not display the text 1246 // Icon is self-explanatory. Do not display the text
1247 data->call_setup_parameter->IconInfo2.selfExplanatory = TRUE; 1247 data->call_setup_parameter->IconInfo2.selfExplanatory = TRUE;
1248 } 1248 }
1249 else 1249 else
1250 data->call_setup_parameter->IconInfo2.selfExplanatory = FALSE; 1250 data->call_setup_parameter->IconInfo2.selfExplanatory = FALSE;
1251 } 1251 }
1252 else 1252 else
1253 { 1253 {
1254 data->call_setup_parameter->IconInfo2.dst = NULL; 1254 data->call_setup_parameter->IconInfo2.dst = NULL;
1255 data->call_setup_parameter->IconInfo2.width = 0; 1255 data->call_setup_parameter->IconInfo2.width = 0;
1256 data->call_setup_parameter->IconInfo2.height = 0; 1256 data->call_setup_parameter->IconInfo2.height = 0;
1257 data->call_setup_parameter->IconInfo2.selfExplanatory = FALSE; 1257 data->call_setup_parameter->IconInfo2.selfExplanatory = FALSE;
1258 } 1258 }
1259 1259
1260 #endif 1260 #endif
1261 #ifdef NO_ASCIIZ/*MC SPR 940/2 Add tag to Unicode strings so info dialogue displays them correctly*/ 1261 #ifdef NO_ASCIIZ/*MC SPR 940/2 Add tag to Unicode strings so info dialogue displays them correctly*/
1262 sat_add_unicode_tag_if_needed(data->call_setup_parameter->TextString2); 1262 sat_add_unicode_tag_if_needed(data->call_setup_parameter->TextString2);
1263 #endif 1263 #endif
1264 } 1264 }
1265 else 1265 else
1482 //x0035544 Feb 07, 2006 DR:OMAPS00061467 ARUNKS 1482 //x0035544 Feb 07, 2006 DR:OMAPS00061467 ARUNKS
1483 //Release the icon data. 1483 //Release the icon data.
1484 #ifdef FF_MMI_SAT_ICON 1484 #ifdef FF_MMI_SAT_ICON
1485 if (data->call_setup_parameter->IconInfo.dst != NULL) 1485 if (data->call_setup_parameter->IconInfo.dst != NULL)
1486 { 1486 {
1487 FREE_MEMORY((U8 *)data->call_setup_parameter->IconInfo.dst, data->call_setup_parameter->IconInfo.width * 1487 FREE_MEMORY((U8 *)data->call_setup_parameter->IconInfo.dst, data->call_setup_parameter->IconInfo.width *
1488 data->call_setup_parameter->IconInfo.height); 1488 data->call_setup_parameter->IconInfo.height);
1489 data->call_setup_parameter->IconInfo.dst = NULL; 1489 data->call_setup_parameter->IconInfo.dst = NULL;
1490 } 1490 }
1491 1491
1492 #endif 1492 #endif
1493 FREE_MEMORY ((U8 *)data->call_setup_parameter, sizeof (T_SAT_call_setup_parameter)); 1493 FREE_MEMORY ((U8 *)data->call_setup_parameter, sizeof (T_SAT_call_setup_parameter));
1494 data->call_setup_parameter = NULL; 1494 data->call_setup_parameter = NULL;
1495 1495
1496 SEND_EVENT (sat_get_call_setup_win(), event, 0, NULL); /* destroy the window */ 1496 SEND_EVENT (sat_get_call_setup_win(), event, 0, NULL); /* destroy the window */
1575 { 1575 {
1576 mfwFree((U8 *)sat_command->c.text.iconInfo.dst, sat_command->c.text.iconInfo.width * 1576 mfwFree((U8 *)sat_command->c.text.iconInfo.dst, sat_command->c.text.iconInfo.width *
1577 sat_command->c.text.iconInfo.height); 1577 sat_command->c.text.iconInfo.height);
1578 sat_command->c.text.iconInfo.dst = NULL; 1578 sat_command->c.text.iconInfo.dst = NULL;
1579 } 1579 }
1580 1580
1581 #else 1581 #else
1582 addSatMessage(NULL); 1582 addSatMessage(NULL);
1583 #endif 1583 #endif
1584 1584
1585 /* 09-May-2006, x0045876 (OMAPS00064076 - By sending SatResUnKnownData, 1585 /* 09-May-2006, x0045876 (OMAPS00064076 - By sending SatResUnKnownData,
1586 TC 27.22.4.22.1 SEQ 1.3 was failing. It was changed due to integration problem) */ 1586 TC 27.22.4.22.1 SEQ 1.3 was failing. It was changed due to integration problem) */
1587 1587
1588 /* 16 -Jan -2007 x0043642 OMAPS00110997 */ 1588 /* 16 -Jan -2007 x0043642 OMAPS00110997 */
1589 #ifdef FF_MMI_SAT_ICON 1589 #ifdef FF_MMI_SAT_ICON
1590 if(sat_command->c.text.icon.qual != 0xFF) 1590 if(sat_command->c.text.icon.qual != 0xFF)
1591 { 1591 {
1592 sat_res[SAT_ERR_INDEX] = SatResUnknownData; 1592 sat_res[SAT_ERR_INDEX] = SatResUnknownData;
1593 sat_res[SAT_AI_INDEX] = SatResAiNoCause; 1593 sat_res[SAT_AI_INDEX] = SatResAiNoCause;
1594 sat_done(sat_command, sat_res); 1594 sat_done(sat_command, sat_res);
1595 1595
1596 } 1596 }
1597 1597
1598 else 1598 else
1599 #endif 1599 #endif
1600 { 1600 {
1601 1601
1602 sat_res[SAT_ERR_INDEX] = SatResSuccess; 1602 sat_res[SAT_ERR_INDEX] = SatResSuccess;
1603 sat_res[SAT_AI_INDEX] = SatResAiNoCause; 1603 sat_res[SAT_AI_INDEX] = SatResAiNoCause;
1604 sat_done(sat_command, sat_res); 1604 sat_done(sat_command, sat_res);
1605 } 1605 }
1606 } 1606 }
1619 } 1619 }
1620 txtBuf = (unsigned char *)ALLOC_MEMORY(length); 1620 txtBuf = (unsigned char *)ALLOC_MEMORY(length);
1621 1621
1622 if (!txtBuf) 1622 if (!txtBuf)
1623 { 1623 {
1624 sat_res[SAT_ERR_INDEX] = SatResImpossible; 1624 sat_res[SAT_ERR_INDEX] = SatResImpossible;
1625 sat_res[SAT_AI_INDEX] = SatResAiNoCause; 1625 sat_res[SAT_AI_INDEX] = SatResAiNoCause;
1626 sat_done(sat_command, sat_res); 1626 sat_done(sat_command, sat_res);
1627 } 1627 }
1628 else 1628 else
1629 { 1629 {
1653 } 1653 }
1654 /* END: 09-May-2006, x0045876 (OMAPS00064076) */ 1654 /* END: 09-May-2006, x0045876 (OMAPS00064076) */
1655 1655
1656 TRACE_EVENT_P3("NDH >>> inDcs : %02x, outDCS : %02x, Text Len : %d", inText->code, 1656 TRACE_EVENT_P3("NDH >>> inDcs : %02x, outDCS : %02x, Text Len : %d", inText->code,
1657 outDCS, inText->len); 1657 outDCS, inText->len);
1658 1658
1659 if ((inText->code == 0x00) || ((inText->code & 0x0c) == 0x00)) // GSM 7-Bit 1659 if ((inText->code == 0x00) || ((inText->code & 0x0c) == 0x00)) // GSM 7-Bit
1660 { 1660 {
1661 ATB_convert_String((char *)inText + inText->text, 1661 ATB_convert_String((char *)inText + inText->text,
1662 MFW_DCS_7bits, inText->len, 1662 MFW_DCS_7bits, inText->len,
1663 (char*)txtBuf, 1663 (char*)txtBuf,
1667 outDCS, length-1, 1667 outDCS, length-1,
1668 TRUE); 1668 TRUE);
1669 } 1669 }
1670 else if ((inText->code & 0x0c) == 0x04) // ASCII 8-Bit 1670 else if ((inText->code & 0x0c) == 0x04) // ASCII 8-Bit
1671 { 1671 {
1672 /* xreddymn OMAPS00080543 Jun-06-2006 1672 /* xreddymn OMAPS00080543 Jun-06-2006
1673 * Since long idle screen text display is now supported, we no longer 1673 * Since long idle screen text display is now supported, we no longer
1674 * need to check length of the message. 1674 * need to check length of the message.
1675 */ 1675 */
1676 #if 0 1676 #if 0
1677 if (outDCS == MFW_ASCII) 1677 if (outDCS == MFW_ASCII)
1678 { 1678 {
1679 if (inText->len > length-1) 1679 if (inText->len > length-1)
1680 { 1680 {
1682 //For Input DCS 0x00, we are handling long strings , so also for input DCS 0x04 we should handle long strings 1682 //For Input DCS 0x00, we are handling long strings , so also for input DCS 0x04 we should handle long strings
1683 #if 0 1683 #if 0
1684 /* 1684 /*
1685 ** Display Text too long ... Send failure TR to SIM 1685 ** Display Text too long ... Send failure TR to SIM
1686 */ 1686 */
1687 sat_res[SAT_ERR_INDEX] = SatResImpossible; 1687 sat_res[SAT_ERR_INDEX] = SatResImpossible;
1688 sat_res[SAT_AI_INDEX] = SatResAiNoCause; 1688 sat_res[SAT_AI_INDEX] = SatResAiNoCause;
1689 sat_done(sat_command, sat_res); 1689 sat_done(sat_command, sat_res);
1690 1690
1691 FREE_MEMORY((U8 *)txtBuf, MAX_CBMSG_LEN); 1691 FREE_MEMORY((U8 *)txtBuf, MAX_CBMSG_LEN);
1692 return; 1692 return;
1723 outDCS, length-1, 1723 outDCS, length-1,
1724 TRUE); 1724 TRUE);
1725 } 1725 }
1726 } 1726 }
1727 else // UCS2 1727 else // UCS2
1728 /* xreddymn OMAPS00080543 Jun-06-2006 1728 /* xreddymn OMAPS00080543 Jun-06-2006
1729 * Since long idle screen text display is now supported, we no longer 1729 * Since long idle screen text display is now supported, we no longer
1730 * need to check length of the message. 1730 * need to check length of the message.
1731 */ 1731 */
1732 /*10 Jul 2006, Ref OMAPS00077654, R.Prabakar(a0393213) 1732 /*10 Jul 2006, Ref OMAPS00077654, R.Prabakar(a0393213)
1733 Description : Cyrillic character support in MMI to pass GCF/PTCRB UCS2 TC (SATK) 1733 Description : Cyrillic character support in MMI to pass GCF/PTCRB UCS2 TC (SATK)
1734 Solution : #if 0 added for OMAPS00080543 moved*/ 1734 Solution : #if 0 added for OMAPS00080543 moved*/
1735 1735
1736 { 1736 {
1737 1737
1738 if (outDCS == MFW_DCS_UCS2) 1738 if (outDCS == MFW_DCS_UCS2)
1739 { 1739 {
1740 #if 0 1740 #if 0
1741 if (inText->len > MAX_CBMSG_LEN-1) 1741 if (inText->len > MAX_CBMSG_LEN-1)
1742 { 1742 {
1743 /* 1743 /*
1744 ** Display Text too long ... Send failure TR to SIM 1744 ** Display Text too long ... Send failure TR to SIM
1745 */ 1745 */
1746 sat_res[SAT_ERR_INDEX] = SatResImpossible; 1746 sat_res[SAT_ERR_INDEX] = SatResImpossible;
1747 sat_res[SAT_AI_INDEX] = SatResAiNoCause; 1747 sat_res[SAT_AI_INDEX] = SatResAiNoCause;
1748 sat_done(sat_command, sat_res); 1748 sat_done(sat_command, sat_res);
1749 1749
1750 FREE_MEMORY((U8 *)txtBuf, MAX_CBMSG_LEN); 1750 FREE_MEMORY((U8 *)txtBuf, MAX_CBMSG_LEN);
1751 return; 1751 return;
1752 } 1752 }
1753 else 1753 else
1754 #endif 1754 #endif
1755 { 1755 {
1756 /*Oct 13, 2006 OMAPS00095266 a0393213(R.Prabakar) 1756 /*Oct 13, 2006 OMAPS00095266 a0393213(R.Prabakar)
1757 Solution : Changes made as part of OMAPS00064076 undone. 1757 Solution : Changes made as part of OMAPS00064076 undone.
1758 Before we were appending 0x80 and 0x7F to the original string to describe that the following text is UNICODE. 1758 Before we were appending 0x80 and 0x7F to the original string to describe that the following text is UNICODE.
1759 Now since the attribute of the editor is already set to UNICODE, no need to append 0x80 and 0x7F*/ 1759 Now since the attribute of the editor is already set to UNICODE, no need to append 0x80 and 0x7F*/
1760 memcpy(txtBuf, (UBYTE*)inText+inText->text, inText->len); 1760 memcpy(txtBuf, (UBYTE*)inText+inText->text, inText->len);
1761 1761
1762 } 1762 }
1774 TRUE); 1774 TRUE);
1775 } 1775 }
1776 } 1776 }
1777 1777
1778 TRACE_EVENT_P1("NDH >>> txtBuf is : %s", txtBuf); 1778 TRACE_EVENT_P1("NDH >>> txtBuf is : %s", txtBuf);
1779 1779
1780 // 09-Dec-2005, Shashi Shekar B.S., a0876501, START 1780 // 09-Dec-2005, Shashi Shekar B.S., a0876501, START
1781 #ifdef FF_MMI_SAT_ICON 1781 #ifdef FF_MMI_SAT_ICON
1782 /*Check if the SAT command has icon*/ 1782 /*Check if the SAT command has icon*/
1783 if(sat_command->c.text.icon.qual != 0xFF) 1783 if(sat_command->c.text.icon.qual != 0xFF)
1784 { 1784 {
1790 /*Oct 13, 2006 OMAPS00095266 a0393213(R.Prabakar) 1790 /*Oct 13, 2006 OMAPS00095266 a0393213(R.Prabakar)
1791 Solution : Changes made as part of OMAPS00077654 undone. 1791 Solution : Changes made as part of OMAPS00077654 undone.
1792 Before we were setting the first two bytes to 0x80 and 0x7F and sending the text from the third byte. 1792 Before we were setting the first two bytes to 0x80 and 0x7F and sending the text from the third byte.
1793 Now we are not appending any string to the original string. So the buffer is sent right from the first byte*/ 1793 Now we are not appending any string to the original string. So the buffer is sent right from the first byte*/
1794 addSatMessage((char*)txtBuf, sat_command->c.text.iconInfo.width, sat_command->c.text.iconInfo.height, 1794 addSatMessage((char*)txtBuf, sat_command->c.text.iconInfo.width, sat_command->c.text.iconInfo.height,
1795 (char *)sat_command->c.text.iconInfo.dst, TRUE, SAT_ICON_IDLEMODE_TEXT); 1795 (char *)sat_command->c.text.iconInfo.dst, TRUE, SAT_ICON_IDLEMODE_TEXT);
1796 } 1796 }
1797 else 1797 else
1798 { 1798 {
1799 addSatMessage((char*)txtBuf, sat_command->c.text.iconInfo.width, sat_command->c.text.iconInfo.height, 1799 addSatMessage((char*)txtBuf, sat_command->c.text.iconInfo.width, sat_command->c.text.iconInfo.height,
1800 (char *)sat_command->c.text.iconInfo.dst, FALSE, SAT_ICON_IDLEMODE_TEXT); 1800 (char *)sat_command->c.text.iconInfo.dst, FALSE, SAT_ICON_IDLEMODE_TEXT);
1801 } 1801 }
1802 } 1802 }
1803 else 1803 else
1804 { 1804 {
1805 addSatMessage((char*)txtBuf, 0, 0, NULL, FALSE, SAT_ICON_NONE); 1805 addSatMessage((char*)txtBuf, 0, 0, NULL, FALSE, SAT_ICON_NONE);
1806 } 1806 }
1807 1807
1808 #else 1808 #else
1809 /* START: 09-May-2006, x0045876 (OMAPS00064076) */ 1809 /* START: 09-May-2006, x0045876 (OMAPS00064076) */
1810 addSatMessage((char*)txtBuf); 1810 addSatMessage((char*)txtBuf);
1811 /* END: 09-May-2006, x0045876 (OMAPS00064076) */ 1811 /* END: 09-May-2006, x0045876 (OMAPS00064076) */
1812 #endif 1812 #endif
1813 1813
1814 sat_res[SAT_ERR_INDEX] = SatResSuccess; 1814 sat_res[SAT_ERR_INDEX] = SatResSuccess;
1815 sat_res[SAT_AI_INDEX] = SatResAiNoCause; 1815 sat_res[SAT_AI_INDEX] = SatResAiNoCause;
1816 sat_done(sat_command, sat_res); 1816 sat_done(sat_command, sat_res);
1817 // 09-Dec-2005, Shashi Shekar B.S., a0876501, START 1817 // 09-Dec-2005, Shashi Shekar B.S., a0876501, START
1818 #ifdef FF_MMI_SAT_ICON 1818 #ifdef FF_MMI_SAT_ICON
1819 /* Free the memory of icon data that we got through the SATK command*/ 1819 /* Free the memory of icon data that we got through the SATK command*/
1934 1934
1935 *******************************************************************************/ 1935 *******************************************************************************/
1936 static int sim_toolkit_sat_cb ( T_MFW_EVENT event, T_MFW_SAT * sat_bits) 1936 static int sim_toolkit_sat_cb ( T_MFW_EVENT event, T_MFW_SAT * sat_bits)
1937 { 1937 {
1938 USHORT sat_event = 0; // RAVI 1938 USHORT sat_event = 0; // RAVI
1939 1939
1940 TRACE_EVENT("sim_toolkit_sat_cb"); 1940 TRACE_EVENT("sim_toolkit_sat_cb");
1941 /* 1941 /*
1942 * check whether a decoded message is available 1942 * check whether a decoded message is available
1943 */ 1943 */
1944 if ((sat_bits EQ NULL) || (g_sim_toolkit_data->win EQ NULL)) 1944 if ((sat_bits EQ NULL) || (g_sim_toolkit_data->win EQ NULL))
2130 /* install new setup menu */ 2130 /* install new setup menu */
2131 if (sat_get_setup_menu_win() NEQ NULL) 2131 if (sat_get_setup_menu_win() NEQ NULL)
2132 { 2132 {
2133 /* there's already an active SETUP MENU */ 2133 /* there's already an active SETUP MENU */
2134 SEND_EVENT (sat_get_setup_menu_win(), SAT_EXIT, 0, NULL); /* SETUP_MENU shall selfdestroy */ 2134 SEND_EVENT (sat_get_setup_menu_win(), SAT_EXIT, 0, NULL); /* SETUP_MENU shall selfdestroy */
2135 //xrashmic 16 Feb, 2006 OMAPS00064413 2135 //xrashmic 16 Feb, 2006 OMAPS00064413
2136 //List win should be set to null, when destroying the setup menu. 2136 //List win should be set to null, when destroying the setup menu.
2137 sat_set_setup_menu_listmnu_win(NULL); 2137 sat_set_setup_menu_listmnu_win(NULL);
2138 } 2138 }
2139 2139
2140 /* store command contents for later use in sat_setup_menu_start() */ 2140 /* store command contents for later use in sat_setup_menu_start() */
2167 if(sat_mainmenu_label) 2167 if(sat_mainmenu_label)
2168 { 2168 {
2169 sat_mainmenu_label[header_len] = '\0'; 2169 sat_mainmenu_label[header_len] = '\0';
2170 /*JVJ #1576 The SimToolkit Title string is set here */ 2170 /*JVJ #1576 The SimToolkit Title string is set here */
2171 res_set_SIMToolkit_title_string(sat_mainmenu_label); 2171 res_set_SIMToolkit_title_string(sat_mainmenu_label);
2172 } 2172 }
2173 } 2173 }
2174 /* unhide the SIM toolkit menu item in the main menu */ 2174 /* unhide the SIM toolkit menu item in the main menu */
2175 menuEnableSimMenu 2175 menuEnableSimMenu
2176 ( 2176 (
2177 "", /* label */ 2177 "", /* label */
2291 { 2291 {
2292 // Shashi Shekar B.S., a0876501, Jan 16, 2006, DR: OMAPS00061460 2292 // Shashi Shekar B.S., a0876501, Jan 16, 2006, DR: OMAPS00061460
2293 #ifdef FF_MMI_SAT_ICON 2293 #ifdef FF_MMI_SAT_ICON
2294 if (info_data->editor_data.editor_attr.TitleIcon.data != NULL) 2294 if (info_data->editor_data.editor_attr.TitleIcon.data != NULL)
2295 { 2295 {
2296 FREE_MEMORY((U8 *)info_data->editor_data.editor_attr.TitleIcon.data, info_data->editor_data.editor_attr.TitleIcon.width * 2296 FREE_MEMORY((U8 *)info_data->editor_data.editor_attr.TitleIcon.data, info_data->editor_data.editor_attr.TitleIcon.width *
2297 info_data->editor_data.editor_attr.TitleIcon.height); 2297 info_data->editor_data.editor_attr.TitleIcon.height);
2298 info_data->editor_data.editor_attr.TitleIcon.data = NULL; 2298 info_data->editor_data.editor_attr.TitleIcon.data = NULL;
2299 } 2299 }
2300 #endif 2300 #endif
2301 2301
2302 switch(reason) 2302 switch(reason)
2303 { 2303 {
2304 case INFO_KCD_RIGHT: 2304 case INFO_KCD_RIGHT:
2305 case INFO_KCD_HUP: 2305 case INFO_KCD_HUP:
2328 2328
2329 // Shashi Shekar B.S., a0876501, Jan 16, 2006, DR: OMAPS00061460 2329 // Shashi Shekar B.S., a0876501, Jan 16, 2006, DR: OMAPS00061460
2330 #ifdef FF_MMI_SAT_ICON 2330 #ifdef FF_MMI_SAT_ICON
2331 if (info_data->editor_data.editor_attr.TitleIcon.data != NULL) 2331 if (info_data->editor_data.editor_attr.TitleIcon.data != NULL)
2332 { 2332 {
2333 FREE_MEMORY((U8 *)info_data->editor_data.editor_attr.TitleIcon.data, info_data->editor_data.editor_attr.TitleIcon.width * 2333 FREE_MEMORY((U8 *)info_data->editor_data.editor_attr.TitleIcon.data, info_data->editor_data.editor_attr.TitleIcon.width *
2334 info_data->editor_data.editor_attr.TitleIcon.height); 2334 info_data->editor_data.editor_attr.TitleIcon.height);
2335 info_data->editor_data.editor_attr.TitleIcon.data = NULL; 2335 info_data->editor_data.editor_attr.TitleIcon.data = NULL;
2336 } 2336 }
2337 #endif 2337 #endif
2338 /* SPR#1428 - SH - New Editor changes */ 2338 /* SPR#1428 - SH - New Editor changes */
2339 #ifdef NEW_EDITOR 2339 #ifdef NEW_EDITOR
2340 sat_destroy_TEXT_ASCIIZ((char*)info_data->editor_data.TitleString); /* displayed text */ 2340 sat_destroy_TEXT_ASCIIZ((char*)info_data->editor_data.TitleString); /* displayed text */
2341 #else /* NEW_EDITOR */ 2341 #else /* NEW_EDITOR */
2342 sat_destroy_TEXT_ASCIIZ((char*)info_data->editor_data.TextString); /* displayed text */ 2342 sat_destroy_TEXT_ASCIIZ((char*)info_data->editor_data.TextString); /* displayed text */
2586 2586
2587 void sat_gsm_to_ascii (char * ascii_string, char * gsm_string, U16 length) 2587 void sat_gsm_to_ascii (char * ascii_string, char * gsm_string, U16 length)
2588 { 2588 {
2589 U16 i; 2589 U16 i;
2590 TRACE_FUNCTION("sat_gsm_to_ascii"); 2590 TRACE_FUNCTION("sat_gsm_to_ascii");
2591 // Jun 02, 2004 REF: CRR 15747 xpradipg-SASKEN 2591 // Jun 02, 2004 REF: CRR 15747 xpradipg-SASKEN
2592 // Fix: The string is terminated if the length is reached or if it encounters '0xFF' 2592 // Fix: The string is terminated if the length is reached or if it encounters '0xFF'
2593 // gsm_string[i]!=0xFF is introduced to check if the string is terminated prior to the specified length 2593 // gsm_string[i]!=0xFF is introduced to check if the string is terminated prior to the specified length
2594 for (i = 0; i < length && gsm_string[i]!= (char)0xFF; i++) 2594 for (i = 0; i < length && gsm_string[i]!= (char)0xFF; i++)
2595 ascii_string[i] = (char)g_gsm_ascii_table[(gsm_string[i] & (U8)0x7F)]; 2595 ascii_string[i] = (char)g_gsm_ascii_table[(gsm_string[i] & (U8)0x7F)];
2596 ascii_string[i] = '\0'; 2596 ascii_string[i] = '\0';
2620 switch (txt->code) 2620 switch (txt->code)
2621 { 2621 {
2622 case MFW_DCS_7bits: 2622 case MFW_DCS_7bits:
2623 temp_buffer = (UBYTE *)ALLOC_MEMORY(((txt->len*8)/7)+1); 2623 temp_buffer = (UBYTE *)ALLOC_MEMORY(((txt->len*8)/7)+1);
2624 utl_cvt7To8 ((UBYTE *)txt + txt->text, txt->len, temp_buffer,0); 2624 utl_cvt7To8 ((UBYTE *)txt + txt->text, txt->len, temp_buffer,0);
2625 2625
2626 //Sandip CQ 16292 . commented 2626 //Sandip CQ 16292 . commented
2627 /*sat_gsm_to_ascii (destination, (char *)temp_buffer, len);*/ 2627 /*sat_gsm_to_ascii (destination, (char *)temp_buffer, len);*/
2628 /*Sandip CQ 16292 . added this new function . Problem with current TI GSM 7-bit default function*/ 2628 /*Sandip CQ 16292 . added this new function . Problem with current TI GSM 7-bit default function*/
2629 DecodeGSM7ToASCII((unsigned char*)txt+txt->text, (unsigned char*) destination, txt->len); 2629 DecodeGSM7ToASCII((unsigned char*)txt+txt->text, (unsigned char*) destination, txt->len);
2630 FREE_MEMORY ((U8 *)temp_buffer, ((txt->len*8)/7)+1); 2630 FREE_MEMORY ((U8 *)temp_buffer, ((txt->len*8)/7)+1);
2631 break; 2631 break;
2663 2663
2664 $Returns: length of decoded string 2664 $Returns: length of decoded string
2665 2665
2666 $Arguments: encoded - GSM string pointer 2666 $Arguments: encoded - GSM string pointer
2667 plain - Buffer to hold the decoded ASCII string 2667 plain - Buffer to hold the decoded ASCII string
2668 Length - Length of the encoded GSM string 2668 Length - Length of the encoded GSM string
2669 2669
2670 2670
2671 *******************************************************************************/ 2671 *******************************************************************************/
2672 unsigned char DecodeGSM7ToASCII(U8 * encoded, U8 * plain, U8 Length) 2672 unsigned char DecodeGSM7ToASCII(U8 * encoded, U8 * plain, U8 Length)
2673 { 2673 {
2674 U8 bits, i, j; 2674 U8 bits, i, j;
2675 U8 c; 2675 U8 c;
2719 /*MC, SPR 940/2 uncommented function back in, and then rewrote it :)*/ 2719 /*MC, SPR 940/2 uncommented function back in, and then rewrote it :)*/
2720 void sat_TEXT_to_UCODE (char* destination, int size, T_SAT_TXT * txt) 2720 void sat_TEXT_to_UCODE (char* destination, int size, T_SAT_TXT * txt)
2721 { 2721 {
2722 2722
2723 UBYTE * temp_buffer; 2723 UBYTE * temp_buffer;
2724 2724
2725 char debug[50]; 2725 char debug[50];
2726 2726
2727 2727
2728 TRACE_EVENT("sat_TEXT_to_UCODE()"); 2728 TRACE_EVENT("sat_TEXT_to_UCODE()");
2729 2729