emailuis/emailui/src/FreestyleEmailDownloadInformationMediator.cpp
branchRCL_3
changeset 13 8592a65ad3fb
parent 11 0396474f30f5
child 16 b5fbb9b25d57
equal deleted inserted replaced
12:4ce476e64c59 13:8592a65ad3fb
   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             RemoveObserver(i);
   400    		
       
   401 			TDownloadCount countObject( aMessageId );
       
   402    		    TInt idx = iDownloadCountArray.Find( countObject, 
       
   403    		                                         TIdentityRelation<TDownloadCount>(EqualMessageId) );    
       
   404    		    if ( idx == KErrNotFound )
       
   405    		        {
       
   406 				RemoveObserver(i);
       
   407    		        }
   401    			}
   408    			}
   402     	}
   409     	}
   403 	}
   410 	}
   404 
   411 
   405 void CFSEmailDownloadInfoMediator::StopObserving( MFSEmailDownloadInformationObserver* aObserver )
   412 void CFSEmailDownloadInfoMediator::StopObserving( MFSEmailDownloadInformationObserver* aObserver )