28 #include "screensaverpropertylistener.h" |
28 #include "screensaverpropertylistener.h" |
29 #include "sensor.h" |
29 #include "sensor.h" |
30 |
30 |
31 #include "../../../../uiaccelerator_plat/alf_visual_api/inc/alf/alfcompositionutility.h" |
31 #include "../../../../uiaccelerator_plat/alf_visual_api/inc/alf/alfcompositionutility.h" |
32 |
32 |
33 class CBgAnimHost : public CBase, public MAlfCompositionObserver, public MSensrvDataListener |
33 class CBgAnimHost : public CBase, public MAlfCompositionObserver, public MSensrvDataListener, public MAknsSkinChangeObserver |
34 { |
34 { |
35 public: |
35 public: |
36 void ConstructL(); |
36 void ConstructL(); |
37 CBgAnimHost(); |
37 CBgAnimHost(); |
38 ~CBgAnimHost(); |
38 ~CBgAnimHost(); |
50 // from MSensrvDataListener |
50 // from MSensrvDataListener |
51 void DataReceived( CSensrvChannel& aChannel, TInt aCount, TInt aDataLost ); |
51 void DataReceived( CSensrvChannel& aChannel, TInt aCount, TInt aDataLost ); |
52 void DataError( CSensrvChannel& aChannel, TSensrvErrorSeverity aError ); |
52 void DataError( CSensrvChannel& aChannel, TSensrvErrorSeverity aError ); |
53 void GetDataListenerInterfaceL( TUid aInterfaceUid, TAny*& aInterface); |
53 void GetDataListenerInterfaceL( TUid aInterfaceUid, TAny*& aInterface); |
54 |
54 |
55 |
55 // from MAknsSkinChangeObserver |
|
56 void SkinContentChanged(); |
|
57 void SkinConfigurationChanged( const TAknsSkinStatusConfigurationChangeReason aReason ); |
|
58 void SkinPackageChanged( const TAknsSkinStatusPackageChangeReason aReason ); |
|
59 |
56 protected: |
60 protected: |
57 void CreateWindowL(); |
61 void CreateWindowL(); |
58 void DestroyWindow(); |
62 void DestroyWindow(); |
59 void InitEGLL(); |
63 void InitEGLL(); |
60 void ReleaseEGL(); |
64 void ReleaseEGL(); |
61 void CreateWindowSurfaceL(); |
65 void CreateWindowSurfaceL(); |
62 void ReleaseWindowSurface(TBool aReleaseObserver = ETrue); |
66 void ReleaseWindowSurface(TBool aReleaseObserver = ETrue); |
63 void LoadPluginL(); |
67 void LoadPluginL(); |
|
68 void ReleasePlugin(); |
64 void NewFrame(); |
69 void NewFrame(); |
65 void HandleScreenSaverEvent(); |
70 void HandleScreenSaverEvent(); |
|
71 TBool GetPluginConfigurationL(); |
66 static TInt ScreenSaverCallback(TAny* aPtr); |
72 static TInt ScreenSaverCallback(TAny* aPtr); |
|
73 |
67 private: |
74 private: |
68 // windowing stuff |
75 // windowing stuff |
69 RWsSession iWsSession; |
76 RWsSession iWsSession; |
70 RWindowGroup iWindowGroup; |
77 RWindowGroup iWindowGroup; |
71 RWindow iWindow; |
78 RWindow iWindow; |
99 CThemeRepositoryListener* iThemeRepositoryListener; |
106 CThemeRepositoryListener* iThemeRepositoryListener; |
100 CScreenSaverPropertyListener* iSCPropertyListener; |
107 CScreenSaverPropertyListener* iSCPropertyListener; |
101 |
108 |
102 RPointerArray<CSensorListener> iSensorListeners; |
109 RPointerArray<CSensorListener> iSensorListeners; |
103 |
110 |
|
111 RAknsSrvSession iSkinSrv; |
|
112 HBufC* iCurrentPluginDllName; |
|
113 HBufC* iCurrentPluginAssetDir; |
104 }; |
114 }; |