diff -r 220a17280356 -r 1f3c3f2f5b0a webengine/wrtharvester/src/wrtharvesterregistryaccess.cpp --- a/webengine/wrtharvester/src/wrtharvesterregistryaccess.cpp Fri Mar 12 15:48:51 2010 +0200 +++ b/webengine/wrtharvester/src/wrtharvesterregistryaccess.cpp Mon Mar 15 12:44:50 2010 +0200 @@ -61,12 +61,15 @@ { CWidgetInfo* widgetInfo( widgetInfoArr[i] ); - if ( SupportsMiniviewL( session, widgetInfo->iUid ) ) + + if ( SupportsMiniviewL( session, widgetInfo->iUid ) && + IsNokiaWidget( session, widgetInfo->iUid )) { CWrtInfo* info = new CWrtInfo(); info->iUid = widgetInfo->iUid; info->iBundleId = WidgetPropertyL( session, widgetInfo->iUid, EBundleIdentifier ); info->iDisplayName = WidgetPropertyL( session, widgetInfo->iUid, EBundleDisplayName ); + info->iType = KS60Widget; aWidgetInfoArray.AppendL( info ); } } @@ -94,6 +97,25 @@ } // --------------------------------------------------------------------------- +// Check if it is wgz widget . +// --------------------------------------------------------------------------- +// +TBool WrtHarvesterRegistryAccess::IsNokiaWidget( + RWidgetRegistryClientSession& aSession, + const TUid& aUid ) + { + TBool res( EFalse ); + + CWidgetPropertyValue* value( NULL ); + value = aSession.GetWidgetPropertyValueL( aUid, ENokiaWidget ); + + res = value && ( *value == 0 || *value == 1 ); + + delete value; + return res; + } + +// --------------------------------------------------------------------------- // Get the widget property as string. // --------------------------------------------------------------------------- // @@ -113,3 +135,4 @@ // End of File +