equal
deleted
inserted
replaced
24 |
24 |
25 #include "highrestimer.h" |
25 #include "highrestimer.h" |
26 #include "plugininterface.h" |
26 #include "plugininterface.h" |
27 #include "themerepositorylistener.h" |
27 #include "themerepositorylistener.h" |
28 #include "screensaverpropertylistener.h" |
28 #include "screensaverpropertylistener.h" |
|
29 #include "fgapppropertylistener.h" |
29 #include "sensor.h" |
30 #include "sensor.h" |
30 |
31 |
31 #include "../../../../uiaccelerator_plat/alf_visual_api/inc/alf/alfcompositionutility.h" |
32 #include "../../../../uiaccelerator_plat/alf_visual_api/inc/alf/alfcompositionutility.h" |
32 |
33 |
33 class CBgAnimHost : public CBase, public MAlfCompositionObserver, public MSensrvDataListener, public MAknsSkinChangeObserver |
34 class CBgAnimHost : public CBase, public MAlfCompositionObserver, public MSensrvDataListener, public MAknsSkinChangeObserver |
37 CBgAnimHost(); |
38 CBgAnimHost(); |
38 ~CBgAnimHost(); |
39 ~CBgAnimHost(); |
39 void ExecuteL(); |
40 void ExecuteL(); |
40 |
41 |
41 static TInt TimerFunc(TAny* aPtr); |
42 static TInt TimerFunc(TAny* aPtr); |
|
43 static TInt ReaperFunc(TAny* aPtr); |
|
44 static TInt DoomBringerFunc(TAny* aPtr); |
42 |
45 |
43 // from MAlfCompositionObserver |
46 // from MAlfCompositionObserver |
44 void FrameReady(TInt aScreenNumber); |
47 void FrameReady(TInt aScreenNumber); |
45 void RunningLowOnGraphicsMemory(); |
48 void RunningLowOnGraphicsMemory(); |
46 void GraphicsMemoryGood(); |
49 void GraphicsMemoryGood(); |
65 void CreateWindowSurfaceL(); |
68 void CreateWindowSurfaceL(); |
66 void ReleaseWindowSurface(TBool aReleaseObserver = ETrue); |
69 void ReleaseWindowSurface(TBool aReleaseObserver = ETrue); |
67 void LoadPluginL(); |
70 void LoadPluginL(); |
68 void ReleasePlugin(); |
71 void ReleasePlugin(); |
69 void NewFrame(); |
72 void NewFrame(); |
|
73 void Kill(); |
70 void HandleScreenSaverEvent(); |
74 void HandleScreenSaverEvent(); |
|
75 void HandleFGAppEvent(); |
71 TBool GetPluginConfigurationL(); |
76 TBool GetPluginConfigurationL(); |
72 static TInt ScreenSaverCallback(TAny* aPtr); |
|
73 void StartSensorsL(); |
77 void StartSensorsL(); |
74 void StopSensors(); |
78 void StopSensors(); |
|
79 static TInt ScreenSaverCallback(TAny* aPtr); |
|
80 static TInt FgAppCallback(TAny* aPtr); |
75 |
81 |
76 private: |
82 private: |
77 // windowing stuff |
83 // windowing stuff |
78 RWsSession iWsSession; |
84 RWsSession iWsSession; |
79 RWindowGroup iWindowGroup; |
85 RWindowGroup iWindowGroup; |
94 plugin_export_v1_t* iPlugin; |
100 plugin_export_v1_t* iPlugin; |
95 |
101 |
96 // timer |
102 // timer |
97 CHighResTimer* iTimer; |
103 CHighResTimer* iTimer; |
98 TBool iTimerRunning; |
104 TBool iTimerRunning; |
|
105 CHighResTimer* iTheReaper; |
|
106 CHighResTimer* iDoomBringer; |
99 |
107 |
100 TBool iEGLInitialized; |
108 TBool iEGLInitialized; |
101 TBool iSurfaceInitialized; |
109 TBool iSurfaceInitialized; |
102 TBool iHiddenDueSC; |
110 TBool iHiddenDueSC; |
103 |
111 |
106 |
114 |
107 TBool iRunning; |
115 TBool iRunning; |
108 |
116 |
109 CThemeRepositoryListener* iThemeRepositoryListener; |
117 CThemeRepositoryListener* iThemeRepositoryListener; |
110 CScreenSaverPropertyListener* iSCPropertyListener; |
118 CScreenSaverPropertyListener* iSCPropertyListener; |
|
119 CFGAppPropertyListener *iHSFgStatusPropertyListener; |
111 |
120 |
112 RPointerArray<CSensorListener> iSensorListeners; |
121 RPointerArray<CSensorListener> iSensorListeners; |
|
122 TBool iSensorsStopped; |
113 |
123 |
114 RAknsSrvSession iSkinSrv; |
124 RAknsSrvSession iSkinSrv; |
115 HBufC* iCurrentPluginDllName; |
125 HBufC* iCurrentPluginDllName; |
116 HBufC* iCurrentPluginAssetDir; |
126 HBufC* iCurrentPluginAssetDir; |
117 TBool iIsUIReady; |
127 TBool iIsUIReady; |
|
128 |
|
129 TBool iReaped; |
118 }; |
130 }; |