emailuis/emailui/src/FreestyleEmailDownloadInformationMediator.cpp
branchRCL_3
changeset 24 b5fbb9b25d57
parent 17 8592a65ad3fb
child 26 67369d1b217f
equal deleted inserted replaced
19:b13141f05c3d 24:b5fbb9b25d57
   240             if ( download.iNotifyComplete && countObject.iDownloadsCompletedCount &&
   240             if ( download.iNotifyComplete && countObject.iDownloadsCompletedCount &&
   241                  countObject.iDownloadsCompletedCount == countObject.iDownloadsStartedCount &&
   241                  countObject.iDownloadsCompletedCount == countObject.iDownloadsStartedCount &&
   242                  countObject.iSaveRequestedCount > 0 )
   242                  countObject.iSaveRequestedCount > 0 )
   243                  {
   243                  {
   244                  TFsEmailUiUtility::SetDownloadSave( ETrue );
   244                  TFsEmailUiUtility::SetDownloadSave( ETrue );
   245                  TFsEmailUiUtility::ShowFilesSavedToFolderNoteL( countObject.iSaveRequestedCount );
   245                  TFsEmailUiUtility::ShowFilesSavedToFolderNoteL( countObject.iDownloadsCompletedCount /*iSaveRequestedCount*/ ); // Fix: ESLX-84ACJ9
   246                  }        
   246                  }        
   247             // Show "Download completed" if necessary
   247             // Show "Download completed" if necessary
   248             else if ( CompletionNotesInUseL() && completedDownloadsToNotify )
   248             else if ( CompletionNotesInUseL() && completedDownloadsToNotify )
   249                 {
   249                 {
   250                 OpenAttachmentL( download.iPartData, completedDownloadsToNotify );            
   250                 OpenAttachmentL( download.iPartData, completedDownloadsToNotify );            
   395 	FUNC_LOG;
   395 	FUNC_LOG;
   396     for (TInt i=iObserverArray.Count()-1; i>=0; i--)
   396     for (TInt i=iObserverArray.Count()-1; i>=0; i--)
   397     	{
   397     	{
   398    		if ( iObserverArray[i].iObserver == aObserver && iObserverArray[i].iMessageId == aMessageId )
   398    		if ( iObserverArray[i].iObserver == aObserver && iObserverArray[i].iMessageId == aMessageId )
   399    			{
   399    			{
   400    		
   400 			RemoveObserver(i);
   401 			TDownloadCount countObject( aMessageId );
       
   402    		    TInt idx = iDownloadCountArray.Find( countObject, 
       
   403    		                                         TIdentityRelation<TDownloadCount>(EqualMessageId) );    
       
   404    		    if ( idx == KErrNotFound )
       
   405    		        {
       
   406 				RemoveObserver(i);
       
   407    		        }
       
   408    			}
   401    			}
   409     	}
   402     	}
   410 	}
   403 	}
   411 
   404 
   412 void CFSEmailDownloadInfoMediator::StopObserving( MFSEmailDownloadInformationObserver* aObserver )
   405 void CFSEmailDownloadInfoMediator::StopObserving( MFSEmailDownloadInformationObserver* aObserver )