FreeCalypso > hg > tcs211-c139
comparison g23m/condat/ms/src/mfw/mfw_sms.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 /* | |
2 +--------------------------------------------------------------------+ | |
3 | PROJECT: MMI-Framework (8417) $Workfile:: mfw_sms.h $| | |
4 | $Author:: Vo $Revision:: 1 $| | |
5 | CREATED: 21.12.98 $Modtime:: 21.03.00 10:48 $| | |
6 | STATE : code | | |
7 +--------------------------------------------------------------------+ | |
8 | |
9 MODULE : MFW_SMS | |
10 | |
11 PURPOSE : This modul contains the definition for SMS management. | |
12 | |
13 | |
14 $History:: mfw_sms.h $ | |
15 | |
16 Feb 07, 2006 DR: OMAPS00059261 x0pleela | |
17 Description: SMS is not forwarding STATUS reports that are read from SIM storage to ACI | |
18 Solution: Renamed "MFW_SMS_STATRPT_PENDG" to MFW_SMS_STATRPT in T_MFW_SMS_STAT | |
19 Removed T_MFW_SMS_MT_TYPE enumeration added earlier | |
20 | |
21 Feb 01, 2006 DR: OMAPS00059261 x0pleela | |
22 Description: SMS is not forwarding STATUS reports that are read from SIM storage to ACI | |
23 Solution: Added new enumeration T_MFW_SMS_MSG_TYPE to suport message type MT, MO or STATUS REPORT. | |
24 Changed the name from T_MFW_SMS_MSG_TYPE to T_MFW_SMS_MT_TYPE | |
25 Changed the type of new field sms_msg_type ( of type T_MFW_SMS_MT_TYPE) in the structure T_MFW_SMS_MT. | |
26 Added new enumeration type "MFW_SMS_STATRPT_PENDG" into T_MFW_SMS_STAT | |
27 | |
28 Jan 30, 2006 DR: OMAPS00059261 x0pleela | |
29 Description: SMS is not forwarding STATUS reports that are read from SIM storage to ACI | |
30 Solution: Added new enumeration T_MFW_SMS_MSG_TYPE to suport message type either TEXT or STATUS REPORT. | |
31 Added new field sms_msg_type to the structure T_MFW_SMS_MT. | |
32 | |
33 Jan 20, 2006 REF: DRT OMAPS00053377 xdeepadh | |
34 Description: SMS Validity Period - using MMI - Failure, MS not able to set SMS validity | |
35 Solution: Store the first octet too while querying. | |
36 | |
37 Dec 15, 2005 REF: MMI-FIX-OMAPS00058684 x0035544 | |
38 Description: OMAPS00045726 / MMI-FIX-30439 Follow-Up : ifdef for FF Home Zone forgotten. | |
39 Solution: Added Feature flag FF_HOMEZONE for the function sms_homezoneCBToggle(U8 Activate_CB) | |
40 in this file as it has got the prototype for this function | |
41 | |
42 Jun 14, 2005 REF: MMI-FIX-30439 x0018858 | |
43 Description: The homezone/cityzone tags were not being displayed properly. | |
44 Solution: Modified to save the tags properly in caches and also made the | |
45 appropriate modifications to update the same properly during mobility. | |
46 | |
47 x0018858 24 Mar, 2005 MMI-FIX-11321 | |
48 Issue Description :- If the inbox is full and a new message is receivd, no indication is received. | |
49 Fix: Added support for handling indication when message box is full and | |
50 there is a pending message. | |
51 | |
52 Feb 16, 2005 REF: CRR MMI-SPR-27900 xnkulkar | |
53 Issue description: BMI: using the tool nowSMS the voicemail indication via sms does not work | |
54 Solution: Instead of identifying voice using addr[0] and pid, we use dcs. Also, messages belonging | |
55 to group "1100" are deleted when voicemail icon is displayed. | |
56 | |
57 Oct 04, 2004 REF: CRR 25519 Deepa M.D | |
58 Bug:Re-align structure members in MFW | |
59 Fix:Structure elements have been realigned to avoid the structure padding | |
60 | |
61 * ***************** Version 27 ***************** | |
62 SPR 2260: Merged in bugfixes 1833, and 1830 | |
63 fom the 1.6.3 branch into this file. | |
64 * | |
65 * ***************** Version 26 ***************** | |
66 * User: Vo Date: 22.03.00 Time: 17:44 | |
67 * Updated in $/GSM/Condat/MS/SRC/MFW | |
68 * check voice mail status | |
69 * | |
70 * ***************** Version 24 ***************** | |
71 * User: Vo Date: 14.01.00 Time: 20:15 | |
72 * Updated in $/GSM/Condat/MS/SRC/MFW | |
73 * Bug fix: Constant define: MAX_CBMSG_LEN | |
74 * New:change parameter "data" to "data + len" in function | |
75 * sms_submit(), sms_store() and sms_change() | |
76 * | |
77 * ***************** Version 23 ***************** | |
78 * User: Vo Date: 2.12.99 Time: 13:15 | |
79 * Updated in $/GSM/Condat/MS/SRC/MFW | |
80 * | |
81 * ***************** Version 22 ***************** | |
82 * User: Vo Date: 17.11.99 Time: 12:17 | |
83 * Updated in $/GSM/Condat/MS/SRC/MFW | |
84 * change define NON_STRING_CHARACTER to NO_ASCIIZ | |
85 * | |
86 * ***************** Version 21 ***************** | |
87 * User: Vo Date: 17.11.99 Time: 11:00 | |
88 * Updated in $/GSM/Condat/MS/SRC/MFW | |
89 * 1. Change constants: T_MFW_SMS_MEM | |
90 * 2. New constants: T_MFW_SMS_MO_TYPE for submit message type | |
91 * 3. New constants: T_MFW_SMS_CMD_IND for command indication | |
92 * 4. #ifdef NON_STRING_CHARACTER - alpha uses data + len | |
93 * 5. Change interface: sms_submit() | |
94 * 6. New interface: sms_change_read_status() | |
95 * | |
96 * ***************** Version 20 ***************** | |
97 * User: Vo Date: 21.10.99 Time: 13:35 | |
98 * Updated in $/GSM/Condat/MS/SRC/MFW | |
99 * change constant define | |
100 * | |
101 * ***************** Version 19 ***************** | |
102 * User: Es Date: 16.09.99 Time: 17:23 | |
103 * Updated in $/GSM/DEV/MS/SRC/MFW | |
104 * added TON/NPI fields to T_MFW_SMS_ADDR | |
105 * | |
106 * ***************** Version 18 ***************** | |
107 * User: Vo Date: 12.09.99 Time: 12:40 | |
108 * Updated in $/GSM/DEV/MS/SRC/MFW | |
109 * change parameter 'dcs' in T_MFW_SMS_CB_INFO (adaptation to ACI) | |
110 * | |
111 * ***************** Version 17 ***************** | |
112 * User: Vo Date: 10.09.99 Time: 19:53 | |
113 * Updated in $/GSM/DEV/MS/SRC/MFW | |
114 * move sms_save_pref_lang() to sim_save_pref_lang() | |
115 * | |
116 * ***************** Version 16 ***************** | |
117 * User: Vo Date: 30.08.99 Time: 15:19 | |
118 * Updated in $/GSM/DEV/MS/SRC/MFW | |
119 * new events | |
120 * | |
121 * ***************** Version 15 ***************** | |
122 * User: Vo Date: 26.07.99 Time: 14:32 | |
123 * Updated in $/GSM/DEV/MS/SRC/MFW | |
124 * Add new definitions | |
125 * | |
126 * ***************** Version 14 ***************** | |
127 * User: Vo Date: 16.07.99 Time: 13:50 | |
128 * Updated in $/GSM/DEV/MS/SRC/MFW | |
129 * | |
130 * ***************** Version 13 ***************** | |
131 * User: Vo Date: 16.07.99 Time: 10:39 | |
132 * Updated in $/GSM/DEV/MS/SRC/MFW | |
133 * | |
134 * ***************** Version 12 ***************** | |
135 * User: Vo Date: 22.06.99 Time: 8:54 | |
136 * Updated in $/GSM/DEV/MS/SRC/MFW | |
137 * | |
138 * ***************** Version 11 ***************** | |
139 * User: Vo Date: 1.06.99 Time: 14:47 | |
140 * Updated in $/GSM/DEV/MS/SRC/MFW | |
141 * | |
142 * ***************** Version 10 ***************** | |
143 * User: Vo Date: 28.05.99 Time: 9:52 | |
144 * Updated in $/GSM/DEV/MS/SRC/MFW | |
145 * | |
146 * ***************** Version 9 ***************** | |
147 * User: Vo Date: 21.05.99 Time: 13:51 | |
148 * Updated in $/GSM/DEV/MS/SRC/MFW | |
149 * | |
150 * ***************** Version 8 ***************** | |
151 * User: Vo Date: 18.05.99 Time: 14:35 | |
152 * Updated in $/GSM/DEV/MS/SRC/MFW | |
153 * | |
154 * ***************** Version 7 ***************** | |
155 * User: Vo Date: 25.03.99 Time: 16:34 | |
156 * Updated in $/GSM/DEV/MS/SRC/MFW | |
157 * | |
158 * ***************** Version 6 ***************** | |
159 * User: Vo Date: 25.02.99 Time: 16:47 | |
160 * Updated in $/GSM/DEV/MS/SRC/MFW | |
161 * | |
162 * ***************** Version 5 ***************** | |
163 * User: Vo Date: 17.02.99 Time: 20:00 | |
164 * Updated in $/GSM/DEV/MS/SRC/MFW | |
165 * | |
166 * ***************** Version 4 ***************** | |
167 * User: Vo Date: 11.02.99 Time: 15:43 | |
168 * Updated in $/GSM/DEV/MS/SRC/MFW | |
169 * | |
170 * ***************** Version 3 ***************** | |
171 * User: Vo Date: 11.02.99 Time: 12:54 | |
172 * Updated in $/GSM/DEV/MS/SRC/MFW | |
173 * | |
174 * ***************** Version 2 ***************** | |
175 * User: Vo Date: 7.01.99 Time: 12:38 | |
176 * Updated in $/GSM/DEV/MS/SRC/MFW | |
177 * | |
178 * ***************** Version 1 ***************** | |
179 * User: Vo Date: 30.12.98 Time: 11:49 | |
180 * Created in $/GSM/DEV/MS/SRC/MFW | |
181 | |
182 */ | |
183 | |
184 #ifndef DEF_MFW_SMS_HEADER | |
185 #define DEF_MFW_SMS_HEADER | |
186 | |
187 #include "mfw_cm.h" | |
188 #include "aci_lst.h" | |
189 #include "conc_sms.h" | |
190 | |
191 #ifndef NEPTUNE_BOARD | |
192 //#define MAX_IDENTS 0x14 | |
193 #else | |
194 #define MAX_IDENTS 0x14 /* NEPTUNE Integration: Uncommented.*/ | |
195 #endif | |
196 | |
197 #define MAX_SCTP_DIGITS 2 | |
198 #define BASIC_MAX_MSG_LEN 160 | |
199 #define MAX_CBMSG_LEN 94 | |
200 //1227 - API - 05/10/02 - Create new Define for Single SMS and increase original for Conc_SMS | |
201 #define MAX_MSG_LEN_SGL 161 //Max message length for disabled Conc SMS API | |
202 | |
203 /*JVJ-SPR-1298. Provisional until a new option in the .inf file is inserted.*/ | |
204 | |
205 #ifdef MMI_LITE | |
206 /*SPR 2350, concat messagse of up to 500 chars should be allowed*/ | |
207 #define MAX_MSG_LEN_LITE (MAX_MSG_LEN_SGL*3) | |
208 #define MAX_MSG_LEN MAX_MSG_LEN_LITE | |
209 #else | |
210 #define MAX_MSG_LEN 1601 //Max size for a SMS | |
211 #endif | |
212 | |
213 #define MAX_MSG_LEN_ARRAY (MAX_MSG_LEN+1) //Array size for SMS | |
214 | |
215 | |
216 /*MC, chinese message lengths*/ | |
217 #define MAX_MSG_LEN_SGL_CHI 140 //Max message length for single chinese message | |
218 #define MAX_MSG_LEN_CHI MAX_MSG_LEN_SGL_CHI*10 | |
219 | |
220 | |
221 /* | |
222 * events are organised as bitmaps | |
223 */ | |
224 #define E_SMS_MO_AVAIL 0x0001 | |
225 #define E_SMS_CMD_AVAIL 0x0002 | |
226 #define E_SMS_SAVE_AVAIL 0x0004 | |
227 #define E_SMS_MT 0x0008 | |
228 #define E_SMS_MO 0x0010 | |
229 #define E_SMS_CB 0x0020 | |
230 #define E_SMS_CB_RECEIVED 0x0040 | |
231 #define E_SMS_MT_RECEIVED 0x0080 | |
232 #define E_SMS_STATUS 0x0100 | |
233 #define E_SMS_MEM 0x0200 | |
234 #define E_SMS_OK 0x0400 | |
235 #define E_SMS_ERR 0x0800 | |
236 #define E_SMS_BUSY 0x1000 | |
237 #define E_SMS_READY 0x2000 | |
238 #define E_SMS_MEM_FULL 0x4000 | |
239 #define E_SMS_MEM_FREE 0x8000 | |
240 | |
241 #define E_SMS_RECEIVED 0x0600 | |
242 #define E_SMS_ALL_SERVICE 0xffff | |
243 | |
244 #if defined (FF_WAP) && defined (FF_GPF_TCPIP) | |
245 //liuyu | |
246 /* SPR#2086 */ | |
247 #define E_SMS_WAP_MT_RECEIVED 0x10000 | |
248 #define E_SMS_WAP_MO_SENT 0x20000 | |
249 #define E_SMS_WAP_ERR 0x40000 | |
250 #endif | |
251 | |
252 /* definition for validity period mode */ | |
253 #define SMS_VPF_NOTPRESENT 0 | |
254 #define SMS_VPF_NUMERICAL 2 // Corresponds to relative period | |
255 #define SMS_VPF_STRING 3 // Corresponds to absolute period | |
256 | |
257 /* definition for reply path */ | |
258 #define SMS_UNSET_RP 0 | |
259 #define SMS_SET_RP 1 | |
260 | |
261 /* definition for reject duplicates */ | |
262 #define SMS_ACCEPT_RD 0 | |
263 #define SMS_REJECT_RD 1 | |
264 | |
265 /* definition for status report request */ | |
266 #define SMS_NOT_REQUESTED_SRR 0 | |
267 #define SMS_REQUESTED_SRR 1 | |
268 | |
269 /* SMS management functional return codes */ | |
270 typedef enum | |
271 { | |
272 MFW_SMS_FAIL = -1, /* execution of command failed */ | |
273 MFW_SMS_OK /* execution of command completed */ | |
274 } T_MFW_SMS_RETURN; | |
275 | |
276 /* definition for message type */ | |
277 typedef enum | |
278 { | |
279 MFW_NO_MESSAGE, | |
280 MFW_SMS_MESSAGE, /* SMS message */ | |
281 MFW_CB_MESSAGE /* cell broadcast message */ | |
282 } T_MFW_SMS_TYPE; | |
283 | |
284 /* definition for submit message type */ | |
285 typedef enum | |
286 { | |
287 MFW_SMS_SUBMIT, | |
288 MFW_SMS_REPLY, | |
289 MFW_SMS_SUBMIT_SENT, | |
290 MFW_SMS_REPLY_SENT | |
291 } T_MFW_SMS_MO_TYPE; | |
292 | |
293 /* Memory which messages are stored */ | |
294 typedef enum | |
295 { | |
296 MFW_MEM_ME, | |
297 MFW_MEM_SIM | |
298 } T_MFW_SMS_MEM; | |
299 | |
300 // Feb 16, 2005 REF: CRR MMI-SPR-27900 xnkulkar | |
301 // Added MFW_SMS_VOICEMSG_DELETE to enum T_MFW_SMS_STAT | |
302 | |
303 /* Memory which messages are stored */ | |
304 typedef enum | |
305 { | |
306 MFW_SMS_UNKNOWN, | |
307 MFW_SMS_UNREAD, /* received unread message */ | |
308 MFW_SMS_READ, /* received read message */ | |
309 MFW_SMS_STOR_UNSENT, /* stored unsent messgae */ | |
310 MFW_SMS_STOR_SENT, /* stored sent message */ | |
311 MFW_SMS_MO, /* MO SMS message */ | |
312 MFW_SMS_MT, /* MT SMS message */ | |
313 MFW_SMS_ALL, | |
314 MFW_SMS_NotVOICE, | |
315 MFW_SMS_VOICE, /* voice mail message */ | |
316 MFW_SMS_VOICEMSG_DELETE, // To mark the voice mail sms for deletion (group 1100) | |
317 MFW_SMS_STATRPT, ////x0pleela 01 Feb, 2006 DR: OMAPS00059261 /* Status report status*/ //x0pleela 06 Feb, 2006 DR: OMAPS00059261 Removed pending from name | |
318 MFW_SMS_INVALID /*SPR2260*/ | |
319 } T_MFW_SMS_STAT; | |
320 | |
321 /*SPR 2260, eneumerated type for concat status of message in list*/ | |
322 typedef enum | |
323 { | |
324 MFW_SMS_NO_CONC, | |
325 MFW_SMS_CONC_PART, | |
326 MFW_SMS_CONC_WHOLE | |
327 } | |
328 T_MFW_SMS_CONC_STAT ; | |
329 | |
330 typedef struct | |
331 { | |
332 UBYTE year [MAX_SCTP_DIGITS]; | |
333 UBYTE month [MAX_SCTP_DIGITS]; | |
334 UBYTE day [MAX_SCTP_DIGITS]; | |
335 UBYTE hour [MAX_SCTP_DIGITS]; | |
336 UBYTE minute [MAX_SCTP_DIGITS]; | |
337 UBYTE second [MAX_SCTP_DIGITS]; | |
338 SHORT timezone; | |
339 } T_MFW_SMS_SCTP; | |
340 | |
341 /* SMS command */ | |
342 typedef enum | |
343 { | |
344 SMS_ENQ_PREV_SMS, /* Starts an enquiry to previously sended short message */ | |
345 SMS_CAN_STAT_REQ, /* Cancels status report request */ | |
346 SMS_DEL_PREV_SMS, /* Deletion of previous sended short message */ | |
347 SMS_REQ_STAT_REP /* Requests status report for SMS message */ | |
348 } T_MFW_SMS_COMMAND; | |
349 | |
350 typedef enum | |
351 { | |
352 MT_IND_IDX, /* message will be stored to memory and index will | |
353 be indicated (E_SMS_MT_RECEIVED) */ | |
354 MT_IND_NO_IDX, /* message will be stored to memory and index will | |
355 not be indicated */ | |
356 MT_IND_MSG, /* message will be indicated to mmi (E_SMS_MT) | |
357 but not stored to memory */ | |
358 MT_CB_IDX, /* CB message will be stored to memory and index will | |
359 be indicated (E_SMS_CB_RECEIVED) */ | |
360 MT_CB_NO_IDX, /* CB message will be stored to memory and index will | |
361 not be indicated */ | |
362 MT_CB_MSG, /* CB message will be indicated to mmi (E_SMS_CB) | |
363 but not stored to memory */ | |
364 /* Marcus: Issue 1170: 07/10/2002: Start */ | |
365 MT_IND_SRR_ON, /* Status reports are to be notified */ | |
366 MT_IND_SRR_OFF /* Status reports are not to be notified */ | |
367 /* Marcus: Issue 1170: 07/10/2002: End */ | |
368 | |
369 } T_MFW_SMS_MT_IND; | |
370 | |
371 typedef enum | |
372 { | |
373 CMD_SMS_NO_CMD, | |
374 CMD_SMS_SUBMIT, /* send message */ | |
375 CMD_SMS_MEMORY, /* set/get preferred message store */ | |
376 CMD_SMS_READ, /* read message */ | |
377 CMD_SMS_STORE, /* save message */ | |
378 CMD_SMS_DELETE, /* delete message */ | |
379 CMD_SMS_COMMAND, /* send command */ | |
380 CMD_SMS_SET_PARA, /* set SMS parameter */ | |
381 CMD_SMS_SET_CB_PARA, /* set cell broadcast parameter */ | |
382 CMD_SMS_SET_IND /* set new message indication */ | |
383 } T_MFW_SMS_CMD_IND; | |
384 | |
385 //x0pleela 01 Feb, 2006 DR: OMAPS00059261 | |
386 /* SMS type: MT, MO, STAT RPT */ | |
387 | |
388 typedef enum | |
389 { | |
390 MFW_MSG_DELIVER, | |
391 MFW_MSG_SUBMIT, | |
392 MFW_MSG_STATUS_REPORT | |
393 }T_MFW_SMS_MSG_TYPE; | |
394 | |
395 typedef struct | |
396 { | |
397 UBYTE mem; | |
398 UBYTE used; | |
399 UBYTE total; | |
400 UBYTE dummy; | |
401 } T_MFW_SMS_MEM_INFO; | |
402 | |
403 /* SMS parameters */ | |
404 typedef struct | |
405 { | |
406 CHAR sc_addr[MAX_LEN]; /* service centre address */ | |
407 SHORT prot_id; /* protocol identifier */ | |
408 SHORT dcs; /* data coding scheme */ | |
409 UBYTE srr; /* status report request */ | |
410 UBYTE rp; /* reply path */ | |
411 UBYTE rd; /* reject duplicates */ | |
412 UBYTE vp_mode; /* validity period mode */ | |
413 UBYTE vp_rel; /* validity period relative */ | |
414 T_MFW_SMS_SCTP vp_abs; /* validity period absolute */ | |
415 SHORT first_oct; /* First Octet*/ | |
416 } T_MFW_SMS_INFO; | |
417 | |
418 /* Identification to incomming message */ | |
419 typedef struct | |
420 { | |
421 UBYTE mem; /* indicate the memory for stored message */ | |
422 UBYTE index; /* index of message */ | |
423 UBYTE concat_status; /* status of concatenated */ | |
424 UBYTE received_sms_type; /* type of sms */ | |
425 } T_MFW_SMS_ID; | |
426 | |
427 /* Information about mobile terminated short message */ | |
428 typedef struct | |
429 { | |
430 CHAR tag[MFW_TAG_LEN]; | |
431 #ifdef NO_ASCIIZ | |
432 UBYTE len; /* length of name */ | |
433 UBYTE dummy1; | |
434 UBYTE dummy2; | |
435 UBYTE dummy3; | |
436 #endif | |
437 CHAR number[MFW_NUM_LEN]; | |
438 T_MFW_PHB_TON ton; | |
439 T_MFW_PHB_NPI npi; | |
440 } T_MFW_SMS_ADDR; | |
441 | |
442 | |
443 typedef struct | |
444 { | |
445 UBYTE index; /* index of message */ | |
446 T_MFW_SMS_ADDR orig_addr; /* call party address */ | |
447 CHAR sc_addr[MAX_LEN]; /* service centre address */ | |
448 UBYTE prot_id; /* protocol identifier */ | |
449 SHORT dcs; /* data coding scheme */ | |
450 UBYTE rp; /* reply path */ | |
451 UBYTE ti; /* type indicator */ | |
452 T_MFW_SMS_SCTP sctp; /* service centre timestamp */ | |
453 USHORT/*UBYTE*/ msg_len; /* length of short message */ | |
454 CHAR sms_msg[MAX_MSG_LEN_ARRAY]; /* short message */ | |
455 UBYTE udh_len; /* length of user data header */ | |
456 UBYTE udh[BASIC_MAX_MSG_LEN]; /* user data header */ | |
457 T_MFW_SMS_STAT sms_msg_type; //x0pleela 01 Feb, 2006 DR: OMAPS00059261 /* sms message type: MT text or MT status report*/ | |
458 BOOL voicemail;/*SPR#1408 - DS - TRUE if a voicemail message. Port of 1669*/ | |
459 } T_MFW_SMS_MT; | |
460 | |
461 /* Incomming call broadcast message */ | |
462 typedef struct | |
463 { | |
464 SHORT sn; /* serial number in integer format */ | |
465 USHORT msg_id; /* message identification */ | |
466 UBYTE dcs; /* data coding scheme */ | |
467 UBYTE page; /* number of this page */ | |
468 UBYTE pages; /* number of total pages */ | |
469 UBYTE msg_len; /* length of short message */ | |
470 CHAR cb_msg[MAX_CBMSG_LEN]; /* cell broadcast message */ | |
471 } T_MFW_SMS_CB; | |
472 | |
473 /* Parameter for cell broadcast message */ | |
474 typedef struct | |
475 { | |
476 UBYTE mode; /* acception mode: 0 - accept, 1 - not accept */ | |
477 #ifdef FF_2TO1_PS | |
478 USHORT msg_id[CBM_MAX_RANGE_NUMBER]; /* message identifier */ | |
479 UBYTE dcs[CBM_MAX_RANGE_NUMBER]; /* data coding schemes */ | |
480 #else | |
481 USHORT msg_id[MAX_IDENTS]; /* message identifier */ | |
482 UBYTE dcs[MAX_IDENTS]; /* data coding schemes */ | |
483 #endif | |
484 UBYTE dummy; | |
485 } T_MFW_SMS_CB_INFO; | |
486 | |
487 /* Information for mobile originated short message */ | |
488 typedef struct | |
489 { | |
490 T_MFW_SMS_ADDR dest_addr; /* called party address */ | |
491 CHAR sc_addr[MAX_LEN]; /* service centre address */ | |
492 UBYTE prot_id; /* protocol identifier */ | |
493 SHORT dcs; /* data coding scheme */ | |
494 UBYTE status; /* status of sms message */ | |
495 UBYTE vp_mode; /* validity period mode */ | |
496 UBYTE vp_rel; /* validity period relative */ | |
497 T_MFW_SMS_SCTP vp_abs; /* validity period absolute */ | |
498 CHAR sms_msg[MAX_MSG_LEN_ARRAY]; /* short message */ | |
499 USHORT msg_len; /* length of short message */ | |
500 UBYTE msg_ref; /* message reference */ | |
501 } T_MFW_SMS_MO; | |
502 | |
503 /* Status report for short message */ | |
504 typedef struct | |
505 { | |
506 SHORT msg_id; /* message type */ | |
507 UBYTE msg_ref; /* message Reference */ | |
508 T_MFW_SMS_ADDR addr; /* called party address */ | |
509 UBYTE status; /* status of sms message */ | |
510 T_MFW_SMS_SCTP rctp; /* received sms timestamp */ | |
511 } T_MFW_SMS_STATUS; | |
512 /***************************Go-lite Optimization changes Start***********************/ | |
513 //Oct 04, 2004 REF: CRR 25519 Deepa M.D | |
514 //Structure elements (T_MFW_SMS_MSG)are realigned to avoid the structure padding | |
515 typedef struct | |
516 { | |
517 T_MFW_SMS_STAT stat; | |
518 T_MFW_SMS_STAT msg_type; /* voice mail status */ | |
519 T_MFW_SMS_CONC_STAT concat_status;/*2260*/ | |
520 T_MFW_SMS_ADDR addr; | |
521 T_MFW_SMS_SCTP rctp; | |
522 SHORT index; | |
523 SHORT first_index;/*index of first sms in concat assembly SPR 2260*/ | |
524 UBYTE msg_ref; | |
525 } T_MFW_SMS_MSG;/*structure used in message list*/ | |
526 /***************************Go-lite Optimization changes end***********************/ | |
527 // PATCH JPS 29.09: new structure used in mfw_index_list | |
528 typedef struct | |
529 { | |
530 SHORT index; | |
531 T_MFW_SMS_STAT stat; | |
532 T_MFW_SMS_STAT msg_type; | |
533 T_MFW_SMS_CONC_STAT concat_status;/*SPR 2260*/ | |
534 } T_MFW_SMS_IDX;/*structure passed in sms_copy_idx() function,used externally*/ | |
535 // PATCH JPS 29.09 END | |
536 | |
537 /* | |
538 * SMS event Parameter | |
539 */ | |
540 typedef union | |
541 { | |
542 T_MFW_SMS_ID sms_id; | |
543 T_MFW_SMS_MT sms_mt; | |
544 T_MFW_SMS_MO sms_mo; | |
545 T_MFW_SMS_CB sms_cb; | |
546 T_MFW_SMS_STATUS sms_status; | |
547 T_MFW_SMS_MEM_INFO sms_mem; | |
548 UBYTE index; | |
549 UBYTE cmd_ind; | |
550 } T_MFW_SMS_PARA; | |
551 | |
552 EXTERN void sms_init (void); | |
553 EXTERN void sms_exit (void); | |
554 EXTERN T_MFW_HND sms_create (T_MFW_HND hWin, | |
555 T_MFW_EVENT event, | |
556 T_MFW_CB cbfunc); | |
557 EXTERN T_MFW_RES sms_delete (T_MFW_HND h); | |
558 | |
559 #ifdef NO_ASCIIZ | |
560 | |
561 #if defined (FF_WAP) && defined (FF_GPF_TCPIP) | |
562 EXTERN T_MFW sms_submit (T_MFW_SMS_MO_TYPE type, | |
563 CHAR *dest_addr, | |
564 UBYTE *msg, | |
565 USHORT msg_len, | |
566 CHAR *sca); | |
567 //Dec 14, 2005 REF: MMI-FIX-OMAPS00058684 x0035544 | |
568 #ifdef FF_HOMEZONE | |
569 //Jun 14, 2005 REF: MMI-FIX-30439 x0018858 | |
570 EXTERN void sms_homezoneCBToggle(U8 Activate); | |
571 #endif | |
572 EXTERN T_MFW sms_submit_wap_sms(T_MFW_SMS_MO_TYPE type, | |
573 CHAR *dest_addr, | |
574 T_MFW_PHB_TON addr_type, | |
575 UBYTE *msg, | |
576 USHORT msg_len, | |
577 CHAR *sca, | |
578 T_MFW_PHB_TON sc_type); /* SPR#2086 - SH - Added */ | |
579 #else | |
580 | |
581 EXTERN T_MFW sms_submit (T_MFW_SMS_MO_TYPE type, | |
582 CHAR *dest_addr, | |
583 UBYTE *msg, | |
584 USHORT msg_len, | |
585 CHAR *sca); | |
586 #endif | |
587 EXTERN T_MFW sms_store (T_MFW_SMS_MO_TYPE type, | |
588 CHAR *addr, | |
589 UBYTE *msg, | |
590 USHORT msg_len, | |
591 CHAR *sca); | |
592 EXTERN T_MFW sms_change (CHAR *addr, | |
593 UBYTE *msg, | |
594 USHORT msg_len, | |
595 UBYTE index); | |
596 #else | |
597 | |
598 #if defined (FF_WAP) && defined (FF_GPF_TCPIP) | |
599 | |
600 EXTERN T_MFW sms_submit (T_MFW_SMS_MO_TYPE type, | |
601 CHAR *dest_addr, | |
602 T_MFW_PHB_TON addr_type, | |
603 UBYTE *msg, USHORT msg_len, | |
604 CHAR *sca, | |
605 T_MFW_PHB_TON sc_type); // sbh added length, see function itself | |
606 EXTERN T_MFW sms_submit_wap_sms(T_MFW_SMS_MO_TYPE type, | |
607 CHAR *dest_addr, | |
608 T_MFW_PHB_TON addr_type, | |
609 UBYTE *msg, | |
610 USHORT msg_len, | |
611 CHAR *sca, | |
612 T_MFW_PHB_TON sc_type); /* SPR#2086 - SH - Added */ | |
613 #else | |
614 EXTERN T_MFW sms_submit (T_MFW_SMS_MO_TYPE type, | |
615 CHAR *dest_addr, | |
616 UBYTE *msg, USHORT msg_len, | |
617 CHAR *sca); // sbh added length, see function itself | |
618 #endif | |
619 | |
620 EXTERN T_MFW sms_store (T_MFW_SMS_MO_TYPE type, | |
621 CHAR *addr, | |
622 UBYTE *msg, USHORT msg_len, | |
623 CHAR *sca); // sbh added length, see function itself | |
624 EXTERN T_MFW sms_change (CHAR *addr, | |
625 UBYTE *msg, USHORT msg_len, | |
626 UBYTE index); // sbh added length, see function itself | |
627 #endif | |
628 EXTERN T_MFW sms_stored_submit (CHAR *dest_addr, | |
629 UBYTE index); | |
630 /*SPR 2260, added concatenated status parameter*/ | |
631 EXTERN T_MFW sms_store_new_msg_info(UBYTE index, T_ACI_CMGL_SM* sm, UBYTE update_mem, T_CONC_ASSEMBLY_RETURN concat_stat); | |
632 | |
633 EXTERN T_MFW sms_send_new_msg_ind(T_ACI_CMGL_SM* sm,UBYTE index, UBYTE mem, UBYTE received_sms_type, UBYTE concatenated_status); | |
634 | |
635 EXTERN T_MFW sms_set_pref_memory (UBYTE mem); | |
636 EXTERN T_MFW sms_read (UBYTE type, | |
637 UBYTE index); | |
638 EXTERN T_MFW sms_mt_store (T_MFW_SMS_MT *mt_msg, | |
639 T_MFW_SMS_STAT stat); | |
640 EXTERN T_MFW sms_msg_delete (UBYTE index); | |
641 EXTERN T_MFW sms_get_memset (void); | |
642 EXTERN T_MFW sms_command (CHAR *dest_addr, | |
643 UBYTE command, | |
644 UBYTE msg_ref); | |
645 EXTERN T_MFW sms_parameter (T_MFW_SMS_INFO *sms_info, BOOL fGet); | |
646 EXTERN T_MFW sms_set_SrvCntr_number (T_MFW_SMS_INFO *sms_info); | |
647 EXTERN T_MFW sms_set_dcs_number (T_MFW_SMS_INFO *sms_info);//GW Added | |
648 EXTERN T_MFW sms_set_val_period (T_MFW_SMS_INFO *sms_info);//GW Added | |
649 EXTERN T_MFW sms_set_cell_broadcast_info (UBYTE mode, | |
650 T_MFW_SMS_CB_INFO *sms_cb_info); | |
651 EXTERN T_MFW sms_get_cell_broadcast_info (T_MFW_SMS_CB_INFO *sms_cb_info); | |
652 EXTERN void sms_set_mt_ind (T_MFW_SMS_MT_IND sms_ind); | |
653 EXTERN SHORT sms_message_count (T_MFW_SMS_STAT stat); | |
654 EXTERN SHORT sms_message_list (T_MFW_SMS_STAT stat, | |
655 T_MFW_SMS_MSG * msg_list, | |
656 int max_entries); | |
657 // PATCH JPS 29.09: add function equivalent of sms_message_list bu more economic | |
658 EXTERN SHORT sms_index_list (T_MFW_SMS_STAT stat, | |
659 T_MFW_SMS_IDX * msg_list, | |
660 int max_entries); | |
661 // PATCH JPS 29.09 END | |
662 EXTERN T_MFW sms_change_read_status (SHORT index); | |
663 | |
664 //x0018858 24 Mar, 2005 MMI-FIX-11321 | |
665 //begin -MMI-FIX-11321 | |
666 EXTERN T_MFW sms_set_cind_values(T_ACI_MM_CIND_VAL_TYPE *cindSettings); | |
667 EXTERN T_MFW sms_set_cmer_values(T_ACI_MM_CMER_VAL_TYPE *cmerSettings); | |
668 //end -MMI-FIX-11321 | |
669 #endif |