comparison src/aci2/mfw/mfw_smsi.h @ 3:93999a60b835

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