homescreensrv_plat/sapi_homescreenplugin/src/hspsconfigurationif.cpp
branchRCL_3
changeset 22 1b207dd38b72
parent 14 15e4dd19031c
child 27 2c7f27287390
--- a/homescreensrv_plat/sapi_homescreenplugin/src/hspsconfigurationif.cpp	Tue May 11 16:30:05 2010 +0300
+++ b/homescreensrv_plat/sapi_homescreenplugin/src/hspsconfigurationif.cpp	Tue May 25 13:01:39 2010 +0300
@@ -1193,23 +1193,31 @@
         }
     
     TLiwVariant inParamVariant = inParam->Value();
-    TPtrC8 restore( inParamVariant.AsData() );
-    
-    TBool restoreAll = EFalse;            
-    if( restore.CompareF( KHspsLiwRestoreAll ) == 0 )
+    TPtrC8 restorePtr( inParamVariant.AsData() );
+            
+    CHspsPersonalisationService::TRestore operation( CHspsPersonalisationService::EDefault );              
+    if( restorePtr.CompareF( KHspsLiwRestoreDefault ) == 0 )
         {
-        restoreAll = ETrue;
+        operation = CHspsPersonalisationService::EDefault;
+        }
+    else if( restorePtr.CompareF( KHspsLiwRestoreRom ) == 0 )
+        {
+        operation = CHspsPersonalisationService::ERom;
         }
-    else if( restore.CompareF( KHspsLiwRestoreActive ) != 0 )
+    else if( restorePtr.CompareF( KHspsLiwRestoreViews ) == 0 )
+        {
+        operation = CHspsPersonalisationService::EViews;
+        }        
+    else
         {
         User::Leave( KErrArgument );
-        }           
+        }        
     
     // Get client application's uid
     TInt appUid;
     iHspsConfigurationService->GetAppUidL( appUid );
         
-    iHspsPersonalisationService->RestoreConfigurationsL( appUid, restoreAll );
+    iHspsPersonalisationService->RestoreConfigurationsL( appUid, operation );
 
     // Invalidate ODT.
     iHspsConfigurationService->InvalidateODT();