diff -r 84a16765cd86 -r 98b66e4fb0be ncdengine/provider/server/src/ncdinstalloperationimpl.cpp --- a/ncdengine/provider/server/src/ncdinstalloperationimpl.cpp Fri Mar 19 09:33:35 2010 +0200 +++ b/ncdengine/provider/server/src/ncdinstalloperationimpl.cpp Fri Apr 16 15:05:20 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -444,6 +444,13 @@ installType = CNcdInstallInfo::ENcdInstallJad; } + // compare with widget mimetype. If matching, assign ENcdInstallWidget to install type + // The type value will be checked later when installing starts. + else if( downloadInfo->ContentMimeType().MatchF( KMimeTypeMatchWidget ) != KErrNotFound ) + { + purpose = ENcdItemPurposeApplication; + installType = CNcdInstallInfo::ENcdInstallWidget; + } DLTRACE(("Creating fileinfo")); // Create file info for proxy-side installer