emailuis/emailui/src/FreestyleEmailUiUtilities.cpp
branchRCL_3
changeset 36 e8f259fad141
parent 32 a3a1ae9acec6
child 29 6b8f3b30d0ec
equal deleted inserted replaced
35:e64954c2c8e2 36:e8f259fad141
  1520 // -----------------------------------------------------------------------------
  1520 // -----------------------------------------------------------------------------
  1521 TBool TFsEmailUiUtility::HasUnfetchedAttachmentsL( CFSMailMessage& aMsg )
  1521 TBool TFsEmailUiUtility::HasUnfetchedAttachmentsL( CFSMailMessage& aMsg )
  1522 	{
  1522 	{
  1523     FUNC_LOG;
  1523     FUNC_LOG;
  1524 	RPointerArray<CFSMailMessagePart> attachments;
  1524 	RPointerArray<CFSMailMessagePart> attachments;
       
  1525 	CleanupResetAndDestroyClosePushL( attachments );
  1525 	aMsg.AttachmentListL( attachments );
  1526 	aMsg.AttachmentListL( attachments );
  1526 	TBool found = EFalse;
  1527 	TBool found = EFalse;
  1527 	for ( TInt i=0; i<attachments.Count(); i++ )
  1528 	for ( TInt i=0; i<attachments.Count(); i++ )
  1528 		{
  1529 		{
  1529 		if ( !IsMessagePartFullyFetched( *attachments[i] ) )
  1530 		if ( !IsMessagePartFullyFetched( *attachments[i] ) )
  1530 			{
  1531 			{
  1531 			found = ETrue;
  1532 			found = ETrue;
  1532 			break;
  1533 			break;
  1533 			}
  1534 			}
  1534 		}
  1535 		}
  1535 	attachments.ResetAndDestroy();
  1536 	CleanupStack::PopAndDestroy( &attachments);
  1536 	return found;
  1537 	return found;
  1537 	}
  1538 	}
  1538 
  1539 
  1539 // -----------------------------------------------------------------------------
  1540 // -----------------------------------------------------------------------------
  1540 // TFsEmailUiUtility::IsFollowUpSupported
  1541 // TFsEmailUiUtility::IsFollowUpSupported