applicationmanagement/server/src/AMDeploymentComponent.cpp
branchRCL_3
changeset 20 f6aa907032f4
parent 19 f2fc39bc30a5
child 25 7f4d10e92162
equal deleted inserted replaced
19:f2fc39bc30a5 20:f6aa907032f4
   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);