equal
deleted
inserted
replaced
710 TBuf<256> FileType; |
710 TBuf<256> FileType; |
711 TBuf8<256> FileType8; |
711 TBuf8<256> FileType8; |
712 |
712 |
713 RApaLsSession RSession; |
713 RApaLsSession RSession; |
714 if(RSession.Connect() == KErrNone) |
714 if(RSession.Connect() == KErrNone) |
715 { |
715 { |
716 TDataRecognitionResult FileDataType; |
716 TUid uid; |
717 RSession.RecognizeData(aDlFileName,iData->Data(),*&FileDataType); |
717 TDataType datatype; |
718 |
718 RSession.AppForDocument(aDlFileName,uid, datatype ); |
719 FileType.Copy(FileDataType.iDataType.Des()); |
719 |
720 |
720 FileType.Copy(datatype.Des()); |
|
721 |
|
722 |
721 } |
723 } |
722 RSession.Close(); |
724 RSession.Close(); |
723 |
725 |
724 FileType8.Copy(FileType); |
726 FileType8.Copy(FileType); |
725 |
727 |
726 SetDataL(FileType8); |
728 SetDataL(FileType8); |
|
729 |
|
730 RDEBUG8_2( "CDeploymentComponent::Pkg MIME: '%S' ", &FileType8); |
|
731 |
727 |
732 |
728 // Set PkgID same as MiME type of downloaded content |
733 // Set PkgID same as MiME type of downloaded content |
729 SetPkgTypeL(FileType8); |
734 SetPkgTypeL(FileType8); |
730 |
735 |
731 CDeploymentComponent* conflict( NULL); |
736 CDeploymentComponent* conflict( NULL); |