231 // clear menus etc. before note is displayed |
231 // clear menus etc. before note is displayed |
232 // if download is complete |
232 // if download is complete |
233 if ( aEvent.iProgressStatus == |
233 if ( aEvent.iProgressStatus == |
234 TFSProgress::EFSStatus_RequestComplete && !aEvent.iError ) |
234 TFSProgress::EFSStatus_RequestComplete && !aEvent.iError ) |
235 { |
235 { |
236 // Show "Download completed" if necessary |
|
237 if ( CompletionNotesInUseL() && completedDownloadsToNotify ) |
|
238 { |
|
239 LaunchDownloadCompleteNoteL( download.iPartData, |
|
240 completedDownloadsToNotify ); |
|
241 } |
|
242 // Notification of saved attachments may be given if all downloads of the given message has been completed. |
236 // Notification of saved attachments may be given if all downloads of the given message has been completed. |
243 if ( download.iNotifyComplete && countObject.iDownloadsCompletedCount && |
237 if ( download.iNotifyComplete && countObject.iDownloadsCompletedCount && |
244 countObject.iDownloadsCompletedCount == countObject.iDownloadsStartedCount ) |
238 countObject.iDownloadsCompletedCount == countObject.iDownloadsStartedCount && |
|
239 countObject.iSaveRequestedCount > 0 ) |
245 { |
240 { |
246 TFsEmailUiUtility::ShowFilesSavedToFolderNoteL( countObject.iSaveRequestedCount ); |
241 TFsEmailUiUtility::ShowFilesSavedToFolderNoteL( countObject.iSaveRequestedCount ); |
247 } |
242 } |
|
243 // Show "Download completed" if necessary |
|
244 else if ( CompletionNotesInUseL() && completedDownloadsToNotify ) |
|
245 { |
|
246 LaunchDownloadCompleteNoteL( download.iPartData, |
|
247 completedDownloadsToNotify ); |
|
248 } |
|
249 else if ( download.iNotifyComplete && |
|
250 countObject.iSaveRequestedCount == 0 ) |
|
251 { |
|
252 TFsEmailUiUtility::OpenAttachmentL( download.iPartData ); |
|
253 } |
248 } |
254 } |
249 // </cmail> |
255 // </cmail> |
250 } |
256 } |
251 } |
257 } |
252 |
258 |