diff -r 3ac8bf5c5014 -r 7c5dd702d6d3 uiacceltk/hitchcock/backgroundanim/inc/bganimhost.h --- a/uiacceltk/hitchcock/backgroundanim/inc/bganimhost.h Tue Apr 27 17:34:42 2010 +0300 +++ b/uiacceltk/hitchcock/backgroundanim/inc/bganimhost.h Tue May 11 17:03:00 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,11 +70,14 @@ void LoadPluginL(); void ReleasePlugin(); void NewFrame(); + void Kill(); void HandleScreenSaverEvent(); + void HandleFGAppEvent(); TBool GetPluginConfigurationL(); - static TInt ScreenSaverCallback(TAny* aPtr); void StartSensorsL(); void StopSensors(); + static TInt ScreenSaverCallback(TAny* aPtr); + static TInt FgAppCallback(TAny* aPtr); private: // windowing stuff @@ -96,6 +102,8 @@ // timer CHighResTimer* iTimer; TBool iTimerRunning; + CHighResTimer* iTheReaper; + CHighResTimer* iDoomBringer; TBool iEGLInitialized; TBool iSurfaceInitialized; @@ -108,11 +116,15 @@ CThemeRepositoryListener* iThemeRepositoryListener; CScreenSaverPropertyListener* iSCPropertyListener; + CFGAppPropertyListener *iHSFgStatusPropertyListener; RPointerArray iSensorListeners; + TBool iSensorsStopped; RAknsSrvSession iSkinSrv; HBufC* iCurrentPluginDllName; HBufC* iCurrentPluginAssetDir; TBool iIsUIReady; + + TBool iReaped; };