--- a/appinstaller/AppMngr2/Widget/src/appmngr2widgetappinfo.cpp Tue Sep 14 21:31:28 2010 +0300
+++ b/appinstaller/AppMngr2/Widget/src/appmngr2widgetappinfo.cpp Wed Sep 15 12:20:42 2010 +0300
@@ -48,6 +48,7 @@
{
CancelCommand();
delete iName;
+ delete iVersion;
delete iDetails;
delete iMimeType;
}
@@ -75,6 +76,19 @@
}
// ---------------------------------------------------------------------------
+// CAppMngr2WidgetAppInfo::Version()
+// ---------------------------------------------------------------------------
+//
+const TDesC& CAppMngr2WidgetAppInfo::Version() const
+ {
+ if( iVersion )
+ {
+ return *iVersion;
+ }
+ return KNullDesC;
+ }
+
+// ---------------------------------------------------------------------------
// CAppMngr2WidgetAppInfo::Details()
// ---------------------------------------------------------------------------
//
@@ -188,6 +202,7 @@
CAppMngr2WidgetRuntime& runtime( static_cast<CAppMngr2WidgetRuntime&>( Runtime() ) );
iMimeType = runtime.GetMimeTypeL( iWidgetUid );
+ iVersion = runtime.GetVersionL( iWidgetUid );
}
// ---------------------------------------------------------------------------