idlehomescreen/widgetmanager/src/wmwidgetdata.cpp
branchRCL_3
changeset 17 b8fae6b8a148
parent 12 9674c1a575e9
child 18 d05a55b217df
--- a/idlehomescreen/widgetmanager/src/wmwidgetdata.cpp	Mon Mar 15 12:39:47 2010 +0200
+++ b/idlehomescreen/widgetmanager/src/wmwidgetdata.cpp	Wed Mar 31 21:17:19 2010 +0300
@@ -83,6 +83,7 @@
     iLogoImageMask = NULL;
     iHsContentInfo = NULL;
     iWidgetType = CWmWidgetData::EUnknown;
+    iWrtType = CWmWidgetData::EUnIdentified;
     iPublisherUid = KNullUid;
     iLogoSize = aLogoSize;
     iAnimationTimer = NULL;
@@ -385,7 +386,28 @@
         if ( widgetUid != 0 )
             {
             // WRT widget
-            iPublisherUid = TUid::Uid( widgetUid );            
+            iPublisherUid = TUid::Uid( widgetUid );
+            
+            // wrt widget type  
+            CWidgetPropertyValue* value( NULL );
+            value = aRegistryClientSession->GetWidgetPropertyValueL( 
+                    iPublisherUid, ENokiaWidget );
+            if ( value && *value == 1 )
+                {
+                iWrtType = CWmWidgetData::EWgz;
+                }
+            else if ( value && *value == 2 )
+                {
+                iWrtType = CWmWidgetData::EWgt;
+                }
+            else
+                {
+                iWrtType = CWmWidgetData::EUnIdentified;
+                }
+
+            delete value;
+            value = NULL;
+
             }
         else
             {
@@ -670,6 +692,7 @@
 //
 void CWmWidgetData::StopUninstallAnimationL()
     {
+    iAsyncUninstalling = EFalse;
     DestroyAnimData();
     // restore widget name
     if ( iWidgetName )
@@ -680,7 +703,6 @@
         }
     
     FireDataChanged(); //redraw
-    iAsyncUninstalling = EFalse;
     }
 
 // End of file