comparison src/aci2/bmi/AUIWapMMS.c @ 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/auiwapmms.c@93999a60b835
children
comparison
equal deleted inserted replaced
119:b92a33c204b6 120:3c2acfa1a72f
1 /*******************************************************************************
2
3 Texas Instrument - SH
4
5 ********************************************************************************
6
7 This software product is the property of TI Ltd and may not be
8 disclosed to any third party without the express permission of the owner.
9
10 ********************************************************************************
11
12 $Project name:
13 $Project code:
14 $Module:
15 $File: AUIWapMMS.c
16 $Revision:
17
18 $Author: TISH
19 $Date:
20
21 ********************************************************************************
22
23 Description:
24 The user interface for WAP MMS.
25
26 ********************************************************************************
27
28 $History: AUIWapMMS.c
29
30 xrashmic 27 Jan, 2006 MMI-SPR-OMAPS00053357
31 To delete the please wait screen when we start receving a mms while we are trying to send one.
32
33 xrashmic 23 Nov, 2005 MMI-SPR-OMAPS00047637
34 Sepearted the call back funtion for the sending and receving mms info dialog screns.
35
36 Jun 30 2005 REF: MMI-SPR-30212 x0012849
37 Display 100% sent before displaying MMS sent.
38
39 Jun 30 2005 REF: MMI-SPR-30213 x0012849
40 To avoid "connecting" dialog coming up while receiving MMS .
41
42 May 11 2005 REF: MMI-SPR-29887 x0012849
43 To Implement the deferred MMS retrieval.
44
45 xreddymn Mar-05-2005 MMI-SPR-26144
46 Added changes for cancel sending MMS
47 xreddymn May-15-2005 MMI-SPR-30962: Added changes to maintain WAP busy state
48 during MMS transactions.
49
50 Mar 22 2005 REF: MMI-SPR-29368 x0012849
51 Description :when receiving MMS. Between the message "receiving MMS" and "New MMS",
52 there is a short second that the screen will turn white.
53 Solution : Instead of deleting and drawing a new window update the window contents.
54
55 xreddymn Mar-05-2005 MMI-SPR-26144
56 Added changes for cancel sending MMS
57
58 Feb 28 2005 REF: MMI-SPR-28222 x0012849
59 To avoid showing a dialog box saying New MMS received, when it is actually not there in inbox.
60
61 xrashmic 08 Feb, 2005 MMI-SPR-27853
62 Error handling in sending MMS and also displaying the progress value
63
64 xrashmic 19 Aug, 2004 Bug: 2, 3, 36 and 42
65 All the status screen, .i.e sending, receiving etc. are displayed separatly for the MMS module.
66 Previously the WAP screens were being used.
67
68 29/09/03 - TISH - Created
69
70 $End
71
72 *******************************************************************************/
73
74
75 #include <stdio.h>
76 #include <string.h>
77 #include <stdlib.h>
78
79
80 #if defined (NEW_FRAME)
81
82 #include "typedefs.h"
83 #include "vsi.h"
84 #include "pei.h"
85 #include "custom.h"
86 #include "gsm.h"
87
88 #else /* NEW_FRAME */
89
90 #include "STDDEFS.H"
91 #include "custom.h"
92 #include "gsm.h"
93 #include "vsi.h"
94
95 #endif /* NEW_FRAME */
96
97 #include "mfw_sys.h"
98
99 #include "mfw_mfw.h"
100 #include "mfw_win.h"
101 #include "mfw_kbd.h"
102 #include "mfw_edt.h"
103 #include "mfw_tim.h"
104 #include "mfw_phb.h"
105 #include "mfw_sms.h"
106 #include "mfw_icn.h"
107 #include "mfw_mnu.h"
108 #include "mfw_lng.h"
109 #include "mfw_sat.h"
110 #include "mfw_kbd.h"
111 #include "mfw_nm.h"
112 #include "mfw_cm.h"
113
114 #include "dspl.h"
115
116 #include "wapmic_types.h"
117
118 #include "MmiMmi.h"
119 #include "MmiMain.h"
120 #include "MmiDummy.h"
121 #include "MmiDialogs.h"
122 #include "MmiLists.h"
123 #include "mmiCall.h"
124
125 #include "MmiMenu.h"
126 #include "MmiSoftKeys.h"
127 #include "MmiResources.h"
128
129 #include "MmiBlkLangDB.h"
130 #include "MmiBookUtils.h"
131 //#include "MmiEditor.h"
132 //#include "MmiEditor_i.h"
133 #include "MmiBookShared.h"
134 #include "ATBData.h"
135 #include "ATBWapAUI.h"
136 #include "mmiSmsMenu.h"
137 #include "mmismssend.h"
138 #include "AUIWapext.h"
139 #include "AUIWap.h"
140 //xrashmic 08 Feb, 2005 MMI-SPR-27853
141 #include "MmiDialogs.h"
142
143 #ifdef MMI_GPRS_ENABLED
144 #include "MmiGprs.h"
145 #endif
146
147 #include "cus_aci.h"
148 #include "prim.h"
149 #ifndef PCM_2_FFS
150 #include "pcm.h"
151 #endif
152
153
154 #include "mmiColours.h"
155 #include "font_bitmaps.h"
156
157
158 #if 0
159 typedef signed int INT16;
160 typedef signed long INT32;
161 typedef unsigned long UINT32;
162
163 #include "capiclnt.h"
164
165 #endif
166 #ifdef FF_MMI_MMS
167 // Jun 23 2005 REF: MMI-SPR-29887 x0012849
168 UBYTE rtvprogressValue=0;
169 char AUI_MMS_rtv_progress_string[8];
170 extern BOOL is_downloadcancelled;
171 void AUI_mms_wap_start_cb(UBYTE result);
172 //xrashmic 08 Feb, 2005 MMI-SPR-27853
173 extern int progressValue;
174 void AUI_mms_error_dialog(SHORT errorCode);
175 // May 12 2005 REF: MMI-SPR-29887 x0012849
176 extern BOOL is_deferdownload;
177
178 /*******************************************************************************
179
180 $Function: AUI_mms_wap_start
181
182 $Description: Start MMS
183 SPR#2088 - TISH - Added
184
185 $Returns: None
186
187 $Arguments: None
188
189 *******************************************************************************/
190
191 //xmzhou02 static void AUI_mms_wap_start_cb(UBYTE result)
192 void AUI_mms_wap_start_cb(UBYTE result)
193 {
194 T_WAP_DATA *data;
195
196 TRACE_FUNCTION("AUI_mms_wap_start_cb");
197
198 if (!result)
199 {
200 TRACE_EVENT("*** Failed to start up for WAP PUSH ***");
201 return;
202 }
203
204 data = AUI_wap_data();
205
206 //to do
207 return;
208 }
209 void AUI_mms_wap_start()
210 {
211
212 #ifdef TRACE_AUIWAP
213 TRACE_FUNCTION("AUI_mms_wap_start()");
214 #endif
215
216 AUI_wap_start(WAP_MMS, (T_WAP_CB)AUI_mms_wap_start_cb);
217
218 return;
219 }
220
221 // xreddymn Mar-05-2005 MMI-SPR-26144: Changes for cancel sending MMS
222 void AUI_mms_cancel_cb(T_MFW_HND win, USHORT identifier, USHORT reason);
223 void mms_post_error(void);
224 void AUI_mms_status_notify(int status);
225 char AUI_MMS_progress_string[8];
226 // May 11 2005 REF: MMI-SPR-29887 x0012849
227 void AUI_mms_recieve_cancel_cb(T_MFW_HND win, USHORT identifier, USHORT reason);
228
229 /*******************************************************************************
230
231 $Function: AUI_mms_send_progress
232
233 $Description: Displays progress for MMS send
234
235 $Returns: None.
236
237 $Arguments: progress: an integer value between 0 and 100
238 *******************************************************************************/
239
240 void AUI_mms_send_progress(int progress)
241 {
242 progressValue=progress;
243 // AUI_mms_status_notify(MMS_SEND_PROGRESS);
244 }
245
246 /*******************************************************************************
247
248 $Function: AUI_mms_send_start
249
250 $Description: Displays the initial "connecting" dialog
251
252 $Returns: None.
253
254 $Arguments: None.
255 *******************************************************************************/
256
257 void AUI_mms_send_start(void)
258 {
259 progressValue=0;
260 AUI_mms_status_notify(MMS_SEND_START);
261 }
262
263 /*******************************************************************************
264
265 $Function: AUI_wap_net_send_ind
266
267 $Description: Displays progress for MMS send
268
269 $Returns: None.
270
271 $Arguments: None.
272 *******************************************************************************/
273
274 void AUI_wap_net_send_ind(void)
275 {
276 T_WAP_DATA *data = AUI_wap_data();
277 // xreddymn May-19-2005 MMI-SPR-29887: Call AUI_mms_status notify only
278 // during a MMS send operation
279 if( (data->mms_win != NULL) && ((MMS_TYPE_SEND_START == data->mms_win_type) || (MMS_TYPE_SEND_PROGRESS == data->mms_win_type)) )
280 {
281 AUI_mms_status_notify(MMS_SEND_PROGRESS);
282 }
283 }
284
285 // xreddymn May-15-2005 MMI-SPR-30962: external functions
286 extern void MMS_set_WAP_busy(void);
287 extern void MMS_reset_WAP_busy(void);
288 extern void MMS_process_push_queue(void);
289
290 /*******************************************************************************
291
292 $Function: AUI_mms_status_notify
293
294 $Description:
295 xrashmic 08 Feb, 2005 MMI-SPR-27853
296 MMS send/rcv state is displayed to the user here
297 All calls to AUI_wap_status_notify is routed to this function for MMS module
298 xrashmic 19 Aug, 2004 Bug: 2, 3, 36 and 42
299
300 $Returns: None.
301
302 $Arguments:
303 *******************************************************************************/
304 void AUI_mms_status_notify(int status)
305 {
306 T_WAP_DATA *data = AUI_wap_data();
307 T_MFW_HND win_handle;
308 T_MFW_WIN * win_data ;
309 T_dialog_info * mms_info_dialog_data ;
310
311 if (!data)
312 {
313 return;
314 }
315
316 switch (status)
317 {
318 // May 11 2005 REF: MMI-SPR-29887 x0012849
319 // Control comes to this case immediately after coming to know that the retrieval condition is deferred
320 case MMS_NOTIFICATION_PROGRESS:
321 TRACE_EVENT("MMS_NOTIFICATION_PROGRESS");
322 data->mms_win_type = MMS_TYPE_NOTIFICATION_PROGRESS;
323 break;
324 // May 11 2005 REF: MMI-SPR-29887 x0012849
325 // Control comes to here once the Notification is responded
326 case MMS_NOTIFICATION_RECEIVED:
327 TRACE_EVENT("MMS_NOTIFICATION_RECEIVED");
328 if(MMS_TYPE_NOTIFICATION_PROGRESS == data->mms_win_type)
329 {
330 //xrashmic 23 Nov, 2005 MMI-SPR-OMAPS00047637
331 //Sepearted the call back funtion for the sending and receving mms info dialog screns.
332 data->mms_win=information_dialog(TxtNew,TxtMMSNotification,NULL,NULL,TxtNull,TxtSoftBack,FOREVER,KEY_RIGHT,(T_VOID_FUNC)AUI_mmsrcv_cb);
333 data->mms_win_type = MMS_TYPE_NOTIFICATION_RECEIVED;
334 }
335
336 break;
337 case MMS_PLEASEWAIT:
338 data->mms_win_type = MMS_TYPE_PLEASEWAIT;
339 data->mms_win=information_dialog(TxtPleaseWait,TxtNull,NULL,NULL,TxtNull,TxtNull,FOREVER,0,NULL);
340 break;
341 case MMS_SEND_PROGRESS:
342 // If user has canceled sending MMS, do not display any more dialogs
343 if(data->mms_cancel) break;
344
345 // xreddymn Mar-05-2005 MMI-SPR-26144
346 // Handle the "connecting" dialog box
347 if((MMS_TYPE_PLEASEWAIT == data->mms_win_type) || (MMS_TYPE_SEND_START == data->mms_win_type))
348 {
349 SEND_EVENT(data->mms_win, DIALOG_DESTROY, 0, 0);
350 data->mms_win_type = MMS_TYPE_NONE;
351 }
352 // xreddymn Mar-05-2005 MMI-SPR-26144
353 // Display MMS send progress in percentage
354 if(progressValue < 0)
355 {
356 progressValue = 0;
357 }
358 if(progressValue > 100)
359 {
360 progressValue = 100;
361 }
362 sprintf(AUI_MMS_progress_string, "%d", progressValue);
363 strcat(AUI_MMS_progress_string, "%");
364
365 if(MMS_TYPE_NONE == data->mms_win_type)
366 {
367 data->mms_win=information_dialog(TxtMMSSendng, TxtNull, NULL, AUI_MMS_progress_string, TxtNull, TxtCancel, FOREVER, KEY_RIGHT|KEY_HUP, (T_VOID_FUNC)AUI_mms_cancel_cb);
368 data->mms_win_type = MMS_TYPE_SEND_PROGRESS;
369 win_data = ((T_MFW_HDR *) data->mms_win)->data;
370 mms_info_dialog_data = (T_dialog_info *)win_data->user;
371 }
372 else if(MMS_TYPE_SEND_PROGRESS == data->mms_win_type)
373 {
374 win_data = ((T_MFW_HDR *) data->mms_win)->data;
375 mms_info_dialog_data = (T_dialog_info *)win_data->user;
376 dspl_Enable(0);
377 winShow(data->mms_win);
378 dspl_Enable(1);
379 }
380 break;
381 // xreddymn Feb-25-2005 MMI-SPR-26144: This is displayed while waiting for WAP to connect
382 case MMS_SEND_START:
383 // Jun 30 2005 REF: MMI-SPR-30213 x0012849
384 // To avoid "connecting" dialog coming up while receiving MMS .
385 if(MMS_TYPE_PLEASEWAIT == data->mms_win_type)
386 {
387 SEND_EVENT(data->mms_win, DIALOG_DESTROY, 0, 0);
388 data->mms_win=information_dialog(TxtConnecting,TxtNull,NULL,NULL,TxtNull,TxtNull,FOREVER,0,(T_VOID_FUNC)AUI_mms_cancel_cb);
389 data->mms_win_type = MMS_TYPE_SEND_START;
390 }
391 break;
392 case MMS_SEND_SUCCESS:
393 // xreddymn Mar-05-2005 MMI-SPR-26144: Handle "please wait"
394 // and "connecting" windows
395 dspl_Enable(0);
396 if((MMS_TYPE_SEND_PROGRESS == data->mms_win_type) || (MMS_TYPE_PLEASEWAIT == data->mms_win_type) || (MMS_TYPE_SEND_START == data->mms_win_type))
397 {
398 // Jun 30 2005 REF: MMI-SPR-30212 x0012849
399 // Display 100% sent before displaying MMS sent.
400 progressValue=100;
401 sprintf(AUI_MMS_progress_string, "%d", progressValue);
402 strcat(AUI_MMS_progress_string, "%");
403 SEND_EVENT(data->mms_win, DIALOG_DESTROY, 0, 0);
404 data->mms_win=information_dialog(TxtMMSSendng, TxtNull, NULL, AUI_MMS_progress_string, TxtNull, TxtNull, ONE_SECS, TxtNull,NULL );
405 data->mms_win_type = MMS_TYPE_NONE;
406 }
407 data->mms_win_type = MMS_TYPE_SEND_SUCCESS;
408 //xrashmic 23 Nov, 2005 MMI-SPR-OMAPS00047637
409 //Sepearted the call back funtion for the sending and receving mms info dialog screns.
410 data->mms_win = information_dialog(TxtMMS,TxtMMSSendSucess,NULL,NULL,TxtNull,TxtSoftBack,FOREVER,KEY_RIGHT,(T_VOID_FUNC)AUI_mmssend_cb);
411 dspl_Enable(1);
412 break;
413 case MMS_RECEIVE_PROGRESS:
414 //xrashmic 27 Jan, 2006 MMI-SPR-OMAPS00053357
415 //To delete the please wait screen when we start receving a mms while we are trying to send one.
416 if(MMS_TYPE_NONE != data->mms_win_type && MMS_TYPE_RECIEVE_PROGRESS != data->mms_win_type)
417 {
418 SEND_EVENT(data->mms_win, DIALOG_DESTROY, 0, 0);
419 data->mms_win_type = MMS_TYPE_NONE;
420 }
421 TRACE_EVENT("MMS_RECEIVE_PROGRESS");
422 // May 12 2005 REF: MMI-SPR-29887 x0012849
423 // When The MMS_RECEIVE_PROGRESS
424 if(TRUE == is_deferdownload )
425 {
426 // Jun 23 2005 REF: MMI-SPR-29887 x0012849
427 //Display the progress while retrieving MMS.
428 if(FALSE == is_downloadcancelled)
429 {
430 sprintf(AUI_MMS_rtv_progress_string, "%d", rtvprogressValue);
431 strcat(AUI_MMS_rtv_progress_string, "%");
432 if(MMS_TYPE_NONE == data->mms_win_type)
433 {
434 data->mms_win=information_dialog(TxtMMSRetrieving,TxtNull,NULL,AUI_MMS_rtv_progress_string,TxtNull,TxtCancel, FOREVER, KEY_RIGHT|KEY_HUP, (T_VOID_FUNC)AUI_mms_recieve_cancel_cb);
435 data->mms_win_type = MMS_TYPE_RECIEVE_PROGRESS;
436 win_data = ((T_MFW_HDR *) data->mms_win)->data;
437 mms_info_dialog_data = (T_dialog_info *)win_data->user;
438 }
439 else if(MMS_TYPE_RECIEVE_PROGRESS == data->mms_win_type)
440 {
441 win_data = ((T_MFW_HDR *) data->mms_win)->data;
442 mms_info_dialog_data = (T_dialog_info *)win_data->user;
443 dspl_Enable(0);
444 winShow(data->mms_win);
445 dspl_Enable(1);
446 }
447
448 }
449 }
450 else
451 {
452 data->mms_win_type = MMS_TYPE_RECIEVE_PROGRESS;
453 data->mms_win=information_dialog(TxtMMSDownloading,TxtMMSDots,NULL,NULL,TxtNull,TxtNull,FOREVER,0,NULL);
454 }
455 break;
456 case MMS_RECEIVE_SUCCESS:
457 TRACE_EVENT("MMS_RECEIVE_SUCCESS");
458 // May 12 2005 REF: MMI-SPR-29887 x0012849
459 // Instead of showing NewMMS, show MMS Retrieved.
460 if(TRUE == is_deferdownload)
461 {
462 if(MMS_TYPE_RECIEVE_PROGRESS == data->mms_win_type)
463 {
464 SEND_EVENT(data->mms_win, DIALOG_DESTROY, 0, 0);
465 data->mms_win_type = MMS_TYPE_NONE;
466 }
467 data->mms_win_type=MMS_TYPE_RECIEVE_SUCCESS;
468 is_deferdownload=FALSE;
469 //xrashmic 23 Nov, 2005 MMI-SPR-OMAPS00047637
470 //Sepearted the call back funtion for the sending and receving mms info dialog screns.
471 data->mms_win = information_dialog(TxtMMSRetrieved, TxtNull, NULL, NULL, TxtNull, TxtNull, FIVE_SECS, 0, (T_VOID_FUNC)AUI_mmsrcv_cb);
472 }
473 else
474 {
475 // Mar 22 2005 REF: MMI-SPR-29368 x0012849
476 //Instead of Destroying and drawing a new window to diaply new MMS , update the erlier window contents.
477 data->mms_win_type = MMS_TYPE_RECIEVE_SUCCESS;
478 win_data = ((T_MFW_HDR *) data->mms_win)->data;
479 mms_info_dialog_data = (T_dialog_info *)win_data->user;
480 mms_info_dialog_data->TextId= TxtNewMMS;
481 mms_info_dialog_data->TextId2 = TxtNull;
482 //xrashmic 23 Nov, 2005 MMI-SPR-OMAPS00047637
483 //Sepearted the call back funtion for the sending and receving mms info dialog screns.
484 mms_info_dialog_data->Callback=(T_VOID_FUNC)AUI_mmsrcv_cb;
485 mms_info_dialog_data->Time = FOREVER;
486 mms_info_dialog_data->KeyEvents = KEY_RIGHT;
487 mms_info_dialog_data->RightSoftKey= TxtSoftBack;
488 dspl_Enable(0);
489 winShow(data->mms_win);
490 dspl_Enable(1);
491 }
492 break;
493 //xrashmic 23 Feb, 2005 MMI-SPR-28222
494 // Added support to display the receive fail for MMS
495 case MMS_RECEIVE_FAIL:
496 // May 12 2005 REF: MMI-SPR-29887 x0012849
497 // Instead of showing Receive Failed show Retrieve Failed
498
499 if((data->mms_win_type != MMS_TYPE_RECIEVE_FAILED) && (data->mms_win_type != MMS_TYPE_ERROR))
500 {
501 if(MMS_TYPE_RECIEVE_PROGRESS == data->mms_win_type)
502 {
503 SEND_EVENT(data->mms_win, DIALOG_DESTROY, 0, 0);
504 data->mms_win_type = MMS_TYPE_NONE;
505 }
506 data->mms_win_type = MMS_TYPE_RECIEVE_FAILED;
507 if(TRUE == is_deferdownload)
508 {
509 //xrashmic 23 Nov, 2005 MMI-SPR-OMAPS00047637
510 //Sepearted the call back funtion for the sending and receving mms info dialog screns.
511 is_deferdownload=FALSE;
512 data->mms_win = information_dialog(TxtRetrieve, TxtFailed, NULL, NULL, TxtNull, TxtNull, FIVE_SECS, 0, (T_VOID_FUNC)AUI_mmsrcv_cb);
513 }
514 else
515 {
516 //xrashmic 23 Nov, 2005 MMI-SPR-OMAPS00047637
517 //Sepearted the call back funtion for the sending and receving mms info dialog screns.
518 data->mms_win = information_dialog(TxtMMS, TxtMMSRcvFail, NULL, NULL, TxtNull, TxtSoftBack, FOREVER, KEY_RIGHT, (T_VOID_FUNC)AUI_mmsrcv_cb);
519 }
520 }
521 // xreddymn May-15-2005 MMI-SPR-30962: Clear WAP busy state once MMS transaction is complete
522 MMS_reset_WAP_busy();
523 MMS_process_push_queue();
524 break;
525 //xrashmic 23 Feb, 2005 MMI-SPR-28222
526 // Added support to display the receive fail for MMS when MMS folder is full
527 case MMS_NO_MEMORY:
528 if(data->mms_win_type != MMS_TYPE_RECIEVE_FAILED)
529 {
530 if(MMS_TYPE_RECIEVE_PROGRESS == data->mms_win_type)
531 {
532 SEND_EVENT(data->mms_win, DIALOG_DESTROY, 0, 0);
533 data->mms_win_type = MMS_TYPE_NONE;
534 }
535 data->mms_win_type = MMS_TYPE_RECIEVE_FAILED;
536 //xrashmic 23 Nov, 2005 MMI-SPR-OMAPS00047637
537 //Sepearted the call back funtion for the sending and receving mms info dialog screns.
538 data->mms_win = information_dialog(TxtNewMMS, TxtErrorOutOfMem, NULL, NULL, TxtNull, TxtSoftBack, FOREVER, KEY_RIGHT, (T_VOID_FUNC)AUI_mmsrcv_cb);
539 }
540 break;
541 case MMS_SEND_FAIL:
542 case ATB_WAP_DEACTIVATING:
543 case ATB_WAP_ATTACH_FAILED:
544 case ATB_WAP_ERROR:
545 case ATB_WAP_ACTIVATE_FAILED:
546 // xreddymn Feb-17-2005 MMI-SPR-26144: handle errors when sending MMS
547 mms_post_error();
548 dspl_Enable(0); // Disable screen refresh while we change dialogs
549 // xreddymn Mar-07-2005 MMI-SPR-26144: Modified this so that Error
550 // dialog is displayed if FFS write failed when sending MMS
551 if(data->mms_cancel)
552 {
553 data->mms_cancel=0;
554 if((MMS_TYPE_SEND_PROGRESS==data->mms_win_type)||(MMS_TYPE_PLEASEWAIT==data->mms_win_type))
555 {
556 SEND_EVENT(data->mms_win, DIALOG_DESTROY, 0, 0);
557 data->mms_win_type=MMS_TYPE_NONE;
558 }
559 }
560 else
561 {
562 AUI_mms_error_dialog(MMS_ERROR);
563 }
564 // xreddymn May-15-2005 MMI-SPR-30962: Clear WAP busy state once MMS transaction is complete
565 MMS_reset_WAP_busy();
566 MMS_process_push_queue();
567
568 dspl_Enable(1); // Enable screen refresh after invoking the new dialog
569 break;
570 default:
571 break;
572 }
573 return;
574 }
575
576
577 /*******************************************************************************
578
579 $Function: AUI_mms_error_dialog
580
581 $Description:
582 //xrashmic 08 Feb, 2005 MMI-SPR-27853
583 The mms send/rcv failure are displayed here
584 All calls to AUI_error_dialog is routed to this function for MMS module
585 //xrashmic 19 Aug, 2004 Bug: 2, 3, 36 and 42
586
587 $Returns: None.
588
589 $Arguments:
590 *******************************************************************************/
591 void AUI_mms_error_dialog(SHORT errorCode)
592 {
593 T_WAP_DATA *data = AUI_wap_data();
594 int txtId=TxtNull;
595 TRACE_EVENT("AUI_mms_error_dialog");
596
597 if (!data)
598 {
599 return;
600 }
601
602 if(MMS_TYPE_SEND_PROGRESS == data->mms_win_type || MMS_TYPE_PLEASEWAIT == data->mms_win_type || MMS_TYPE_SEND_START == data->mms_win_type)
603 {
604 txtId=TxtMMSSendFail;
605 }
606 else if(data->mms_win_type == MMS_TYPE_RECIEVE_PROGRESS)
607 {
608 txtId=TxtMMSRcvFail;
609 }
610
611 if(MMS_TYPE_RECIEVE_PROGRESS == data->mms_win_type || MMS_TYPE_SEND_PROGRESS == data->mms_win_type || data->mms_win_type==MMS_TYPE_PLEASEWAIT || MMS_TYPE_SEND_START == data->mms_win_type)
612 {
613 SEND_EVENT(data->mms_win, DIALOG_DESTROY, 0, 0);
614 data->mms_win_type = MMS_TYPE_NONE;
615 }
616
617 // May 25 2005 REF: MMI-SPR-29887 xrashmic
618 // Display Retrieve failed instead of recieve failed.
619 if(txtId != TxtNull && data->mms_win_type != MMS_TYPE_ERROR)
620 {
621 data->mms_win_type = MMS_TYPE_ERROR;
622 if(TRUE == is_deferdownload && txtId==TxtMMSRcvFail)
623 {
624 is_deferdownload=FALSE;
625 //xrashmic 23 Nov, 2005 MMI-SPR-OMAPS00047637
626 //Sepearted the call back funtion for the sending and receving mms info dialog screns.
627 data->mms_win = information_dialog(TxtRetrieve, TxtFailed, NULL, NULL,
628 TxtNull, TxtNull, FIVE_SECS, 0, (T_VOID_FUNC)AUI_mmsrcv_cb);
629 }
630 else
631 {
632 //xrashmic 23 Nov, 2005 MMI-SPR-OMAPS00047637
633 //Sepearted the call back funtion for the sending and receving mms info dialog screns.
634 if(txtId == TxtMMSRcvFail)
635 data->mms_win=information_dialog(TxtMMS,txtId,NULL,NULL,TxtNull,TxtSoftBack,FOREVER,KEY_RIGHT,(T_VOID_FUNC)AUI_mmsrcv_cb);
636 else
637 data->mms_win=information_dialog(TxtMMS,txtId,NULL,NULL,TxtNull,TxtSoftBack,FOREVER,KEY_RIGHT,(T_VOID_FUNC)AUI_mmssend_cb);
638 }
639 }
640 return;
641
642 }
643
644 #endif
645