ncdengine/provider/server/src/ncdinstalloperationimpl.cpp
branchRCL_3
changeset 11 3ba40be8e484
parent 1 c42dffbd5b4f
equal deleted inserted replaced
9:51c0f5edf5ef 11:3ba40be8e484
     1 /*
     1 /*
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   442         DLINFO(("Java app with JAD"));
   442         DLINFO(("Java app with JAD"));
   443         purpose = ENcdItemPurposeApplication;        
   443         purpose = ENcdItemPurposeApplication;        
   444         installType = CNcdInstallInfo::ENcdInstallJad;                
   444         installType = CNcdInstallInfo::ENcdInstallJad;                
   445         }
   445         }
   446 
   446 
       
   447     // compare with widget mimetype. If matching, assign ENcdInstallWidget to install type
       
   448     // The type value will be checked later when installing starts.
       
   449     else if( downloadInfo->ContentMimeType().MatchF( KMimeTypeMatchWidget ) != KErrNotFound )
       
   450         {
       
   451         purpose = ENcdItemPurposeApplication;        
       
   452         installType = CNcdInstallInfo::ENcdInstallWidget;  
       
   453         }
   447 
   454 
   448     DLTRACE(("Creating fileinfo"));
   455     DLTRACE(("Creating fileinfo"));
   449     // Create file info for proxy-side installer
   456     // Create file info for proxy-side installer
   450     fileInfo = CNcdFileInfo::NewLC( 
   457     fileInfo = CNcdFileInfo::NewLC( 
   451         install.DownloadedFiles().MdcaPoint( nextFile ), 
   458         install.DownloadedFiles().MdcaPoint( nextFile ),