FreeCalypso > hg > fc-tourmaline
comparison src/ui/bmi/mmiServices.h @ 121:c106cb01dfa4
mmiServices.h: bogotab fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 10 Nov 2020 05:56:53 +0000 |
parents | c0052fe355d3 |
children |
comparison
equal
deleted
inserted
replaced
120:262aa591dc7a | 121:c106cb01dfa4 |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 | 2 |
3 CONDAT (UK) | 3 CONDAT (UK) |
4 | 4 |
5 ******************************************************************************** | 5 ******************************************************************************** |
6 | 6 |
7 This software product is the property of Condat (UK) Ltd and may not be | 7 This software product is the property of Condat (UK) Ltd and may not be |
8 disclosed to any third party without the express permission of the owner. | 8 disclosed to any third party without the express permission of the owner. |
9 | 9 |
10 ******************************************************************************** | 10 ******************************************************************************** |
11 | 11 |
12 $Project name: Basic MMI | 12 $Project name: Basic MMI |
13 $Project code: BMI (6349) | 13 $Project code: BMI (6349) |
14 $Module: Services | 14 $Module: Services |
15 $File: MmiServices.h | 15 $File: MmiServices.h |
16 $Revision: 1.0 | 16 $Revision: 1.0 |
17 | 17 |
18 $Author: Condat(UK) | 18 $Author: Condat(UK) |
19 $Date: 25/10/00 | 19 $Date: 25/10/00 |
20 | 20 |
21 ******************************************************************************** | 21 ******************************************************************************** |
22 | 22 |
23 Description: | 23 Description: |
24 | 24 |
27 $History: MmiServices.h | 27 $History: MmiServices.h |
28 May 30, 2006 REF:OMAPS00079650 a0393213 (R.Prabakar) | 28 May 30, 2006 REF:OMAPS00079650 a0393213 (R.Prabakar) |
29 Description : CPHS Call Forwarding feature implementation | 29 Description : CPHS Call Forwarding feature implementation |
30 Solution : As part of implementation, in this file, some #defines and structure definitions are moved from | 30 Solution : As part of implementation, in this file, some #defines and structure definitions are moved from |
31 MmiServices.c to MmiServices.h | 31 MmiServices.c to MmiServices.h |
32 Jun 02,2004 CRR:13649 xpradipg-SASKEN | 32 Jun 02,2004 CRR:13649 xpradipg-SASKEN |
33 subject: CBA : Management of password | 33 subject: CBA : Management of password |
34 solution: password is promted on selecting activation/deactivation option as against the previous | 34 solution: password is promted on selecting activation/deactivation option as against the previous |
35 case where it was shown up on selecting CallBarring option in the Network Services menu. | 35 case where it was shown up on selecting CallBarring option in the Network Services menu. |
36 25/10/00 Original Condat(UK) BMI version. | 36 25/10/00 Original Condat(UK) BMI version. |
37 | 37 |
38 $End | 38 $End |
39 | 39 |
40 *******************************************************************************/ | 40 *******************************************************************************/ |
41 | 41 |
43 #define _DEF_MMI_SERVICES_H_ | 43 #define _DEF_MMI_SERVICES_H_ |
44 | 44 |
45 /* | 45 /* |
46 * External Interfaces | 46 * External Interfaces |
47 */ | 47 */ |
48 | |
49 | 48 |
50 | 49 |
51 /* | 50 /* |
52 * Top Window Defintions | 51 * Top Window Defintions |
53 */ | 52 */ |
54 T_MFW_HND services_create (T_MFW_HND parent_window); | 53 T_MFW_HND services_create (T_MFW_HND parent_window); |
55 void services_destroy (T_MFW_HND own_window); | 54 void services_destroy (T_MFW_HND own_window); |
56 void services (T_MFW_HND win, USHORT event, SHORT value, void * parameter); | 55 void services (T_MFW_HND win, USHORT event, SHORT value, void * parameter); |
57 | |
58 | |
59 | 56 |
60 | 57 |
61 /* | 58 /* |
62 * Event definitions | 59 * Event definitions |
63 */ | 60 */ |
72 #define SS_CB_CNF 110 | 69 #define SS_CB_CNF 110 |
73 | 70 |
74 /* REASONS */ | 71 /* REASONS */ |
75 typedef enum | 72 typedef enum |
76 { | 73 { |
77 ServicesIdle = ServicesDummy, | 74 ServicesIdle = ServicesDummy, |
78 ServicesOk, | 75 ServicesOk, |
79 ServicesFailed, | 76 ServicesFailed, |
80 ServicesActCW, | 77 ServicesActCW, |
81 ServicesDeactCW, | 78 ServicesDeactCW, |
82 ServicesCheckCW, | 79 ServicesCheckCW, |
83 ServicesCheckCW_OK, | 80 ServicesCheckCW_OK, |
84 ServicesActCF, | 81 ServicesActCF, |
85 ServicesDeactCF, | 82 ServicesDeactCF, |
86 ServicesCheckCF, | 83 ServicesCheckCF, |
87 ServicesCFU_OK, | 84 ServicesCFU_OK, |
88 ServicesCB_OK, | 85 ServicesCB_OK, |
89 ServicesExecCF, | 86 ServicesExecCF, |
90 ServicesDoCallDivert, | 87 ServicesDoCallDivert, |
91 ServicesResShow, | 88 ServicesResShow, |
92 ServicesActCLIR, | 89 ServicesActCLIR, |
93 ServicesDeactCLIR, | 90 ServicesDeactCLIR, |
94 ServicesCheckCLIR, | 91 ServicesCheckCLIR, |
95 ServicesCheckCLI_OK, | 92 ServicesCheckCLI_OK, |
96 ServicesIMEI_OK, | 93 ServicesIMEI_OK, |
97 ServicesUSSD_REQ_OK, | 94 ServicesUSSD_REQ_OK, |
98 ServicesUSSD_CNF_OK, | 95 ServicesUSSD_CNF_OK, |
99 ServicesUSSDEnter, | 96 ServicesUSSDEnter, |
100 ServicesUSSDEnter_Send, | 97 ServicesUSSDEnter_Send, |
161 } T_ss_feature_cb; | 158 } T_ss_feature_cb; |
162 | 159 |
163 typedef struct | 160 typedef struct |
164 { | 161 { |
165 T_MMI_CONTROL mmi_control; | 162 T_MMI_CONTROL mmi_control; |
166 T_MFW_HND win; // window handle | 163 T_MFW_HND win; // window handle |
167 T_MFW_HND ss_handle; /* MFW services handler */ | 164 T_MFW_HND ss_handle; /* MFW services handler */ |
168 T_MFW_HND kbd; | 165 T_MFW_HND kbd; |
169 T_MFW_HND kbd_long; | 166 T_MFW_HND kbd_long; |
170 // T_MFW_CM_AOC_INFO aocInfo; | 167 // T_MFW_CM_AOC_INFO aocInfo; |
171 T_MFW_HND info_win; /* handle to info dialog */ | 168 T_MFW_HND info_win; /* handle to info dialog */ |
172 T_MFW_HND info_wait; /* handle to wait dialog */ | 169 T_MFW_HND info_wait; /* handle to wait dialog */ |
173 T_MFW_HND cb_menu_win; /* handle to ussd number dialog */ | 170 T_MFW_HND cb_menu_win; /* handle to ussd number dialog */ |
174 T_MFW_HND input_number_win; /* handle to call forward dialog */ | 171 T_MFW_HND input_number_win; /* handle to call forward dialog */ |
175 | 172 |
176 USHORT event; | 173 USHORT event; |
177 char edt_buf_name[MAX_ALPHA_LEN];/*MC SPR 1257*/ | 174 char edt_buf_name[MAX_ALPHA_LEN];/*MC SPR 1257*/ |
178 char edt_buf_number[PHB_MAX_LEN]; | 175 char edt_buf_number[PHB_MAX_LEN]; |
179 char edt_buf_cb_password[CB_PSW_LEN+1]; | 176 char edt_buf_cb_password[CB_PSW_LEN+1]; |
180 char edt_buf_cb_new_password[CB_PSW_LEN+1]; | 177 char edt_buf_cb_new_password[CB_PSW_LEN+1]; |
181 char edt_buf_cb_conf_new_password[CB_PSW_LEN+1]; | 178 char edt_buf_cb_conf_new_password[CB_PSW_LEN+1]; |
182 #ifndef NEW_EDITOR /* SPR#1428 - SH - New Editor changes - no longer required */ | 179 #ifndef NEW_EDITOR /* SPR#1428 - SH - New Editor changes - no longer required */ |
183 MfwEdtAttr edt_attr_name; | 180 MfwEdtAttr edt_attr_name; |
184 MfwEdtAttr edt_attr_number; | 181 MfwEdtAttr edt_attr_number; |
185 #endif /* ifndef NEW_EDITOR */ | 182 #endif /* ifndef NEW_EDITOR */ |
186 T_ss_feature_cf * mfw_ss_cf; | 183 T_ss_feature_cf * mfw_ss_cf; |
187 T_ss_feature_cw * mfw_ss_cw; | 184 T_ss_feature_cw * mfw_ss_cw; |
188 T_ss_feature_cb * mfw_ss_cb; | 185 T_ss_feature_cb * mfw_ss_cb; |
189 UBYTE current_feature; | 186 UBYTE current_feature; |
190 UBYTE max_feature; | 187 UBYTE max_feature; |
191 UBYTE dcs; /* need it for sending ussd to mfw */ | 188 UBYTE dcs; /* need it for sending ussd to mfw */ |
192 | 189 |
193 /* | 190 /* |
194 ** NDH : 28/08/2003 | 191 ** NDH : 28/08/2003 |
195 ** | 192 ** |
196 ** cfu_services is a binary flag to determine which (if any) of the Call Frwd Uncond | 193 ** cfu_services is a binary flag to determine which (if any) of the Call Frwd Uncond |
197 ** services are active. The map is as follows : | 194 ** services are active. The map is as follows : |
198 ** bit 0 : Voice Calls ( & 0x01) | 195 ** bit 0 : Voice Calls ( & 0x01) |
199 ** bit 1 : Fax Calls ( & 0x02) | 196 ** bit 1 : Fax Calls ( & 0x02) |
200 ** bit 2 : Data Calls ( & 0x04) | 197 ** bit 2 : Data Calls ( & 0x04) |
201 ** bit 3 : SMS ( & 0x08) | 198 ** bit 3 : SMS ( & 0x08) |
202 ** bit 4 : unused - for future expansion | 199 ** bit 4 : unused - for future expansion |
203 ** bit 5 : unused - for future expansion | 200 ** bit 5 : unused - for future expansion |
204 ** bit 6 : unused - for future expansion | 201 ** bit 6 : unused - for future expansion |
205 ** bit 7 : unused - for future expansion | 202 ** bit 7 : unused - for future expansion |
206 */ | 203 */ |
207 UBYTE cfu_services; | 204 UBYTE cfu_services; |
208 } T_ss; | 205 } T_ss; |
209 | 206 |
210 EXTERN T_ss ss_data; | 207 EXTERN T_ss ss_data; |
211 #define SERVICESIDLE ServicesIdle | 208 #define SERVICESIDLE ServicesIdle |
212 #define SERVICESOK ServicesOk | 209 #define SERVICESOK ServicesOk |
264 void services (T_MFW_HND win, USHORT event, SHORT value, void * parameter); | 261 void services (T_MFW_HND win, USHORT event, SHORT value, void * parameter); |
265 | 262 |
266 void servicesExec (int reason, MmiState next); | 263 void servicesExec (int reason, MmiState next); |
267 | 264 |
268 | 265 |
269 | |
270 | |
271 void servicesDivertActivate(void); | 266 void servicesDivertActivate(void); |
272 void servicesDivertDeactivate(void); | 267 void servicesDivertDeactivate(void); |
273 void servicesDivertCheck(void); | 268 void servicesDivertCheck(void); |
274 void servicesDivertDeactivate(void); | 269 void servicesDivertDeactivate(void); |
275 void servicesDivertVoice(void); | 270 void servicesDivertVoice(void); |
323 void servicesUSSDAddNew(void); | 318 void servicesUSSDAddNew(void); |
324 #endif | 319 #endif |
325 | 320 |
326 void featurePlaceholder(void); //SPR#1113 - DS - Added prototype for placeholder function for not-yet-implemented features. | 321 void featurePlaceholder(void); //SPR#1113 - DS - Added prototype for placeholder function for not-yet-implemented features. |
327 #endif | 322 #endif |
328 | |
329 |