equal
deleted
inserted
replaced
594 if ( err == KErrNone ) |
594 if ( err == KErrNone ) |
595 { |
595 { |
596 SetAttachment( isAttachment ); |
596 SetAttachment( isAttachment ); |
597 } |
597 } |
598 |
598 |
599 CMsvAttachment::TMsvAttachmentType type = aAttachment.Type(); |
599 iSaveType = aAttachment.Type(); |
600 if ( type == CMsvAttachment::EMsvLinkedFile ) |
600 if ( iSaveType == CMsvAttachment::EMsvLinkedFile ) |
601 { |
601 { |
602 iFileHandle = aManager.GetAttachmentFileL( iAttachmentId ); |
602 iFileHandle = aManager.GetAttachmentFileL( iAttachmentId ); |
603 } |
603 } |
604 } |
604 } |
605 |
605 |
759 iObservers->Delete( current ); |
759 iObservers->Delete( current ); |
760 break; |
760 break; |
761 } |
761 } |
762 } |
762 } |
763 } |
763 } |
764 |
764 |
|
765 // --------------------------------------------------------- |
|
766 // CUniObject::IsValid |
|
767 // |
|
768 // --------------------------------------------------------- |
|
769 // |
|
770 EXPORT_C TBool CUniObject::IsValid() const |
|
771 { |
|
772 TBool bFlag = ETrue; |
|
773 if ( iSaveType == CMsvAttachment::EMsvLinkedFile ) |
|
774 { |
|
775 TParsePtrC fileParse( iMediaInfo->FullFilePath() ); |
|
776 |
|
777 RFile file; |
|
778 TInt err = file.Open( iFs, fileParse.FullName(), EFileShareAny ); |
|
779 |
|
780 if(err == KErrNotReady) |
|
781 { |
|
782 bFlag = EFalse; |
|
783 } |
|
784 if(err == KErrNone) |
|
785 { |
|
786 file.Close(); |
|
787 } |
|
788 } |
|
789 return bFlag; |
|
790 } |
|
791 |
765 // EOF |
792 // EOF |