FreeCalypso > hg > fc-tourmaline
comparison src/ui/bmi/mmiCall.h @ 104:c366f68d74d2
mmiCall.h: bogotab fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 08 Nov 2020 23:05:49 +0000 |
parents | c0052fe355d3 |
children | 62480f597962 |
comparison
equal
deleted
inserted
replaced
103:8beb376cdb57 | 104:c366f68d74d2 |
---|---|
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: Call | 14 $Module: Call |
15 $File: mmiCall.h | 15 $File: mmiCall.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 |
25 ******************************************************************************** | 25 ******************************************************************************** |
26 | 26 |
27 $History: mmiCall.h | 27 $History: mmiCall.h |
28 | 28 |
29 | 29 |
30 August 01, 2007 DR: OMAPS00137399 x0080701 (Bharat) | 30 August 01, 2007 DR: OMAPS00137399 x0080701 (Bharat) |
31 Description: COMBO PLUS: Voice can not be heard in a call when MP3 tone was set | 31 Description: COMBO PLUS: Voice can not be heard in a call when MP3 tone was set |
32 Have an MP3 tone set as Ringer. Make a call to the target. | 32 Have an MP3 tone set as Ringer. Make a call to the target. |
33 Accept the same, no voice can be heard from the calling | 33 Accept the same, no voice can be heard from the calling |
34 device or from the board that received | 34 device or from the board that received |
35 Issue: Timing Synchronization Issue between BMI-ACI-L1. | 35 Issue: Timing Synchronization Issue between BMI-ACI-L1. |
36 BMI calls sAT_A to accept the call. ACI then sends the RING_OFF signal | 36 BMI calls sAT_A to accept the call. ACI then sends the RING_OFF signal |
37 to BMI, wherein BMI does a Ringer Stop. After this, ACI calls Vocoder | 37 to BMI, wherein BMI does a Ringer Stop. After this, ACI calls Vocoder |
38 Enable. However, the Ringer Stop goes to L1 much later after Vocoder | 38 Enable. However, the Ringer Stop goes to L1 much later after Vocoder |
39 Enable reaches L1 due to which the Vocoder eventually gets disabled. | 39 Enable reaches L1 due to which the Vocoder eventually gets disabled. |
40 Solution: The Vocoder Enable Implementation is removed from ACI and | 40 Solution: The Vocoder Enable Implementation is removed from ACI and |
41 shall be called by BMI on receipt of AS_STOP_IND | 41 shall be called by BMI on receipt of AS_STOP_IND |
42 (AS_STOP_IND is the message sent by AS to BMI when BMI invokes | 42 (AS_STOP_IND is the message sent by AS to BMI when BMI invokes |
43 as_stop for ringer_stop). This way, it is assured that the Vocoder | 43 as_stop for ringer_stop). This way, it is assured that the Vocoder |
44 Enable Request reaches L1 only after Ringer Stop is completely done | 44 Enable Request reaches L1 only after Ringer Stop is completely done |
45 | 45 |
46 Oct 8 2006 OMAPS00097714 x0039928(sumanth) | 46 Oct 8 2006 OMAPS00097714 x0039928(sumanth) |
47 TTY HCO/VCO options in MMI | 47 TTY HCO/VCO options in MMI |
48 | 48 |
49 Mar 11, 2006 REF:DR:OMAPS00061467 x0035544 | 49 Mar 11, 2006 REF:DR:OMAPS00061467 x0035544 |
50 Description: 27.22.4.13.3 SET UP CALL (display of icons) fails. | 50 Description: 27.22.4.13.3 SET UP CALL (display of icons) fails. |
51 Solution: created a variable of type T_SAT_IconData at the structure T_call to store the Icon data | 51 Solution: created a variable of type T_SAT_IconData at the structure T_call to store the Icon data |
52 inorder to display it on calling screen. | 52 inorder to display it on calling screen. |
53 | 53 |
54 xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 | 54 xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 |
55 Description: Support for various audio profiles | 55 Description: Support for various audio profiles |
56 Solution: The support for audio device's carkit/headset/loudspeaker/handheld. | 56 Solution: The support for audio device's carkit/headset/loudspeaker/handheld. |
57 The audio device is enabled as per the user actions. | 57 The audio device is enabled as per the user actions. |
58 | 58 |
59 25/10/00 Original Condat(UK) BMI version. | 59 25/10/00 Original Condat(UK) BMI version. |
60 | 60 |
61 | 61 |
62 Mar 28, 2006 REF:ER OMAPS00071798 x0043642 | 62 Mar 28, 2006 REF:ER OMAPS00071798 x0043642 |
63 Added new options in BMI to accept the value for tty audio mode, | 63 Added new options in BMI to accept the value for tty audio mode, |
64 and the accepted value is passed as parameter in function call sAT_PercentCTTY | 64 and the accepted value is passed as parameter in function call sAT_PercentCTTY |
71 #define _DEF_MMI_CALL_H_ | 71 #define _DEF_MMI_CALL_H_ |
72 | 72 |
73 #define ALLOC_MEMORY mfwAlloc | 73 #define ALLOC_MEMORY mfwAlloc |
74 #define FREE_MEMORY mfwFree | 74 #define FREE_MEMORY mfwFree |
75 | 75 |
76 // xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 | 76 // xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 |
77 #ifdef FF_MMI_AUDIO_PROFILE | 77 #ifdef FF_MMI_AUDIO_PROFILE |
78 #include "mfw_mme.h" | 78 #include "mfw_mme.h" |
79 #endif | 79 #endif |
80 #include "mfw_phb.h" | 80 #include "mfw_phb.h" |
81 #include "mfw_cm.h" | 81 #include "mfw_cm.h" |
86 typedef enum | 86 typedef enum |
87 { | 87 { |
88 CallNone=CallDummy, | 88 CallNone=CallDummy, |
89 CallNormal, | 89 CallNormal, |
90 CallDone, | 90 CallDone, |
91 CallNew, | 91 CallNew, |
92 CallSingle, | 92 CallSingle, |
93 CallTwo, | 93 CallTwo, |
94 CallConference, | 94 CallConference, |
95 CallPrivateCall, | 95 CallPrivateCall, |
96 CallSingleMultiparty, | 96 CallSingleMultiparty, |
97 CallMultipartySingle | 97 CallMultipartySingle |
98 | 98 |
99 } E_CALL_TYPE;/*a0393213 warnings removal-typedef name added*/ | 99 } E_CALL_TYPE;/*a0393213 warnings removal-typedef name added*/ |
100 | 100 |
101 typedef enum | 101 typedef enum |
102 { | 102 { |
104 ViewEnd, | 104 ViewEnd, |
105 ViewMenu, | 105 ViewMenu, |
106 ViewCalling, | 106 ViewCalling, |
107 ViewIncoming, | 107 ViewIncoming, |
108 ViewDTMF, | 108 ViewDTMF, |
109 ViewDTMFMenu, | 109 ViewDTMFMenu, |
110 ViewCallError, | 110 ViewCallError, |
111 ViewSelectPrivateCall, | 111 ViewSelectPrivateCall, |
112 ViewScratchPad, | 112 ViewScratchPad, |
113 ViewWaitingAnswer, | 113 ViewWaitingAnswer, |
114 ViewAutoRedial, | 114 ViewAutoRedial, |
115 ViewSendingDTMF, | 115 ViewSendingDTMF, |
116 ViewShortWait, //GW Added | 116 ViewShortWait, //GW Added |
117 ViewMulticallControl, | 117 ViewMulticallControl, |
118 ViewMulticallControlCallWaiting, | 118 ViewMulticallControlCallWaiting, |
119 ViewMulticallControlIncomingCall | 119 ViewMulticallControlIncomingCall |
120 | 120 |
121 } E_CALL_MESSAGE; /*a0393213 warnings removal-typedef name added*/ | 121 } E_CALL_MESSAGE; /*a0393213 warnings removal-typedef name added*/ |
122 | 122 |
123 typedef enum | 123 typedef enum |
124 { | 124 { |
135 | 135 |
136 #define MAX_CALLS 6 | 136 #define MAX_CALLS 6 |
137 | 137 |
138 /*mc, SPR 1319*/ | 138 /*mc, SPR 1319*/ |
139 #ifdef LSCREEN | 139 #ifdef LSCREEN |
140 #define MAX_CHAR PHB_MAX_LEN /*MC SPR 1442*/ | 140 #define MAX_CHAR PHB_MAX_LEN /*MC SPR 1442*/ |
141 #else | 141 #else |
142 #define MAX_CHAR 12 | 142 #define MAX_CHAR 12 |
143 #endif | 143 #endif |
144 #define MAX_LINE 14 | 144 #define MAX_LINE 14 |
145 | 145 |
157 int mode; | 157 int mode; |
158 UBYTE muted; | 158 UBYTE muted; |
159 UBYTE view; | 159 UBYTE view; |
160 UBYTE numCalls; | 160 UBYTE numCalls; |
161 SHORT selected; | 161 SHORT selected; |
162 long time[MAX_CALLS]; | 162 long time[MAX_CALLS]; |
163 T_MFW_CM_STATUS status[MAX_CALLS]; | 163 T_MFW_CM_STATUS status[MAX_CALLS]; |
164 | 164 |
165 } tMmiCallTable; | 165 } tMmiCallTable; |
166 | 166 |
167 typedef enum | 167 typedef enum |
168 { | 168 { |
169 CALL_INIT, | 169 CALL_INIT, |
170 CALL_SCRATCHPAD_INIT, | 170 CALL_SCRATCHPAD_INIT, |
171 CALL_CALLSELECT_INIT, //GW Added ???? | 171 CALL_CALLSELECT_INIT, //GW Added ???? |
172 CALL_DESTROY_WAITING, | 172 CALL_DESTROY_WAITING, |
173 CALL_OUTGOING_SAT, | 173 CALL_OUTGOING_SAT, |
174 CALL_DESTROY_CALLING_WINDOW | 174 CALL_DESTROY_CALLING_WINDOW |
175 } E_CALL_EVENTS; /*a0393213 warnings removal-typedef name added*/ | 175 } E_CALL_EVENTS; /*a0393213 warnings removal-typedef name added*/ |
176 | 176 |
177 | 177 |
178 | 178 |
179 /* SPR#1352 - SH - Possible status values for TTY */ | 179 /* SPR#1352 - SH - Possible status values for TTY */ |
180 #ifdef MMI_TTY_ENABLED | 180 #ifdef MMI_TTY_ENABLED |
181 typedef enum | 181 typedef enum |
182 { | 182 { |
183 CALL_TTY_OFF = 0, /* TTY always off */ | 183 CALL_TTY_OFF = 0, /* TTY always off */ |
184 CALL_TTY_ALWAYSON, /* TTY always on */ | 184 CALL_TTY_ALWAYSON, /* TTY always on */ |
185 CALL_TTY_ONNEXTCALL /* TTY on for next call only */ | 185 CALL_TTY_ONNEXTCALL /* TTY on for next call only */ |
186 } E_CALL_TTY; /*a0393213 warnings removal-typedef name added*/ | 186 } E_CALL_TTY; /*a0393213 warnings removal-typedef name added*/ |
187 #endif | 187 #endif |
188 /* end SH */ | 188 /* end SH */ |
189 | 189 |
190 /* | 190 /* |
191 ** This is a tri-state flag, to ensure that the Vocoder is not disabled | 191 ** This is a tri-state flag, to ensure that the Vocoder is not disabled |
192 ** when a waiting call is notified while already in call. | 192 ** when a waiting call is notified while already in call. |
193 */ | 193 */ |
194 typedef enum | 194 typedef enum |
195 { | 195 { |
196 CALL_VOCODER_IDLE = 0, /* BMI in Idle State, Vocoder not under BMI control */ | 196 CALL_VOCODER_IDLE = 0, /* BMI in Idle State, Vocoder not under BMI control */ |
197 CALL_VOCODER_DISABLED, /* Vocoder is disabled prior to the call being connected */ | 197 CALL_VOCODER_DISABLED, /* Vocoder is disabled prior to the call being connected */ |
198 CALL_VOCODER_INCALL /* Vocoder is enabled and In-Call */ | 198 CALL_VOCODER_INCALL /* Vocoder is enabled and In-Call */ |
199 } tMmiVcState; | 199 } tMmiVcState; |
200 | 200 |
201 struct QUEUETYPE | 201 struct QUEUETYPE |
202 { | 202 { |
203 SHORT call_number; | 203 SHORT call_number; |
207 typedef struct QUEUETYPE TYPEQUEUE; | 207 typedef struct QUEUETYPE TYPEQUEUE; |
208 | 208 |
209 typedef struct | 209 typedef struct |
210 { | 210 { |
211 T_MMI_CONTROL mmi_control; | 211 T_MMI_CONTROL mmi_control; |
212 T_MFW_HND win; // window handle | 212 T_MFW_HND win; // window handle |
213 T_MFW_HND kbd; | 213 T_MFW_HND kbd; |
214 T_MFW_HND kbd_long; | 214 T_MFW_HND kbd_long; |
215 T_MFW_HND win_search; | 215 T_MFW_HND win_search; |
216 T_MFW_HND cm; | 216 T_MFW_HND cm; |
217 T_MFW_HND win_incoming; | 217 T_MFW_HND win_incoming; |
218 T_MFW_HND win_calling; | 218 T_MFW_HND win_calling; |
219 T_MFW_HND win_ending; | 219 T_MFW_HND win_ending; |
220 T_MFW_HND win_menu; | 220 T_MFW_HND win_menu; |
221 T_MFW_HND win_waiting; | 221 T_MFW_HND win_waiting; |
222 T_MFW_HND win_sending_dtmf; | 222 T_MFW_HND win_sending_dtmf; |
223 #ifdef NEW_EDITOR | 223 #ifdef NEW_EDITOR |
224 T_ED_DATA *editorCall; /* SPR#1428 - SH - New Editor changes */ | 224 T_ED_DATA *editorCall; /* SPR#1428 - SH - New Editor changes */ |
225 #else /* NEW_EDITOR */ | 225 #else /* NEW_EDITOR */ |
226 T_MFW_HND editCall; | 226 T_MFW_HND editCall; |
227 #endif /* NEW_EDITOR */ | 227 #endif /* NEW_EDITOR */ |
228 T_MFW_HND win_redial; | 228 T_MFW_HND win_redial; |
229 T_MFW_HND timer; | 229 T_MFW_HND timer; |
230 | 230 |
231 /*SPR 1392*/ | 231 /*SPR 1392*/ |
232 T_MFW_HND win_deflectEdit; /*handle for call deflect editor.*/ | 232 T_MFW_HND win_deflectEdit; /*handle for call deflect editor.*/ |
233 T_MFW_HND win_deflecting; /*"Deflecting to..." window*/ | 233 T_MFW_HND win_deflecting; /*"Deflecting to..." window*/ |
234 T_MFW_HND win_deflectSearch; /*Call deflection phonebook search window*/ | 234 T_MFW_HND win_deflectSearch; /*Call deflection phonebook search window*/ |
235 char editor_buffer[20]; /*call deflection number buffer*/ | 235 char editor_buffer[20]; /*call deflection number buffer*/ |
236 T_DISPLAY_DATA inc_call_data; /*incoming call dialogue display info*/ | 236 T_DISPLAY_DATA inc_call_data; /*incoming call dialogue display info*/ |
237 /*1392 end*/ | 237 /*1392 end*/ |
238 T_MFW_PHB_ENTRY entry; | 238 T_MFW_PHB_ENTRY entry; |
239 int current_command; | 239 int current_command; |
240 UBYTE callStatus; | 240 UBYTE callStatus; |
241 tMmiCallTable calls; | 241 tMmiCallTable calls; |
242 int accessEnd; // controls when several calls are to be ended | 242 int accessEnd; // controls when several calls are to be ended |
243 int callWaitingEnd; | 243 int callWaitingEnd; |
244 int emergencyCall; | 244 int emergencyCall; |
245 int callsToEnd; | 245 int callsToEnd; |
246 long timeEnded; | 246 long timeEnded; |
247 TYPEQUEUE *endQueue; | 247 TYPEQUEUE *endQueue; |
248 SHORT incCall; | 248 SHORT incCall; |
249 SHORT outCall; | 249 SHORT outCall; |
250 int refreshConnect; | 250 int refreshConnect; |
251 int firstChar; | 251 int firstChar; |
252 int currentModule; | 252 int currentModule; |
253 int currentVolume; | 253 int currentVolume; |
254 SHORT singleCall; | 254 SHORT singleCall; |
255 unsigned char charSent; | 255 unsigned char charSent; |
256 char sendingDTMF; | 256 char sendingDTMF; |
257 T_MFW_CM_CW_INFO globalCWInfo; /* information about incoming call */ | 257 T_MFW_CM_CW_INFO globalCWInfo; /* information about incoming call */ |
258 char phbNameNumber[EDITOR_SIZE]; | 258 char phbNameNumber[EDITOR_SIZE]; |
259 char edtBufDTMF[EDITOR_SIZE]; /* edit buffer */ | 259 char edtBufDTMF[EDITOR_SIZE]; /* edit buffer */ |
260 #ifdef NEW_EDITOR | 260 #ifdef NEW_EDITOR |
261 T_ED_ATTR editorAttrCall; /* SPR#1428 - SH - New Editor changes */ | 261 T_ED_ATTR editorAttrCall; /* SPR#1428 - SH - New Editor changes */ |
262 T_ED_ATTR editorAttrDTMF; | 262 T_ED_ATTR editorAttrDTMF; |
263 #else /* NEW_EDITOR */ | 263 #else /* NEW_EDITOR */ |
264 MfwEdtAttr edtAttrCall; | 264 MfwEdtAttr edtAttrCall; |
265 MfwEdtAttr edtAttrDTMF; /* edit attributes: */ | 265 MfwEdtAttr edtAttrDTMF; /* edit attributes: */ |
266 #endif /* NEW_EDITOR */ | 266 #endif /* NEW_EDITOR */ |
267 T_MFW_CM_AOC_INFO aocInfo; | 267 T_MFW_CM_AOC_INFO aocInfo; |
268 USHORT ignore_disconnect; | 268 USHORT ignore_disconnect; |
269 T_MFW_CM_CALL_DIR call_direction; | 269 T_MFW_CM_CALL_DIR call_direction; |
270 UBYTE colp_number[MFW_NUM_LEN]; /* colp number */ | 270 UBYTE colp_number[MFW_NUM_LEN]; /* colp number */ |
271 int animationScreen; | 271 int animationScreen; |
272 #ifdef MMI_TTY_ENABLED | 272 #ifdef MMI_TTY_ENABLED |
273 UBYTE tty; /* SPR#1352 - SH - TTY status */ | 273 UBYTE tty; /* SPR#1352 - SH - TTY status */ |
274 #endif | 274 #endif |
275 //x0035544 Mar 09, 2006 DR:OMAPS00061467 | 275 //x0035544 Mar 09, 2006 DR:OMAPS00061467 |
276 #ifdef FF_MMI_SAT_ICON | 276 #ifdef FF_MMI_SAT_ICON |
277 T_SAT_IconData IconData; //Sat icon information | 277 T_SAT_IconData IconData; //Sat icon information |
278 #endif | 278 #endif |
279 tMmiVcState vocoderState; | 279 tMmiVcState vocoderState; |
280 } T_call; | 280 } T_call; |
281 /*x0039928 OMAPS00097714 HCO/VCO options - added to differenciate between normal/HCO/VCO tty option*/ | 281 /*x0039928 OMAPS00097714 HCO/VCO options - added to differenciate between normal/HCO/VCO tty option*/ |
282 #ifdef FF_TTY_HCO_VCO | 282 #ifdef FF_TTY_HCO_VCO |
283 typedef enum | 283 typedef enum |
284 { | 284 { |
285 TTY_ONLY_PF = 0, /* TTY only */ | 285 TTY_ONLY_PF = 0, /* TTY only */ |
286 TTY_VCO_PF, /* TTY HCO */ | 286 TTY_VCO_PF, /* TTY HCO */ |
287 TTY_HCO_PF /* TTY VCO */ | 287 TTY_HCO_PF /* TTY VCO */ |
288 } | 288 } |
289 T_MMI_TTY_PF_TYPE; | 289 T_MMI_TTY_PF_TYPE; |
290 #endif | 290 #endif |
291 | 291 |
292 /*August 01, 2007 DR: OMAPS00137399 x0080701 (Bharat) -- Start */ | 292 /*August 01, 2007 DR: OMAPS00137399 x0080701 (Bharat) -- Start */ |
293 | 293 |
294 typedef enum | 294 typedef enum |
295 { | 295 { |
296 BMI_INCOMING_CALL_NONE = 0, | 296 BMI_INCOMING_CALL_NONE = 0, |
297 BMI_INCOMING_CALL_RINGERSTOPPED | 297 BMI_INCOMING_CALL_RINGERSTOPPED |
298 } | 298 } |
299 E_IN_CALL_RINGER_STATUS; | 299 E_IN_CALL_RINGER_STATUS; |
300 | 300 |
301 void bmi_incomingcall_set_ringer_status(E_IN_CALL_RINGER_STATUS eStatus); | 301 void bmi_incomingcall_set_ringer_status(E_IN_CALL_RINGER_STATUS eStatus); |
302 void bmi_incomingcall_get_ringer_status(E_IN_CALL_RINGER_STATUS *peStatus); | 302 void bmi_incomingcall_get_ringer_status(E_IN_CALL_RINGER_STATUS *peStatus); |
337 int call_tty_menuselect(MfwMnu* menu, MfwMnuItem* item); | 337 int call_tty_menuselect(MfwMnu* menu, MfwMnuItem* item); |
338 void call_tty_statuswin(void); | 338 void call_tty_statuswin(void); |
339 void call_tty_revert(void); | 339 void call_tty_revert(void); |
340 #endif | 340 #endif |
341 /* end SH */ | 341 /* end SH */ |
342 // xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 | 342 // xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 |
343 #ifdef FF_MMI_AUDIO_PROFILE | 343 #ifdef FF_MMI_AUDIO_PROFILE |
344 USHORT item_headset_status( struct MfwMnuTag *m, struct MfwMnuAttrTag *ma, struct MfwMnuItemTag *mi ); | 344 USHORT item_headset_status( struct MfwMnuTag *m, struct MfwMnuAttrTag *ma, struct MfwMnuItemTag *mi ); |
345 USHORT item_handheld_status( struct MfwMnuTag *m, struct MfwMnuAttrTag *ma, struct MfwMnuItemTag *mi ); | 345 USHORT item_handheld_status( struct MfwMnuTag *m, struct MfwMnuAttrTag *ma, struct MfwMnuItemTag *mi ); |
346 USHORT item_loudspeaker_status( struct MfwMnuTag *m, struct MfwMnuAttrTag *ma, struct MfwMnuItemTag *mi ); | 346 USHORT item_loudspeaker_status( struct MfwMnuTag *m, struct MfwMnuAttrTag *ma, struct MfwMnuItemTag *mi ); |
347 USHORT item_carkit_status( struct MfwMnuTag *m, struct MfwMnuAttrTag *ma, struct MfwMnuItemTag *mi ); | 347 USHORT item_carkit_status( struct MfwMnuTag *m, struct MfwMnuAttrTag *ma, struct MfwMnuItemTag *mi ); |