diff -r 51c0f5edf5ef -r 3ba40be8e484 ncdengine/provider/server/src/ncdinstalloperationimpl.cpp --- a/ncdengine/provider/server/src/ncdinstalloperationimpl.cpp Fri Feb 19 22:57:02 2010 +0200 +++ b/ncdengine/provider/server/src/ncdinstalloperationimpl.cpp Fri Mar 12 15:43:14 2010 +0200 @@ -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