fep/aknfep/src/AknFepSharedDataInterface.cpp
branchRCL_3
changeset 11 c8fb4cf7b3ae
parent 9 e6a39382bb9c
child 12 5e18d8c489d6
--- a/fep/aknfep/src/AknFepSharedDataInterface.cpp	Tue Apr 27 16:59:43 2010 +0300
+++ b/fep/aknfep/src/AknFepSharedDataInterface.cpp	Tue May 11 16:31:42 2010 +0300
@@ -73,6 +73,7 @@
     delete iGsPenSettings;
     delete iLocaleRepository;
     delete iSensorRepository;
+    delete iThemeEffectsRepository;
 
     if (iQwertyModeStatusSubscriber)
         {
@@ -525,6 +526,8 @@
     TRAP(ret, iGsPenSettings = CRepository::NewL(KCRUidPersonalizationSettings));
     
     TRAP(ret, iSensorRepository = CRepository::NewL( KCRUidSensorSettings ) );
+    
+    TRAP(ret, iThemeEffectsRepository = CRepository::NewL( KCRUidThemes ));
     }
 
 TInt CAknFepSharedDataInterface::HashKeySelectionNotification(TAny* aObj)
@@ -1752,7 +1755,18 @@
         }
     
     return EFalse;
-	}       
+	}
+
+TBool CAknFepSharedDataInterface::ThemeEffectsEnabled()
+    {
+        TInt effectsValue = KErrNone;
+        TInt error = iThemeEffectsRepository->Get( KThemesTransitionEffects, effectsValue );
+        if ( error != KErrNone || effectsValue != 0 )//zero means on
+            {
+            effectsValue = KErrNotFound;
+            }
+        return effectsValue == KErrNone ? ETrue:EFalse;
+    }
 
 #ifdef	RD_INTELLIGENT_TEXT_INPUT
 #ifdef __ITI_LONGPRESS_NUM_SHIFT_COPYPASTE__