comparison src/ui3/mfw/mfw_smsi.h @ 420:e8ddbb0837ed

src/ui3: initial import of TCS3/LoCosto BMI & MFW code
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 21 Jan 2018 03:09:00 +0000
parents
children
comparison
equal deleted inserted replaced
419:59143cd42ec7 420:e8ddbb0837ed
1 /*
2 +--------------------------------------------------------------------+
3 | PROJECT: MMI-Framework (8417) $Workfile:: mfw_smsi.h $|
4 | $Author:: Vo $Revision:: 1 $|
5 | CREATED: 21.12.98 $Modtime:: 21.03.00 11:51 $|
6 | STATE : code |
7 +--------------------------------------------------------------------+
8
9 MODULE : MFW_SMSI
10
11 PURPOSE : This modul contains the definition for SMS management.
12
13
14 $History:: mfw_smsi.h $
15
16 Feb 28, 2007 OMAPS00109953 a0393213(R.Prabakar)
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.
19
20 * May 27, 2005 MMI-FIX-29869 x0018858
21 * Description: There is a limitation on the number of messages that can be downloaded from
22 * server even though there is space on the sim.
23 * Solution: The limitation has been removed and the number of messages that can be dowloaded
24 * has been modified to the masimum number that can be stored.
25 *
26 * ***************** Version 15 *****************
27 * User: Vo Date: 22.03.00 Time: 17:44
28 * Updated in $/GSM/Condat/MS/SRC/MFW
29 * check voice mail status
30 *
31 * ***************** Version 14 *****************
32 * User: Vo Date: 15.03.00 Time: 14:37
33 * Updated in $/GSM/Condat/MS/SRC/MFW
34 * Bug fix: receiving MT indication conflict with perform SMS command
35 * Bug fix: read SMS parameter
36 *
37 * ***************** Version 13 *****************
38 * User: Vo Date: 28.01.00 Time: 15:36
39 * Updated in $/GSM/Condat/MS/SRC/MFW
40 *
41 * ***************** Version 12 *****************
42 * User: Vo Date: 20.01.00 Time: 12:28
43 * Updated in $/GSM/Condat/MS/SRC/MFW
44 *
45 * ***************** Version 11 *****************
46 * User: Vo Date: 14.01.00 Time: 20:17
47 * Updated in $/GSM/Condat/MS/SRC/MFW
48 *
49 * ***************** Version 10 *****************
50 * User: Vo Date: 17.11.99 Time: 11:01
51 * Updated in $/GSM/Condat/MS/SRC/MFW
52 * 1. change constants
53 * 2. new prototype define
54 *
55 * ***************** Version 9 *****************
56 * User: Vo Date: 21.10.99 Time: 13:36
57 * Updated in $/GSM/Condat/MS/SRC/MFW
58 * new constants define
59 * new prototyp
60 *
61 * ***************** Version 8 *****************
62 * User: Vo Date: 30.08.99 Time: 15:18
63 * Updated in $/GSM/DEV/MS/SRC/MFW
64 * new prototypes
65 *
66 * ***************** Version 7 *****************
67 * User: Vo Date: 26.07.99 Time: 14:32
68 * Updated in $/GSM/DEV/MS/SRC/MFW
69 * defines moved to mfw_sms.h
70 *
71 * ***************** Version 6 *****************
72 * User: Vo Date: 16.07.99 Time: 13:50
73 * Updated in $/GSM/DEV/MS/SRC/MFW
74 *
75 * ***************** Version 5 *****************
76 * User: Vo Date: 22.06.99 Time: 8:54
77 * Updated in $/GSM/DEV/MS/SRC/MFW
78 *
79 * ***************** Version 4 *****************
80 * User: Vo Date: 20.05.99 Time: 17:48
81 * Updated in $/GSM/DEV/MS/SRC/MFW
82 *
83 * ***************** Version 3 *****************
84 * User: Vo Date: 31.03.99 Time: 14:09
85 * Updated in $/GSM/DEV/MS/SRC/MFW
86 *
87 * ***************** Version 2 *****************
88 * User: Vo Date: 12.02.99 Time: 18:59
89 * Updated in $/GSM/DEV/MS/SRC/MFW
90 *
91 * ***************** Version 1 *****************
92 * User: Vo Date: 30.12.98 Time: 11:49
93 * Created in $/GSM/DEV/MS/SRC/MFW
94
95 */
96
97 #ifndef DEF_MFW_SMSI_HEADER
98 #define DEF_MFW_SMSI_HEADER
99
100 #define MFW_SMS_FREE 0
101 #define MFW_SMS_NEW 1
102 #define MFW_SMS_UPDATE 2
103 #define MFW_SMS_WAIT 3
104 //May 27, 2005 MMI-FIX-29869 x0018858 -Changed the #define to a global variable
105 #ifdef FF_MMI_SMS_DYNAMIC
106 extern int g_max_messages;
107 #else
108 #define MAX_MESSAGES 30
109 #endif
110 /* message type */
111 #define MFW_MT_MESSAGE 10
112 #define MFW_WR_NEW_MESSAGE 20
113 #define MFW_WR_CHG_MESSAGE 30
114
115 /*
116 * SMS Control Block
117 */
118 typedef struct
119 {
120 T_MFW_EVENT emask; /* events of interest */
121 T_MFW_EVENT event; /* current event */
122 T_MFW_CB handler;
123 T_MFW_SMS_PARA para;
124 } T_MFW_SMS;
125
126
127 /* SMS parameters */
128 typedef struct
129 {
130 UBYTE tag_len; /* length of Alpha identifier */
131 UBYTE tag[MFW_TAG_LEN]; /* Alpha identifier */
132 UBYTE para_id; /* Parameter identifier */
133 UBYTE dest_addr[12]; /* TP-destination address */
134 UBYTE sc_addr[12]; /* service centre address */
135 UBYTE prot_id; /* protocol identifier */
136 UBYTE dcs; /* data coding scheme */
137 UBYTE srr; /* status report request */
138 UBYTE rp; /* reply path */
139 UBYTE rd; /* reject duplicates */
140 UBYTE vp_mode; /* validity period mode */
141 UBYTE vp_rel; /* validity period relative */
142 UBYTE *vp_abs; /* validity period absolute */
143 } T_MFW_SMS_PARAMETER;
144
145 /* Cell broadcast massage parameters */
146 typedef struct
147 {
148 UBYTE cbm_id[10]; /* cell broadcast message identifier */
149 } T_MFW_SMS_CB_PARA;
150
151 typedef struct
152 {
153 UBYTE mem;
154 UBYTE used;
155 UBYTE total;
156 } T_MFW_MEM_INFO;
157
158
159 EXTERN T_MFW_HND sms_install (T_MFW_HDR *w,
160 T_MFW_HDR *h,
161 T_MFW_SMS *sms);
162 EXTERN T_MFW_RES sms_remove (T_MFW_HDR *h);
163 EXTERN BOOL sms_sign_exec (T_MFW_HDR *hdr,
164 T_MFW_EVENT event,
165 T_MFW_SMS_PARA *para);
166
167 void sms_signal (T_MFW_EVENT event, void * para);
168 void sms_ok_delete (void);
169 void sms_ok_change (void);
170 void sms_busy_ind (void); // bugfix for SIM refresh
171 T_MFW_SMS_STAT sms_decodeStatus (T_ACI_SMS_STAT stat);
172 T_ACI_SMS_STAT sms_codeStatus (T_MFW_SMS_STAT stat);
173 void sms_get_cbm_id (USHORT *cbmid, UBYTE len);
174 void sms_save_cbm_id (USHORT *cbmid, UBYTE len);
175 void sms_read_msg_info (void);
176 void sms_update_ready (void);
177 void sms_copy_msg_list (int num, T_MFW_SMS_MSG *msg_list);
178 // PATCH JPS 29.09: add function equivalent of sms_message_list bu more economic
179 void sms_copy_idx_list (int num, T_MFW_SMS_IDX *msg_list);
180 //MC
181 /*a0393213 OMAPS00109953 - memory added as parameter*/
182 void sms_copy_idx(UBYTE index, T_MFW_SMS_IDX *msg_list, T_MFW_SMS_MEM sms_memory);
183
184 // PATCH JPS 29.09 end
185 void sms_check_mt_update (void);
186 void sms_ok_csas (void);
187 void sms_phbReady_ind (void);
188 T_MFW sms_check_voice_mail (UBYTE pid, UBYTE dcs, char *addr,
189 T_ACI_TOA *toa, T_ACI_UDH_DATA *udh);
190 void sms_sat_file_update (USHORT dataId);
191 void sms_sat_update_cnf (void);
192 void sms_ok_CMGL (void);
193
194 #endif