comparison src/aci2/bmi/mmiPins.h @ 120:3c2acfa1a72f

src/aci2/bmi: file renames to make filename case consistent
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 07 Oct 2016 03:46:05 +0000
parents src/aci2/bmi/MmiPins.h@93999a60b835
children
comparison
equal deleted inserted replaced
119:b92a33c204b6 120:3c2acfa1a72f
1
2 /*******************************************************************************
3
4 CONDAT (UK)
5
6 ********************************************************************************
7
8 This software product is the property of Condat (UK) Ltd and may not be
9 disclosed to any third party without the express permission of the owner.
10
11 ********************************************************************************
12
13 $Project name: Basic MMI
14 $Project code: BMI (6349)
15 $Module: MMI
16 $File: MmiPins.h
17 $Revision: 1.0
18
19 $Author: Condat(UK)
20 $Date: 25/10/00
21
22 ********************************************************************************
23
24 Description:
25
26 MMI PIN / PUK entry handling
27
28
29 ********************************************************************************
30
31 $History: MmiPins.h
32
33 Nov 24, 2005 DR: OMAPS00045909 - Shashi Shekar B.S.
34 Description: Improve IMEI control mechanism
35 Solution : When MMI calls sAT_PLUSCFUN, if an IMEI invalid error is returned,
36 we will block on that screen & will not allow the user to browse menus further,
37 since the PS will not be booted at all!!!
38
39 July 19, 2005 REF: CRR LOCOSTO-ENH-28173 xpradipg
40 Description: To provide MMI Support to enable/disable/change password and
41 query all the Personalization locks
42 Solution: Integration of the changes for the same provided by the soldel
43 team
44
45 June 16, 2005 REF: CRR 31267 x0021334
46 Description: Handset ignore the initializtion of the PIN1/PIN2
47 Fix: Cheking is done to ascertain if PIN1/PIN2 are initialised. If not, appropriate
48 message is displayed to the user.
49
50 25/10/00 Original Condat(UK) BMI version.
51
52 $End
53
54 *******************************************************************************/
55 #ifndef _DEF_MMI_PINS_H_
56 #define _DEF_MMI_PINS_H_
57
58 #define ALLOC_MEMORY mfwAlloc
59 #define FREE_MEMORY mfwFree
60
61 //API - 30/10/02 Move these defines to the header file 1162
62 #define MAX_DIG 30 /* maximum number of digits */
63 #define MAX_PIN 16 /* maximum number of PIN/PUK, SPR1351, simlock passwords can be up to 16 chars */
64 #define MAX_PIN_EN_DIS 8 /*SPR 2145 maximum string length for PIN1 when enabling/disabling PIN1 */
65 #define MIN_PIN 4
66 #define TIMERESULT 500 /* time for results(later to change!!*/
67 #define TIMEOUT 30000 /* time for entering */
68
69
70
71 /* typedefs */
72
73 typedef enum
74 {
75 INPUT_PIN1 = PinsDummy,
76 INPUT_PIN2,
77 INPUT_PUK1,
78 #ifdef SIM_PERS
79 PERM_BLK1,
80 #endif
81 INPUT_PUK2,
82 INPUT_NEW_PIN,
83 INPUT_NEW_PIN_AGAIN,
84 INPUT_NEW_PIN2,
85 INPUT_NEW_PIN2_AGAIN,
86 #ifdef SIM_PERS
87 INPUT_SIM_PLOCK,
88 TXT_ENTER_PLOCK,
89 SIM_LOCK_STATUS_END,
90 SIM_PLOCK_END,
91 SIM_LOCK_ENDSUCC,
92 SIM_LOCK_ENDIS_FAIL,
93 SIM_LOCK_REQ_OLD,
94 SIM_LOCK_STATUS,
95 SIM_LOCK_REQ_NEW,
96 TXT_ENTER_NEW_SIMLOCK,
97 TXT_ENTER_NEW_SIMLOCK_AGAIN,
98 INPUT_NEW_SIM_PLOCK,
99 INPUT_NEW_SIM_PLOCK_AGAIN,
100 NEW_SIM_PLOCK_END,
101 NEW_SIM_PLOCK_FAIL,
102 SIM_LOCK_NEW_ENDISFAIL,
103 SIM_LOCK_NEW_ENDSUCC,
104 SIM_LOCK_REQ_FCPWD,
105 SIM_LOCK_FCPWD_FAIL,
106 SIM_LOCK_FCPWDSUCC,
107 TXT_ENTER_FCPWD,
108 INPUT_SIM_FCPWD,
109 SIM_FCPWD_END,
110 FAILURE_PASS_CHG,
111 SIM_LOCK_NEW_ENDSUCC_CKEY,
112 INPUT_SIM_PIN_REQ,
113 INPUT_NLOCK_PIN_REQ,
114 INPUT_NSLOCK_PIN_REQ,
115 INPUT_SPLOCK_PIN_REQ,
116 INPUT_CLOCK_PIN_REQ,
117 SIM_LOCK_ALREADY_ENDIS,
118 SIM_LOCK_PERS_CHK_OK,
119 SIM_LOCK_SIM_REM,
120 SMLK_PUK,
121 SMLK_SHOW_FC_FAIL,
122 SMLK_SHOW_FC_SUCC,
123 SMLK_SHOW_FC_FAIL1,
124 #endif
125 INSERT_CARD,
126 CARD_REJECTED,
127 PIN_OK,
128 PIN2_OK,
129 PIN1_OK,
130 PIN1_STATUS,
131 PIN1_STATUS_END,
132 PIN2_ABORT,
133 PIN1_ABORT,
134 PIN1_REQ,
135 PIN2_REQ,
136 PIN1_REQ_ATT,
137 PUK1_REQ_ACT_INFO,
138 PUK1_REQ,
139 #ifdef SIM_PERS
140 PERM_BLK,
141 PUK_FCM_REQ,
142 #endif
143 PUK1_OK_END,
144 PIN1_REQ_OLD,
145 PIN2_REQ_OLD,
146 GSM_FAIL,
147 NEW_PIN_FAIL,
148 NEW_PIN2_FAIL,
149 PUK1_REQ_VER_INFO,
150 PUK1_UNBL_FAIL_INFO,
151 PUK1_UNBL_FATAL_ERROR,
152 INVALID_CARD,
153 NO_SIM_CARD,
154 SIM_UNLOCK_OK,
155 SIM_LOCK_ERR,
156 SIM_PLOCK_REQ,
157 SIM_NLOCK_REQ,
158 SIM_NSLOCK_REQ,
159 SIM_SPLOCK_REQ,
160 SIM_CLOCK_REQ,
161 SIM_PLOCK,
162 SIM_NLOCK,
163 SIM_NSLOCK,
164 SIM_SPLOCK,
165 SIM_CLOCK,
166 TXT_ENTER_PIN1,
167 TXT_ENTER_PIN2,
168 TXT_ENTER_PUK1,
169 #ifdef SIM_PERS
170 ME_PERM_BLK,
171 #endif
172 TXT_ENTER_PUK2,
173 TXT_ENTER_NEW_PIN,
174 TXT_ENTER_NEW_PIN2,
175 TXT_ENTER_NEW_PIN_AGAIN,
176 TXT_ENTER_NEW_PIN_AGAIN2,
177 TXT_INVALID_CARD,
178 TXT_NO_CARD,
179 TXT_INSERT_CARD,
180 PIN1_END,
181 PIN2_END,
182 PUK1_END,
183 PIN_OK_INFO,
184 PIN_OK_END,
185 TXT_SIM_LOCK_ALL,
186 TXT_SIM_PLOCK,
187 TXT_SIM_NLOCK,
188 TXT_SIM_NSLOCK,
189 TXT_SIM_SPLOCK,
190 TXT_SIM_CLOCK,
191 PUK1_UNBL_SUCC,
192 SIM_REMOVED,
193 SIM_LOCK_ALL,
194 PIN1_CH_END,
195 PIN2_CH_END,
196 UNBL_OK,
197 FDN_UNBL_OK,
198 PIN2_REQ_ATT,
199 PIN1_CH_SUCC,
200 PIN2_CH_SUCC,
201 PUK2_REQ,
202 NEW_PIN_END,
203 NEW_PIN2_END,
204 PIN1_ENAB_END,
205 PIN1_DISAB_END,
206 PIN1_ENDIS_FAIL,
207 SETT_ABORT,
208 FDN_ACT_END,
209 FDN_ACTIVATED,
210 ADN_ACTIVATED,
211 FDN_FAIL,
212 FDN_WAIT,
213 FDN_DEACT_END,
214 IDLE_GSM_FAIL,
215 PIN2_SIM_FAILURE, // Marcus: Issue 1419: 16/12/2002
216 SIM_LOCKED, // June 16, 2005 REF: CRR 31267 x0021334
217 SIM_LOCKED_EMR_EDITOR, // June 16, 2005 REF: CRR 31267 x0021334
218 INVALID_IMEI, // Nov 24, 2005, a0876501, DR: OMAPS00045909
219 SHOW_IMEI_INVALID,// Nov 24, 2005, a0876501, DR: OMAPS00045909
220 TXT_INVALID_IMEI // Nov 24, 2005, a0876501, DR: OMAPS00045909
221 } PIN_CASE;
222
223
224 typedef enum
225 {
226 DEFAULT = 0,
227 ENABLE,
228 DISABLE,
229 FDN_ACTIV,
230 FDN_DEACTIV,
231 CHANGE_PIN,
232 CHANGE_PIN2,
233 IDLE_GSM,
234 PIN2_CHECK,
235 PIN1_CHECK
236 }SET_CASE;
237
238 #define FOCUSSED_PINS 1
239 #define NOT_FOCUSSED_PINS 0
240
241 //API define for a flag for PIN Emergency Entry
242 extern char pin_emerg_call[MIN_PIN];
243
244 void pin_init (T_MFW_HND parent_window);
245 T_MFW_HND pin_create (T_MFW_HND parent_window);
246 void pin_destroy (T_MFW_HND own_window);
247 int sim_event_cb_main (T_MFW_EVENT event, T_MFW_HND para);
248 T_MFW_HND pin_edt_create (T_MFW_HND parent_window);
249 void pin_edt_destroy (T_MFW_HND own_window);
250 T_MFW_HND pin_mess_create (T_MFW_HND parent_window);
251 void pin_mess_destroy(T_MFW_HND own_window);
252 void pin_messages(T_MFW_HND win, USHORT event, SHORT value, void * parameter);
253 int pin_info_cb(T_MFW_HND win, USHORT identifier, UBYTE reasons);
254 void sim_rem_init (T_MFW_HND parent_window);
255 void sim_rem_exit(T_MFW_HND parentWindow);
256 T_MFW_HND sim_rem_create (T_MFW_HND parent_window);
257 void sim_rem_destroy (T_MFW_HND own_window);
258 int sim_rem_cb_main (T_MFW_EVENT event, T_MFW_HND para);
259 int pinsIsFocussed(void);
260 void setting_pin_init (T_MFW_HND parent_window);
261 T_MFW_HND setting_pin_create (T_MFW_HND parent_window);
262 void setting_pin_destroy (T_MFW_HND own_window);
263 int sim_event_cb_setting (T_MFW_EVENT event, T_MFW_HND para);
264 U16 set_pin_ch_item_flag (struct MfwMnuTag * m,struct MfwMnuAttrTag * ma,struct MfwMnuItemTag * mi);
265 U16 set_pin_en_item_flag (struct MfwMnuTag * m,struct MfwMnuAttrTag * ma,struct MfwMnuItemTag * mi);
266 U16 set_pin_dis_item_flag (struct MfwMnuTag * m,struct MfwMnuAttrTag * ma,struct MfwMnuItemTag * mi);
267 U16 set_pin2_ch_item_flag (struct MfwMnuTag * m,struct MfwMnuAttrTag * ma,struct MfwMnuItemTag * mi);
268 void set_pin_info_cb(T_MFW_HND win, USHORT identifier, UBYTE reasons);
269 void set_pin_messages(T_MFW_HND win, USHORT event, SHORT value, void * parameter);
270 void set_pin_mess_destroy (T_MFW_HND own_window);
271 T_MFW_HND set_pin_mess_create(T_MFW_HND parent_window);
272 void set_pin_edt_destroy (T_MFW_HND own_window);
273 T_MFW_HND set_pin_edt_create (T_MFW_HND parent_window);
274 int pin_change (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
275 int pin2_change (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
276 void setting_pin_main(T_MFW_HND win, USHORT event, SHORT value, void * parameter);
277 int pin_disable (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
278 int pin_enable (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
279 int pin_status (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
280 int pin2_fdn_activate (void);
281 int pin2_fdn_deactivate (void);
282 #ifdef SIM_PERS
283 void setLockActionLock(void);
284 void setLockActionUnlock(void);
285 void setLockActionChPwd(void);
286 void setLockActionChkStat(void);
287 int SIMLock_resetFC (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
288 int setLockTypeNs (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
289 int setLockTypeSp (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
290 int setLockTypeCp (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
291 int setLockTypePs (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
292 int setLockTypeNw (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
293 int get_fc_attempts_left (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
294 int get_fc_max_value (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
295 int get_fail_reset_fc_max_value (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
296 int get_succ_reset_fc_max_value (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
297 int get_fail_reset_fc_attempts_left (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
298 int get_succ_reset_fc_attempts_left (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
299 int get_timer_flag_value (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
300 int get_etsi_flag_value (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
301 int get_airtel_ind_flag_value (struct MfwMnuTag * m, struct MfwMnuItemTag * i);
302 #endif
303 void backpinFDNactdeact(void);
304 int pin2_check (T_MFW_HND parent_window);
305 int pin1_check (T_MFW_HND parent_window);
306 int pinsSetIsFocussed(void);
307 int fdnActivate(struct MfwMnuTag * m, struct MfwMnuItemTag * i);
308 int fdnDeactivate(struct MfwMnuTag * m, struct MfwMnuItemTag * i);
309 U16 set_fdn_on_item_flag (struct MfwMnuTag * m, struct MfwMnuAttrTag * ma, struct MfwMnuItemTag * mi);
310 U16 set_fdn_off_item_flag (struct MfwMnuTag * m, struct MfwMnuAttrTag * ma, struct MfwMnuItemTag * mi);
311 int gsm_idle (T_MFW_HND parent_window,char * string);
312 void pin_exit (void);
313 int mmiPinsEmergencyCall(void);
314 void mmiPinsResetEmergencyCall(void);
315 #endif
316