emailuis/emailui/src/FreestyleEmailUiAttachmentsListModel.cpp
changeset 3 a4d6f1ea0416
parent 0 8466d47a6819
child 8 e1b6206813b4
equal deleted inserted replaced
2:5253a20d2a1e 3:a4d6f1ea0416
   493 			fileType,
   493 			fileType,
   494 			mailParts[i]->AttachmentNameL(),
   494 			mailParts[i]->AttachmentNameL(),
   495 			KFsTreeNoneID,
   495 			KFsTreeNoneID,
   496 			partData
   496 			partData
   497 			};
   497 			};
   498 		attachment.downloadProgress = KComplete;
   498 		
       
   499 		// if not fully fetched than restart download;
       
   500 		if (IsCompletelyDownloadedL(attachment))
       
   501 			attachment.downloadProgress = KComplete;
       
   502 		else
       
   503 			attachment.downloadProgress = KNone;
       
   504 		
   499 		iAttachments.Append( attachment );
   505 		iAttachments.Append( attachment );
   500 		}
   506 		}
   501 	CleanupStack::PopAndDestroy( &mailParts );
   507 	CleanupStack::PopAndDestroy( &mailParts );
   502 	}
   508 	}
   503 	
   509