uiacceltk/hitchcock/backgroundanim/inc/bganimhost.h
changeset 21 6ce30188c5bf
parent 19 f5bac0badc7e
--- a/uiacceltk/hitchcock/backgroundanim/inc/bganimhost.h	Mon May 03 13:22:43 2010 +0300
+++ b/uiacceltk/hitchcock/backgroundanim/inc/bganimhost.h	Fri May 14 16:46:13 2010 +0300
@@ -26,6 +26,7 @@
 #include "plugininterface.h"
 #include "themerepositorylistener.h"
 #include "screensaverpropertylistener.h"
+#include "fgapppropertylistener.h"
 #include "sensor.h"
 
 #include "../../../../uiaccelerator_plat/alf_visual_api/inc/alf/alfcompositionutility.h"
@@ -39,6 +40,8 @@
         void ExecuteL();
         
         static TInt TimerFunc(TAny* aPtr);
+        static TInt ReaperFunc(TAny* aPtr);
+        static TInt DoomBringerFunc(TAny* aPtr);
         
         // from MAlfCompositionObserver
         void FrameReady(TInt aScreenNumber);
@@ -67,9 +70,14 @@
         void LoadPluginL();
         void ReleasePlugin();
         void NewFrame();
+        void Kill();
         void HandleScreenSaverEvent();
+        void HandleFGAppEvent();
         TBool GetPluginConfigurationL();
+        void StartSensorsL();
+        void StopSensors();
         static TInt ScreenSaverCallback(TAny* aPtr);
+        static TInt FgAppCallback(TAny* aPtr);
         
     private:
         // windowing stuff
@@ -94,9 +102,12 @@
         // timer
         CHighResTimer* iTimer;
         TBool iTimerRunning;
+        CHighResTimer* iTheReaper;
+        CHighResTimer* iDoomBringer;
         
         TBool iEGLInitialized;
         TBool iSurfaceInitialized;
+        TBool iHiddenDueSC;
         
         // composition API
         CAlfCompositionSource* iCompSource;
@@ -105,11 +116,15 @@
     
         CThemeRepositoryListener* iThemeRepositoryListener;
         CScreenSaverPropertyListener* iSCPropertyListener;
+        CFGAppPropertyListener *iHSFgStatusPropertyListener;
 
         RPointerArray<CSensorListener> iSensorListeners;
+        TBool iSensorsStopped;
 
         RAknsSrvSession iSkinSrv;
         HBufC* iCurrentPluginDllName;
         HBufC* iCurrentPluginAssetDir;
         TBool iIsUIReady;
+    
+        TBool iReaped;
     };