appinstaller/AppMngr2/Widget/src/appmngr2widgetruntime.cpp
branchRCL_3
changeset 73 79647526f98c
parent 66 8b7f4e561641
--- 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()
 // ---------------------------------------------------------------------------
 //