comparison src/ui/mfw/mfw_sms.h @ 188:92abb46dc1ba

src/ui/mfw/*.[ch]: rm trailing white space
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 19 Jan 2021 06:10:27 +0000
parents 67bfe9f274f6
children
comparison
equal deleted inserted replaced
187:a33dd8a5dcc9 188:92abb46dc1ba
16 Feb 28, 2007 OMAPS00109953 a0393213(R.Prabakar) 16 Feb 28, 2007 OMAPS00109953 a0393213(R.Prabakar)
17 Description : Need to be able to store SMS in SIM/ME 17 Description : Need to be able to store SMS in SIM/ME
18 Solution : Earlier, index alone was sufficient to identify messages. Now memory should also be taken care of. 18 Solution : Earlier, index alone was sufficient to identify messages. Now memory should also be taken care of.
19 19
20 Feb 07, 2006 DR: OMAPS00059261 x0pleela 20 Feb 07, 2006 DR: OMAPS00059261 x0pleela
21 Description: SMS is not forwarding STATUS reports that are read from SIM storage to ACI 21 Description: SMS is not forwarding STATUS reports that are read from SIM storage to ACI
22 Solution: Renamed "MFW_SMS_STATRPT_PENDG" to MFW_SMS_STATRPT in T_MFW_SMS_STAT 22 Solution: Renamed "MFW_SMS_STATRPT_PENDG" to MFW_SMS_STATRPT in T_MFW_SMS_STAT
23 Removed T_MFW_SMS_MT_TYPE enumeration added earlier 23 Removed T_MFW_SMS_MT_TYPE enumeration added earlier
24 24
25 Feb 01, 2006 DR: OMAPS00059261 x0pleela 25 Feb 01, 2006 DR: OMAPS00059261 x0pleela
26 Description: SMS is not forwarding STATUS reports that are read from SIM storage to ACI 26 Description: SMS is not forwarding STATUS reports that are read from SIM storage to ACI
27 Solution: Added new enumeration T_MFW_SMS_MSG_TYPE to suport message type MT, MO or STATUS REPORT. 27 Solution: Added new enumeration T_MFW_SMS_MSG_TYPE to suport message type MT, MO or STATUS REPORT.
28 Changed the name from T_MFW_SMS_MSG_TYPE to T_MFW_SMS_MT_TYPE 28 Changed the name from T_MFW_SMS_MSG_TYPE to T_MFW_SMS_MT_TYPE
29 Changed the type of new field sms_msg_type ( of type T_MFW_SMS_MT_TYPE) in the structure T_MFW_SMS_MT. 29 Changed the type of new field sms_msg_type ( of type T_MFW_SMS_MT_TYPE) in the structure T_MFW_SMS_MT.
30 Added new enumeration type "MFW_SMS_STATRPT_PENDG" into T_MFW_SMS_STAT 30 Added new enumeration type "MFW_SMS_STATRPT_PENDG" into T_MFW_SMS_STAT
31 31
32 Jan 30, 2006 DR: OMAPS00059261 x0pleela 32 Jan 30, 2006 DR: OMAPS00059261 x0pleela
33 Description: SMS is not forwarding STATUS reports that are read from SIM storage to ACI 33 Description: SMS is not forwarding STATUS reports that are read from SIM storage to ACI
34 Solution: Added new enumeration T_MFW_SMS_MSG_TYPE to suport message type either TEXT or STATUS REPORT. 34 Solution: Added new enumeration T_MFW_SMS_MSG_TYPE to suport message type either TEXT or STATUS REPORT.
35 Added new field sms_msg_type to the structure T_MFW_SMS_MT. 35 Added new field sms_msg_type to the structure T_MFW_SMS_MT.
36 36
37 Jan 20, 2006 REF: DRT OMAPS00053377 xdeepadh 37 Jan 20, 2006 REF: DRT OMAPS00053377 xdeepadh
38 Description: SMS Validity Period - using MMI - Failure, MS not able to set SMS validity 38 Description: SMS Validity Period - using MMI - Failure, MS not able to set SMS validity
39 Solution: Store the first octet too while querying. 39 Solution: Store the first octet too while querying.
40 40
41 Dec 15, 2005 REF: MMI-FIX-OMAPS00058684 x0035544 41 Dec 15, 2005 REF: MMI-FIX-OMAPS00058684 x0035544
42 Description: OMAPS00045726 / MMI-FIX-30439 Follow-Up : ifdef for FF Home Zone forgotten. 42 Description: OMAPS00045726 / MMI-FIX-30439 Follow-Up : ifdef for FF Home Zone forgotten.
43 Solution: Added Feature flag FF_HOMEZONE for the function sms_homezoneCBToggle(U8 Activate_CB) 43 Solution: Added Feature flag FF_HOMEZONE for the function sms_homezoneCBToggle(U8 Activate_CB)
44 in this file as it has got the prototype for this function 44 in this file as it has got the prototype for this function
45 45
46 Jun 14, 2005 REF: MMI-FIX-30439 x0018858 46 Jun 14, 2005 REF: MMI-FIX-30439 x0018858
47 Description: The homezone/cityzone tags were not being displayed properly. 47 Description: The homezone/cityzone tags were not being displayed properly.
48 Solution: Modified to save the tags properly in caches and also made the 48 Solution: Modified to save the tags properly in caches and also made the
49 appropriate modifications to update the same properly during mobility. 49 appropriate modifications to update the same properly during mobility.
50 50
51 x0018858 24 Mar, 2005 MMI-FIX-11321 51 x0018858 24 Mar, 2005 MMI-FIX-11321
52 Issue Description :- If the inbox is full and a new message is receivd, no indication is received. 52 Issue Description :- If the inbox is full and a new message is receivd, no indication is received.
53 Fix: Added support for handling indication when message box is full and 53 Fix: Added support for handling indication when message box is full and
54 there is a pending message. 54 there is a pending message.
55 55
56 Feb 16, 2005 REF: CRR MMI-SPR-27900 xnkulkar 56 Feb 16, 2005 REF: CRR MMI-SPR-27900 xnkulkar
57 Issue description: BMI: using the tool nowSMS the voicemail indication via sms does not work 57 Issue description: BMI: using the tool nowSMS the voicemail indication via sms does not work
58 Solution: Instead of identifying voice using addr[0] and pid, we use dcs. Also, messages belonging 58 Solution: Instead of identifying voice using addr[0] and pid, we use dcs. Also, messages belonging
59 to group "1100" are deleted when voicemail icon is displayed. 59 to group "1100" are deleted when voicemail icon is displayed.
60 60
61 Oct 04, 2004 REF: CRR 25519 Deepa M.D 61 Oct 04, 2004 REF: CRR 25519 Deepa M.D
62 Bug:Re-align structure members in MFW 62 Bug:Re-align structure members in MFW
63 Fix:Structure elements have been realigned to avoid the structure padding 63 Fix:Structure elements have been realigned to avoid the structure padding
64 64
65 * ***************** Version 27 ***************** 65 * ***************** Version 27 *****************
66 SPR 2260: Merged in bugfixes 1833, and 1830 66 SPR 2260: Merged in bugfixes 1833, and 1830
67 fom the 1.6.3 branch into this file. 67 fom the 1.6.3 branch into this file.
68 * 68 *
69 * ***************** Version 26 ***************** 69 * ***************** Version 26 *****************
70 * User: Vo Date: 22.03.00 Time: 17:44 70 * User: Vo Date: 22.03.00 Time: 17:44
71 * Updated in $/GSM/Condat/MS/SRC/MFW 71 * Updated in $/GSM/Condat/MS/SRC/MFW
72 * check voice mail status 72 * check voice mail status
73 * 73 *
74 * ***************** Version 24 ***************** 74 * ***************** Version 24 *****************
75 * User: Vo Date: 14.01.00 Time: 20:15 75 * User: Vo Date: 14.01.00 Time: 20:15
76 * Updated in $/GSM/Condat/MS/SRC/MFW 76 * Updated in $/GSM/Condat/MS/SRC/MFW
77 * Bug fix: Constant define: MAX_CBMSG_LEN 77 * Bug fix: Constant define: MAX_CBMSG_LEN
78 * New:change parameter "data" to "data + len" in function 78 * New:change parameter "data" to "data + len" in function
79 * sms_submit(), sms_store() and sms_change() 79 * sms_submit(), sms_store() and sms_change()
80 * 80 *
81 * ***************** Version 23 ***************** 81 * ***************** Version 23 *****************
82 * User: Vo Date: 2.12.99 Time: 13:15 82 * User: Vo Date: 2.12.99 Time: 13:15
83 * Updated in $/GSM/Condat/MS/SRC/MFW 83 * Updated in $/GSM/Condat/MS/SRC/MFW
84 * 84 *
85 * ***************** Version 22 ***************** 85 * ***************** Version 22 *****************
86 * User: Vo Date: 17.11.99 Time: 12:17 86 * User: Vo Date: 17.11.99 Time: 12:17
87 * Updated in $/GSM/Condat/MS/SRC/MFW 87 * Updated in $/GSM/Condat/MS/SRC/MFW
88 * change define NON_STRING_CHARACTER to NO_ASCIIZ 88 * change define NON_STRING_CHARACTER to NO_ASCIIZ
89 * 89 *
90 * ***************** Version 21 ***************** 90 * ***************** Version 21 *****************
91 * User: Vo Date: 17.11.99 Time: 11:00 91 * User: Vo Date: 17.11.99 Time: 11:00
92 * Updated in $/GSM/Condat/MS/SRC/MFW 92 * Updated in $/GSM/Condat/MS/SRC/MFW
93 * 1. Change constants: T_MFW_SMS_MEM 93 * 1. Change constants: T_MFW_SMS_MEM
94 * 2. New constants: T_MFW_SMS_MO_TYPE for submit message type 94 * 2. New constants: T_MFW_SMS_MO_TYPE for submit message type
95 * 3. New constants: T_MFW_SMS_CMD_IND for command indication 95 * 3. New constants: T_MFW_SMS_CMD_IND for command indication
96 * 4. #ifdef NON_STRING_CHARACTER - alpha uses data + len 96 * 4. #ifdef NON_STRING_CHARACTER - alpha uses data + len
97 * 5. Change interface: sms_submit() 97 * 5. Change interface: sms_submit()
98 * 6. New interface: sms_change_read_status() 98 * 6. New interface: sms_change_read_status()
99 * 99 *
100 * ***************** Version 20 ***************** 100 * ***************** Version 20 *****************
101 * User: Vo Date: 21.10.99 Time: 13:35 101 * User: Vo Date: 21.10.99 Time: 13:35
102 * Updated in $/GSM/Condat/MS/SRC/MFW 102 * Updated in $/GSM/Condat/MS/SRC/MFW
103 * change constant define 103 * change constant define
104 * 104 *
105 * ***************** Version 19 ***************** 105 * ***************** Version 19 *****************
106 * User: Es Date: 16.09.99 Time: 17:23 106 * User: Es Date: 16.09.99 Time: 17:23
107 * Updated in $/GSM/DEV/MS/SRC/MFW 107 * Updated in $/GSM/DEV/MS/SRC/MFW
108 * added TON/NPI fields to T_MFW_SMS_ADDR 108 * added TON/NPI fields to T_MFW_SMS_ADDR
109 * 109 *
110 * ***************** Version 18 ***************** 110 * ***************** Version 18 *****************
111 * User: Vo Date: 12.09.99 Time: 12:40 111 * User: Vo Date: 12.09.99 Time: 12:40
112 * Updated in $/GSM/DEV/MS/SRC/MFW 112 * Updated in $/GSM/DEV/MS/SRC/MFW
113 * change parameter 'dcs' in T_MFW_SMS_CB_INFO (adaptation to ACI) 113 * change parameter 'dcs' in T_MFW_SMS_CB_INFO (adaptation to ACI)
114 * 114 *
115 * ***************** Version 17 ***************** 115 * ***************** Version 17 *****************
116 * User: Vo Date: 10.09.99 Time: 19:53 116 * User: Vo Date: 10.09.99 Time: 19:53
117 * Updated in $/GSM/DEV/MS/SRC/MFW 117 * Updated in $/GSM/DEV/MS/SRC/MFW
118 * move sms_save_pref_lang() to sim_save_pref_lang() 118 * move sms_save_pref_lang() to sim_save_pref_lang()
119 * 119 *
120 * ***************** Version 16 ***************** 120 * ***************** Version 16 *****************
121 * User: Vo Date: 30.08.99 Time: 15:19 121 * User: Vo Date: 30.08.99 Time: 15:19
122 * Updated in $/GSM/DEV/MS/SRC/MFW 122 * Updated in $/GSM/DEV/MS/SRC/MFW
123 * new events 123 * new events
124 * 124 *
125 * ***************** Version 15 ***************** 125 * ***************** Version 15 *****************
126 * User: Vo Date: 26.07.99 Time: 14:32 126 * User: Vo Date: 26.07.99 Time: 14:32
127 * Updated in $/GSM/DEV/MS/SRC/MFW 127 * Updated in $/GSM/DEV/MS/SRC/MFW
128 * Add new definitions 128 * Add new definitions
129 * 129 *
130 * ***************** Version 14 ***************** 130 * ***************** Version 14 *****************
131 * User: Vo Date: 16.07.99 Time: 13:50 131 * User: Vo Date: 16.07.99 Time: 13:50
132 * Updated in $/GSM/DEV/MS/SRC/MFW 132 * Updated in $/GSM/DEV/MS/SRC/MFW
133 * 133 *
134 * ***************** Version 13 ***************** 134 * ***************** Version 13 *****************
135 * User: Vo Date: 16.07.99 Time: 10:39 135 * User: Vo Date: 16.07.99 Time: 10:39
136 * Updated in $/GSM/DEV/MS/SRC/MFW 136 * Updated in $/GSM/DEV/MS/SRC/MFW
137 * 137 *
138 * ***************** Version 12 ***************** 138 * ***************** Version 12 *****************
139 * User: Vo Date: 22.06.99 Time: 8:54 139 * User: Vo Date: 22.06.99 Time: 8:54
140 * Updated in $/GSM/DEV/MS/SRC/MFW 140 * Updated in $/GSM/DEV/MS/SRC/MFW
141 * 141 *
142 * ***************** Version 11 ***************** 142 * ***************** Version 11 *****************
143 * User: Vo Date: 1.06.99 Time: 14:47 143 * User: Vo Date: 1.06.99 Time: 14:47
144 * Updated in $/GSM/DEV/MS/SRC/MFW 144 * Updated in $/GSM/DEV/MS/SRC/MFW
145 * 145 *
146 * ***************** Version 10 ***************** 146 * ***************** Version 10 *****************
147 * User: Vo Date: 28.05.99 Time: 9:52 147 * User: Vo Date: 28.05.99 Time: 9:52
148 * Updated in $/GSM/DEV/MS/SRC/MFW 148 * Updated in $/GSM/DEV/MS/SRC/MFW
149 * 149 *
150 * ***************** Version 9 ***************** 150 * ***************** Version 9 *****************
151 * User: Vo Date: 21.05.99 Time: 13:51 151 * User: Vo Date: 21.05.99 Time: 13:51
152 * Updated in $/GSM/DEV/MS/SRC/MFW 152 * Updated in $/GSM/DEV/MS/SRC/MFW
153 * 153 *
154 * ***************** Version 8 ***************** 154 * ***************** Version 8 *****************
155 * User: Vo Date: 18.05.99 Time: 14:35 155 * User: Vo Date: 18.05.99 Time: 14:35
156 * Updated in $/GSM/DEV/MS/SRC/MFW 156 * Updated in $/GSM/DEV/MS/SRC/MFW
157 * 157 *
158 * ***************** Version 7 ***************** 158 * ***************** Version 7 *****************
159 * User: Vo Date: 25.03.99 Time: 16:34 159 * User: Vo Date: 25.03.99 Time: 16:34
160 * Updated in $/GSM/DEV/MS/SRC/MFW 160 * Updated in $/GSM/DEV/MS/SRC/MFW
161 * 161 *
162 * ***************** Version 6 ***************** 162 * ***************** Version 6 *****************
163 * User: Vo Date: 25.02.99 Time: 16:47 163 * User: Vo Date: 25.02.99 Time: 16:47
164 * Updated in $/GSM/DEV/MS/SRC/MFW 164 * Updated in $/GSM/DEV/MS/SRC/MFW
165 * 165 *
166 * ***************** Version 5 ***************** 166 * ***************** Version 5 *****************
167 * User: Vo Date: 17.02.99 Time: 20:00 167 * User: Vo Date: 17.02.99 Time: 20:00
168 * Updated in $/GSM/DEV/MS/SRC/MFW 168 * Updated in $/GSM/DEV/MS/SRC/MFW
169 * 169 *
170 * ***************** Version 4 ***************** 170 * ***************** Version 4 *****************
171 * User: Vo Date: 11.02.99 Time: 15:43 171 * User: Vo Date: 11.02.99 Time: 15:43
172 * Updated in $/GSM/DEV/MS/SRC/MFW 172 * Updated in $/GSM/DEV/MS/SRC/MFW
173 * 173 *
174 * ***************** Version 3 ***************** 174 * ***************** Version 3 *****************
175 * User: Vo Date: 11.02.99 Time: 12:54 175 * User: Vo Date: 11.02.99 Time: 12:54
176 * Updated in $/GSM/DEV/MS/SRC/MFW 176 * Updated in $/GSM/DEV/MS/SRC/MFW
177 * 177 *
178 * ***************** Version 2 ***************** 178 * ***************** Version 2 *****************
179 * User: Vo Date: 7.01.99 Time: 12:38 179 * User: Vo Date: 7.01.99 Time: 12:38
180 * Updated in $/GSM/DEV/MS/SRC/MFW 180 * Updated in $/GSM/DEV/MS/SRC/MFW
181 * 181 *
182 * ***************** Version 1 ***************** 182 * ***************** Version 1 *****************
183 * User: Vo Date: 30.12.98 Time: 11:49 183 * User: Vo Date: 30.12.98 Time: 11:49
184 * Created in $/GSM/DEV/MS/SRC/MFW 184 * Created in $/GSM/DEV/MS/SRC/MFW
185 185
186 */ 186 */
206 206
207 /*JVJ-SPR-1298. Provisional until a new option in the .inf file is inserted.*/ 207 /*JVJ-SPR-1298. Provisional until a new option in the .inf file is inserted.*/
208 208
209 #ifdef MMI_LITE 209 #ifdef MMI_LITE
210 /*SPR 2350, concat messagse of up to 500 chars should be allowed*/ 210 /*SPR 2350, concat messagse of up to 500 chars should be allowed*/
211 #define MAX_MSG_LEN_LITE (MAX_MSG_LEN_SGL*3) 211 #define MAX_MSG_LEN_LITE (MAX_MSG_LEN_SGL*3)
212 #define MAX_MSG_LEN MAX_MSG_LEN_LITE 212 #define MAX_MSG_LEN MAX_MSG_LEN_LITE
213 #else 213 #else
214 #define MAX_MSG_LEN 1601 //Max size for a SMS 214 #define MAX_MSG_LEN 1601 //Max size for a SMS
215 #endif 215 #endif
216 216
217 #define MAX_MSG_LEN_ARRAY (MAX_MSG_LEN+1) //Array size for SMS 217 #define MAX_MSG_LEN_ARRAY (MAX_MSG_LEN+1) //Array size for SMS
218 218
219 219
220 /*MC, chinese message lengths*/ 220 /*MC, chinese message lengths*/
221 #define MAX_MSG_LEN_SGL_CHI 140 //Max message length for single chinese message 221 #define MAX_MSG_LEN_SGL_CHI 140 //Max message length for single chinese message
222 #define MAX_MSG_LEN_CHI (MAX_MSG_LEN_SGL_CHI*10) 222 #define MAX_MSG_LEN_CHI (MAX_MSG_LEN_SGL_CHI*10)
223 223
224 224
225 /* 225 /*
226 * events are organised as bitmaps 226 * events are organised as bitmaps
227 */ 227 */
269 /* definition for status report request */ 269 /* definition for status report request */
270 #define SMS_NOT_REQUESTED_SRR 0 270 #define SMS_NOT_REQUESTED_SRR 0
271 #define SMS_REQUESTED_SRR 1 271 #define SMS_REQUESTED_SRR 1
272 272
273 /* SMS management functional return codes */ 273 /* SMS management functional return codes */
274 typedef enum 274 typedef enum
275 { 275 {
276 MFW_SMS_FAIL = -1, /* execution of command failed */ 276 MFW_SMS_FAIL = -1, /* execution of command failed */
277 MFW_SMS_OK /* execution of command completed */ 277 MFW_SMS_OK /* execution of command completed */
278 } T_MFW_SMS_RETURN; 278 } T_MFW_SMS_RETURN;
279 279
280 /* definition for message type */ 280 /* definition for message type */
281 typedef enum 281 typedef enum
282 { 282 {
283 MFW_NO_MESSAGE, 283 MFW_NO_MESSAGE,
284 MFW_SMS_MESSAGE, /* SMS message */ 284 MFW_SMS_MESSAGE, /* SMS message */
285 MFW_CB_MESSAGE /* cell broadcast message */ 285 MFW_CB_MESSAGE /* cell broadcast message */
286 } T_MFW_SMS_TYPE; 286 } T_MFW_SMS_TYPE;
287 287
288 /* definition for submit message type */ 288 /* definition for submit message type */
289 typedef enum 289 typedef enum
290 { 290 {
291 MFW_SMS_SUBMIT, 291 MFW_SMS_SUBMIT,
292 MFW_SMS_REPLY, 292 MFW_SMS_REPLY,
293 MFW_SMS_SUBMIT_SENT, 293 MFW_SMS_SUBMIT_SENT,
294 MFW_SMS_REPLY_SENT 294 MFW_SMS_REPLY_SENT
329 MFW_SMS_NO_CONC, 329 MFW_SMS_NO_CONC,
330 MFW_SMS_CONC_PART, 330 MFW_SMS_CONC_PART,
331 MFW_SMS_CONC_WHOLE 331 MFW_SMS_CONC_WHOLE
332 } 332 }
333 T_MFW_SMS_CONC_STAT ; 333 T_MFW_SMS_CONC_STAT ;
334 334
335 typedef struct 335 typedef struct
336 { 336 {
337 UBYTE year [MAX_SCTP_DIGITS]; 337 UBYTE year [MAX_SCTP_DIGITS];
338 UBYTE month [MAX_SCTP_DIGITS]; 338 UBYTE month [MAX_SCTP_DIGITS];
339 UBYTE day [MAX_SCTP_DIGITS]; 339 UBYTE day [MAX_SCTP_DIGITS];
342 UBYTE second [MAX_SCTP_DIGITS]; 342 UBYTE second [MAX_SCTP_DIGITS];
343 SHORT timezone; 343 SHORT timezone;
344 } T_MFW_SMS_SCTP; 344 } T_MFW_SMS_SCTP;
345 345
346 /* SMS command */ 346 /* SMS command */
347 typedef enum 347 typedef enum
348 { 348 {
349 SMS_ENQ_PREV_SMS, /* Starts an enquiry to previously sended short message */ 349 SMS_ENQ_PREV_SMS, /* Starts an enquiry to previously sended short message */
350 SMS_CAN_STAT_REQ, /* Cancels status report request */ 350 SMS_CAN_STAT_REQ, /* Cancels status report request */
351 SMS_DEL_PREV_SMS, /* Deletion of previous sended short message */ 351 SMS_DEL_PREV_SMS, /* Deletion of previous sended short message */
352 SMS_REQ_STAT_REP /* Requests status report for SMS message */ 352 SMS_REQ_STAT_REP /* Requests status report for SMS message */
353 } T_MFW_SMS_COMMAND; 353 } T_MFW_SMS_COMMAND;
354 354
355 typedef enum 355 typedef enum
356 { 356 {
357 MT_IND_IDX, /* message will be stored to memory and index will 357 MT_IND_IDX, /* message will be stored to memory and index will
358 be indicated (E_SMS_MT_RECEIVED) */ 358 be indicated (E_SMS_MT_RECEIVED) */
359 MT_IND_NO_IDX, /* message will be stored to memory and index will 359 MT_IND_NO_IDX, /* message will be stored to memory and index will
360 not be indicated */ 360 not be indicated */
361 MT_IND_MSG, /* message will be indicated to mmi (E_SMS_MT) 361 MT_IND_MSG, /* message will be indicated to mmi (E_SMS_MT)
362 but not stored to memory */ 362 but not stored to memory */
363 MT_CB_IDX, /* CB message will be stored to memory and index will 363 MT_CB_IDX, /* CB message will be stored to memory and index will
364 be indicated (E_SMS_CB_RECEIVED) */ 364 be indicated (E_SMS_CB_RECEIVED) */
365 MT_CB_NO_IDX, /* CB message will be stored to memory and index will 365 MT_CB_NO_IDX, /* CB message will be stored to memory and index will
366 not be indicated */ 366 not be indicated */
367 MT_CB_MSG, /* CB message will be indicated to mmi (E_SMS_CB) 367 MT_CB_MSG, /* CB message will be indicated to mmi (E_SMS_CB)
368 but not stored to memory */ 368 but not stored to memory */
369 /* Marcus: Issue 1170: 07/10/2002: Start */ 369 /* Marcus: Issue 1170: 07/10/2002: Start */
370 MT_IND_SRR_ON, /* Status reports are to be notified */ 370 MT_IND_SRR_ON, /* Status reports are to be notified */
404 UBYTE total; 404 UBYTE total;
405 UBYTE dummy; 405 UBYTE dummy;
406 } T_MFW_SMS_MEM_INFO; 406 } T_MFW_SMS_MEM_INFO;
407 407
408 /* SMS parameters */ 408 /* SMS parameters */
409 typedef struct 409 typedef struct
410 { 410 {
411 CHAR sc_addr[MAX_LEN]; /* service centre address */ 411 CHAR sc_addr[MAX_LEN]; /* service centre address */
412 SHORT prot_id; /* protocol identifier */ 412 SHORT prot_id; /* protocol identifier */
413 SHORT dcs; /* data coding scheme */ 413 SHORT dcs; /* data coding scheme */
414 UBYTE srr; /* status report request */ 414 UBYTE srr; /* status report request */
510 /* Status report for short message */ 510 /* Status report for short message */
511 typedef struct 511 typedef struct
512 { 512 {
513 SHORT msg_id; /* message type */ 513 SHORT msg_id; /* message type */
514 UBYTE msg_ref; /* message Reference */ 514 UBYTE msg_ref; /* message Reference */
515 T_MFW_SMS_ADDR addr; /* called party address */ 515 T_MFW_SMS_ADDR addr; /* called party address */
516 UBYTE status; /* status of sms message */ 516 UBYTE status; /* status of sms message */
517 T_MFW_SMS_SCTP rctp; /* received sms timestamp */ 517 T_MFW_SMS_SCTP rctp; /* received sms timestamp */
518 } T_MFW_SMS_STATUS; 518 } T_MFW_SMS_STATUS;
519 /***************************Go-lite Optimization changes Start***********************/ 519 /***************************Go-lite Optimization changes Start***********************/
520 //Oct 04, 2004 REF: CRR 25519 Deepa M.D 520 //Oct 04, 2004 REF: CRR 25519 Deepa M.D
521 //Structure elements (T_MFW_SMS_MSG)are realigned to avoid the structure padding 521 //Structure elements (T_MFW_SMS_MSG)are realigned to avoid the structure padding
522 typedef struct 522 typedef struct
523 { 523 {
524 T_MFW_SMS_STAT stat; 524 T_MFW_SMS_STAT stat;
525 T_MFW_SMS_STAT msg_type; /* voice mail status */ 525 T_MFW_SMS_STAT msg_type; /* voice mail status */
526 T_MFW_SMS_CONC_STAT concat_status;/*2260*/ 526 T_MFW_SMS_CONC_STAT concat_status;/*2260*/
527 T_MFW_SMS_ADDR addr; 527 T_MFW_SMS_ADDR addr;
528 T_MFW_SMS_SCTP rctp; 528 T_MFW_SMS_SCTP rctp;
529 SHORT index; 529 SHORT index;
543 T_MFW_SMS_MEM memory; /*a0393213 OMAPS00109953 - memory where the sms is stored (SIM or ME)*/ 543 T_MFW_SMS_MEM memory; /*a0393213 OMAPS00109953 - memory where the sms is stored (SIM or ME)*/
544 } T_MFW_SMS_IDX;/*structure passed in sms_copy_idx() function,used externally*/ 544 } T_MFW_SMS_IDX;/*structure passed in sms_copy_idx() function,used externally*/
545 // PATCH JPS 29.09 END 545 // PATCH JPS 29.09 END
546 546
547 /* 547 /*
548 * SMS event Parameter 548 * SMS event Parameter
549 */ 549 */
550 typedef union 550 typedef union
551 { 551 {
552 T_MFW_SMS_ID sms_id; 552 T_MFW_SMS_ID sms_id;
553 T_MFW_SMS_MT sms_mt; 553 T_MFW_SMS_MT sms_mt;
557 T_MFW_SMS_MEM_INFO sms_mem; 557 T_MFW_SMS_MEM_INFO sms_mem;
558 UBYTE index; 558 UBYTE index;
559 UBYTE cmd_ind; 559 UBYTE cmd_ind;
560 } T_MFW_SMS_PARA; 560 } T_MFW_SMS_PARA;
561 561
562 /*a0393213 OMAPS00109953 - SMS indexes are retrieved during bootup. 562 /*a0393213 OMAPS00109953 - SMS indexes are retrieved during bootup.
563 This enum shall be used to maintain the state machine during that process*/ 563 This enum shall be used to maintain the state machine during that process*/
564 typedef enum 564 typedef enum
565 { 565 {
566 MFW_SMS_INDEX_NOT_RETRIEVED=0, 566 MFW_SMS_INDEX_NOT_RETRIEVED=0,
567 MFW_SMS_SIM_INDEX_RETRIEVING, 567 MFW_SMS_SIM_INDEX_RETRIEVING,
568 MFW_SMS_FFS_INDEX_RETRIEVING, 568 MFW_SMS_FFS_INDEX_RETRIEVING,
569 MFW_SMS_INDEX_RETRIEVED 569 MFW_SMS_INDEX_RETRIEVED
570 } T_MFW_SMS_INDEX_RETRIEVE_STATE; 570 } T_MFW_SMS_INDEX_RETRIEVE_STATE;
571 571
572 /*a0393213 OMAPS00109953 - this function updates the SMS memory details of SIM/ME*/ 572 /*a0393213 OMAPS00109953 - this function updates the SMS memory details of SIM/ME*/
573 static void sms_update_memory(); 573 static void sms_update_memory();
574 574
575 EXTERN void sms_init (void); 575 EXTERN void sms_init (void);
576 EXTERN void sms_exit (void); 576 EXTERN void sms_exit (void);
577 EXTERN T_MFW_HND sms_create (T_MFW_HND hWin, 577 EXTERN T_MFW_HND sms_create (T_MFW_HND hWin,
578 T_MFW_EVENT event, 578 T_MFW_EVENT event,
579 T_MFW_CB cbfunc); 579 T_MFW_CB cbfunc);
580 EXTERN T_MFW_RES sms_delete (T_MFW_HND h); 580 EXTERN T_MFW_RES sms_delete (T_MFW_HND h);
581 581
582 #ifdef NO_ASCIIZ 582 #ifdef NO_ASCIIZ
583 583
584 #if defined (FF_WAP) && defined (FF_GPF_TCPIP) 584 #if defined (FF_WAP) && defined (FF_GPF_TCPIP)
585 EXTERN T_MFW sms_submit (T_MFW_SMS_MO_TYPE type, 585 EXTERN T_MFW sms_submit (T_MFW_SMS_MO_TYPE type,
586 CHAR *dest_addr, 586 CHAR *dest_addr,
587 UBYTE *msg, 587 UBYTE *msg,
588 USHORT msg_len, 588 USHORT msg_len,
589 CHAR *sca); 589 CHAR *sca);
590 //Dec 14, 2005 REF: MMI-FIX-OMAPS00058684 x0035544 590 //Dec 14, 2005 REF: MMI-FIX-OMAPS00058684 x0035544
591 #ifdef FF_HOMEZONE 591 #ifdef FF_HOMEZONE
592 //Jun 14, 2005 REF: MMI-FIX-30439 x0018858 592 //Jun 14, 2005 REF: MMI-FIX-30439 x0018858
593 EXTERN void sms_homezoneCBToggle(U8 Activate); 593 EXTERN void sms_homezoneCBToggle(U8 Activate);
594 #endif 594 #endif
595 EXTERN T_MFW sms_submit_wap_sms(T_MFW_SMS_MO_TYPE type, 595 EXTERN T_MFW sms_submit_wap_sms(T_MFW_SMS_MO_TYPE type,
596 CHAR *dest_addr, 596 CHAR *dest_addr,
597 T_MFW_PHB_TON addr_type, 597 T_MFW_PHB_TON addr_type,
598 UBYTE *msg, 598 UBYTE *msg,
599 USHORT msg_len, 599 USHORT msg_len,
600 CHAR *sca, 600 CHAR *sca,
601 T_MFW_PHB_TON sc_type); /* SPR#2086 - SH - Added */ 601 T_MFW_PHB_TON sc_type); /* SPR#2086 - SH - Added */
602 #else 602 #else
603 603
604 EXTERN T_MFW sms_submit (T_MFW_SMS_MO_TYPE type, 604 EXTERN T_MFW sms_submit (T_MFW_SMS_MO_TYPE type,
605 CHAR *dest_addr, 605 CHAR *dest_addr,
606 UBYTE *msg, 606 UBYTE *msg,
607 USHORT msg_len, 607 USHORT msg_len,
608 CHAR *sca); 608 CHAR *sca);
609 #endif 609 #endif
610 EXTERN T_MFW sms_store (T_MFW_SMS_MO_TYPE type, 610 EXTERN T_MFW sms_store (T_MFW_SMS_MO_TYPE type,
611 CHAR *addr, 611 CHAR *addr,
612 UBYTE *msg, 612 UBYTE *msg,
613 USHORT msg_len, 613 USHORT msg_len,
614 CHAR *sca); 614 CHAR *sca);
615 EXTERN T_MFW sms_change (CHAR *addr, 615 EXTERN T_MFW sms_change (CHAR *addr,
616 UBYTE *msg, 616 UBYTE *msg,
617 USHORT msg_len, 617 USHORT msg_len,
618 UBYTE index, 618 UBYTE index,
619 T_MFW_SMS_MEM sms_memory /*a0393213 OMAPS00109953 - memory added as parameter*/ 619 T_MFW_SMS_MEM sms_memory /*a0393213 OMAPS00109953 - memory added as parameter*/
620 ); 620 );
621 #else 621 #else
622 622
623 #if defined (FF_WAP) && defined (FF_GPF_TCPIP) 623 #if defined (FF_WAP) && defined (FF_GPF_TCPIP)
624 624
625 EXTERN T_MFW sms_submit (T_MFW_SMS_MO_TYPE type, 625 EXTERN T_MFW sms_submit (T_MFW_SMS_MO_TYPE type,
626 CHAR *dest_addr, 626 CHAR *dest_addr,
627 T_MFW_PHB_TON addr_type, 627 T_MFW_PHB_TON addr_type,
628 UBYTE *msg, USHORT msg_len, 628 UBYTE *msg, USHORT msg_len,
629 CHAR *sca, 629 CHAR *sca,
630 T_MFW_PHB_TON sc_type); // sbh added length, see function itself 630 T_MFW_PHB_TON sc_type); // sbh added length, see function itself
634 UBYTE *msg, 634 UBYTE *msg,
635 USHORT msg_len, 635 USHORT msg_len,
636 CHAR *sca, 636 CHAR *sca,
637 T_MFW_PHB_TON sc_type); /* SPR#2086 - SH - Added */ 637 T_MFW_PHB_TON sc_type); /* SPR#2086 - SH - Added */
638 #else 638 #else
639 EXTERN T_MFW sms_submit (T_MFW_SMS_MO_TYPE type, 639 EXTERN T_MFW sms_submit (T_MFW_SMS_MO_TYPE type,
640 CHAR *dest_addr, 640 CHAR *dest_addr,
641 UBYTE *msg, USHORT msg_len, 641 UBYTE *msg, USHORT msg_len,
642 CHAR *sca); // sbh added length, see function itself 642 CHAR *sca); // sbh added length, see function itself
643 #endif 643 #endif
644 644
645 EXTERN T_MFW sms_store (T_MFW_SMS_MO_TYPE type, 645 EXTERN T_MFW sms_store (T_MFW_SMS_MO_TYPE type,
646 CHAR *addr, 646 CHAR *addr,
647 UBYTE *msg, USHORT msg_len, 647 UBYTE *msg, USHORT msg_len,
648 CHAR *sca); // sbh added length, see function itself 648 CHAR *sca); // sbh added length, see function itself
649 EXTERN T_MFW sms_change (CHAR *addr, 649 EXTERN T_MFW sms_change (CHAR *addr,
650 UBYTE *msg, USHORT msg_len, 650 UBYTE *msg, USHORT msg_len,
651 UBYTE index, 651 UBYTE index,
652 T_MFW_SMS_MEM sms_memory /*a0393213 OMAPS00109953 - memory added as parameter*/ 652 T_MFW_SMS_MEM sms_memory /*a0393213 OMAPS00109953 - memory added as parameter*/
653 ); // sbh added length, see function itself 653 ); // sbh added length, see function itself
654 #endif 654 #endif
655 EXTERN T_MFW sms_stored_submit (CHAR *dest_addr, 655 EXTERN T_MFW sms_stored_submit (CHAR *dest_addr,
656 UBYTE index); 656 UBYTE index);
657 /*SPR 2260, added concatenated status parameter*/ 657 /*SPR 2260, added concatenated status parameter*/
658 EXTERN T_MFW sms_store_new_msg_info(UBYTE index, T_ACI_CMGL_SM* sm, UBYTE update_mem, T_CONC_ASSEMBLY_RETURN conc_stat 658 EXTERN T_MFW sms_store_new_msg_info(UBYTE index, T_ACI_CMGL_SM* sm, UBYTE update_mem, T_CONC_ASSEMBLY_RETURN conc_stat
659 ,T_SMS_TYPE received_sms_type, T_MFW_SMS_MEM mem); /*a0393213 OMAPS00109953 - memory added as parameter*/ 659 ,T_SMS_TYPE received_sms_type, T_MFW_SMS_MEM mem); /*a0393213 OMAPS00109953 - memory added as parameter*/
660 660
661 661
662 EXTERN T_MFW sms_send_new_msg_ind(T_ACI_CMGL_SM* sm,UBYTE index, UBYTE mem, UBYTE received_sms_type, UBYTE concatenated_status); 662 EXTERN T_MFW sms_send_new_msg_ind(T_ACI_CMGL_SM* sm,UBYTE index, UBYTE mem, UBYTE received_sms_type, UBYTE concatenated_status);
663 663
664 EXTERN T_MFW sms_set_pref_memory (UBYTE mem); 664 EXTERN T_MFW sms_set_pref_memory (UBYTE mem);
665 EXTERN T_MFW sms_read (UBYTE type, UBYTE index 665 EXTERN T_MFW sms_read (UBYTE type, UBYTE index
666 ,T_MFW_SMS_MEM mem); /*a0393213 OMAPS00109953 - memory added as parameter*/ 666 ,T_MFW_SMS_MEM mem); /*a0393213 OMAPS00109953 - memory added as parameter*/
667 667
668 EXTERN T_MFW sms_mt_store (T_MFW_SMS_MT *mt_msg, 668 EXTERN T_MFW sms_mt_store (T_MFW_SMS_MT *mt_msg,
669 T_MFW_SMS_STAT stat); 669 T_MFW_SMS_STAT stat);
670 EXTERN T_MFW sms_msg_delete (UBYTE index 670 EXTERN T_MFW sms_msg_delete (UBYTE index
671 , T_MFW_SMS_MEM sms_memory); /*a0393213 OMAPS00109953 - memory added as parameter*/ 671 , T_MFW_SMS_MEM sms_memory); /*a0393213 OMAPS00109953 - memory added as parameter*/
672 672
673 EXTERN T_MFW sms_get_memset (void); 673 EXTERN T_MFW sms_get_memset (void);
674 EXTERN T_MFW sms_command (CHAR *dest_addr, 674 EXTERN T_MFW sms_command (CHAR *dest_addr,
675 UBYTE command, 675 UBYTE command,
676 UBYTE msg_ref); 676 UBYTE msg_ref);
677 EXTERN T_MFW sms_parameter (T_MFW_SMS_INFO *sms_info, BOOL fGet); 677 EXTERN T_MFW sms_parameter (T_MFW_SMS_INFO *sms_info, BOOL fGet);
678 EXTERN T_MFW sms_set_SrvCntr_number (T_MFW_SMS_INFO *sms_info); 678 EXTERN T_MFW sms_set_SrvCntr_number (T_MFW_SMS_INFO *sms_info);
679 EXTERN T_MFW sms_set_dcs_number (T_MFW_SMS_INFO *sms_info);//GW Added 679 EXTERN T_MFW sms_set_dcs_number (T_MFW_SMS_INFO *sms_info);//GW Added
680 EXTERN T_MFW sms_set_val_period (T_MFW_SMS_INFO *sms_info);//GW Added 680 EXTERN T_MFW sms_set_val_period (T_MFW_SMS_INFO *sms_info);//GW Added
681 EXTERN T_MFW sms_set_cell_broadcast_info (UBYTE mode, 681 EXTERN T_MFW sms_set_cell_broadcast_info (UBYTE mode,
682 T_MFW_SMS_CB_INFO *sms_cb_info); 682 T_MFW_SMS_CB_INFO *sms_cb_info);
683 EXTERN T_MFW sms_get_cell_broadcast_info (T_MFW_SMS_CB_INFO *sms_cb_info); 683 EXTERN T_MFW sms_get_cell_broadcast_info (T_MFW_SMS_CB_INFO *sms_cb_info);
684 EXTERN void sms_set_mt_ind (T_MFW_SMS_MT_IND sms_ind); 684 EXTERN void sms_set_mt_ind (T_MFW_SMS_MT_IND sms_ind);
685 EXTERN SHORT sms_message_count (T_MFW_SMS_STAT stat); 685 EXTERN SHORT sms_message_count (T_MFW_SMS_STAT stat);
686 EXTERN SHORT sms_message_list (T_MFW_SMS_STAT stat, 686 EXTERN SHORT sms_message_list (T_MFW_SMS_STAT stat,
687 T_MFW_SMS_MSG * msg_list, 687 T_MFW_SMS_MSG * msg_list,
688 int max_entries); 688 int max_entries);
689 // PATCH JPS 29.09: add function equivalent of sms_message_list bu more economic 689 // PATCH JPS 29.09: add function equivalent of sms_message_list bu more economic
690 EXTERN SHORT sms_index_list (T_MFW_SMS_STAT stat, 690 EXTERN SHORT sms_index_list (T_MFW_SMS_STAT stat,
691 T_MFW_SMS_IDX * msg_list, 691 T_MFW_SMS_IDX * msg_list,
692 int max_entries); 692 int max_entries);
693 // PATCH JPS 29.09 END 693 // PATCH JPS 29.09 END
694 /*a0393213 OMAPS00109953 - memory added as parameter*/ 694 /*a0393213 OMAPS00109953 - memory added as parameter*/
695 EXTERN T_MFW sms_change_read_status (SHORT index 695 EXTERN T_MFW sms_change_read_status (SHORT index