diff -r e8965914fac7 -r 79647526f98c appinstaller/AppMngr2/Widget/src/appmngr2widgetruntime.cpp --- a/appinstaller/AppMngr2/Widget/src/appmngr2widgetruntime.cpp Tue Sep 14 21:31:28 2010 +0300 +++ b/appinstaller/AppMngr2/Widget/src/appmngr2widgetruntime.cpp Wed Sep 15 12:20:42 2010 +0300 @@ -187,6 +187,25 @@ } // --------------------------------------------------------------------------- +// CAppMngr2WidgetRuntime::GetVersionL() +// --------------------------------------------------------------------------- +// +HBufC* CAppMngr2WidgetRuntime::GetVersionL( const TUid& aWidgetUid ) + { + HBufC* versionStr = NULL; + CWidgetPropertyValue* prop = iWidgetRegistry.GetWidgetPropertyValueL( aWidgetUid, + EBundleVersion ); + if( prop ) + { + CleanupStack::PushL( prop ); + const TPtrC valuePtr( *prop ); + versionStr = valuePtr.AllocL(); + CleanupStack::PopAndDestroy( prop ); + } + return versionStr; + } + +// --------------------------------------------------------------------------- // CAppMngr2WidgetRuntime::CAppMngr2WidgetRuntime() // --------------------------------------------------------------------------- //