emailuis/emailui/src/FreestyleEmailUiAttachmentsListModel.cpp
branchRCL_3
changeset 20 efd4f1afd43e
parent 11 0396474f30f5
equal deleted inserted replaced
18:6b8f3b30d0ec 20:efd4f1afd43e
   653     CleanupStack::PushL( subjectText );
   653     CleanupStack::PushL( subjectText );
   654     
   654     
   655     return subjectText;
   655     return subjectText;
   656     }
   656     }
   657 
   657 
       
   658 TBool CFSEmailUiAttachmentsListModel::IsMultiplyDownloadsOngoing()
       
   659     {
       
   660     TBool multiplyDownloads( EFalse );
       
   661     TInt downloads = 0;
       
   662     for ( TInt i = 0; i < iAttachments.Count() && downloads <= 1; i++ )
       
   663         {   
       
   664         if ( IsDownloading( iAttachments[i] ))
       
   665             {
       
   666             downloads++;
       
   667             }
       
   668         }
       
   669 
       
   670     if ( downloads > 1 )
       
   671         {
       
   672         multiplyDownloads = ETrue;
       
   673         }
       
   674     
       
   675     return multiplyDownloads;
       
   676     }