equal
deleted
inserted
replaced
26 #include "glxhdmicontroller.h" |
26 #include "glxhdmicontroller.h" |
27 |
27 |
28 // ----------------------------------------------------------------------------- |
28 // ----------------------------------------------------------------------------- |
29 // NewLC |
29 // NewLC |
30 // ----------------------------------------------------------------------------- |
30 // ----------------------------------------------------------------------------- |
31 EXPORT_C CGlxHdmiController* CGlxHdmiController::NewL() |
31 EXPORT_C CGlxHdmiController* CGlxHdmiController::NewL(TBool aEfectsOn) |
32 { |
32 { |
33 TRACER("CGlxHdmiController* CGlxHdmiController::NewL()"); |
33 TRACER("CGlxHdmiController* CGlxHdmiController::NewL()"); |
34 CGlxHdmiController* self = new (ELeave) CGlxHdmiController(); |
34 CGlxHdmiController* self = new (ELeave) CGlxHdmiController(aEfectsOn); |
35 CleanupStack::PushL(self); |
35 CleanupStack::PushL(self); |
36 self->ConstructL(); |
36 self->ConstructL(); |
37 CleanupStack::Pop(self); |
37 CleanupStack::Pop(self); |
38 return self; |
38 return self; |
39 } |
39 } |
165 GLX_LOG_INFO("CGlxHdmiController::ShiftToPostingMode() - 2"); |
165 GLX_LOG_INFO("CGlxHdmiController::ShiftToPostingMode() - 2"); |
166 iSurfaceUpdater->ShiftToPostingMode(); |
166 iSurfaceUpdater->ShiftToPostingMode(); |
167 } |
167 } |
168 } |
168 } |
169 |
169 |
|
170 |
|
171 // ----------------------------------------------------------------------------- |
|
172 // FadeSurface |
|
173 // ----------------------------------------------------------------------------- |
|
174 EXPORT_C void CGlxHdmiController::FadeSurface(TBool aFadeInOut) |
|
175 { |
|
176 TRACER("CGlxHdmiController::FadeSurface()"); |
|
177 if (iSurfaceUpdater) |
|
178 { |
|
179 iSurfaceUpdater->FadeTheSurface(aFadeInOut); |
|
180 } |
|
181 } |
|
182 |
170 // ----------------------------------------------------------------------------- |
183 // ----------------------------------------------------------------------------- |
171 // Constructor |
184 // Constructor |
172 // ----------------------------------------------------------------------------- |
185 // ----------------------------------------------------------------------------- |
173 CGlxHdmiController::CGlxHdmiController(): |
186 CGlxHdmiController::CGlxHdmiController(TBool aEffectsOn): |
174 iFsBitmap(NULL), |
187 iFsBitmap(NULL), |
175 iStoredImagePath(NULL) |
188 iStoredImagePath(NULL), |
|
189 iEffectsOn(aEffectsOn) |
176 { |
190 { |
177 TRACER("CGlxHdmiController::CGlxHdmiController()"); |
191 TRACER("CGlxHdmiController::CGlxHdmiController()"); |
178 // Implement nothing here |
192 // Implement nothing here |
179 } |
193 } |
180 |
194 |
227 // CreateSurfaceUpdaterL |
241 // CreateSurfaceUpdaterL |
228 // ----------------------------------------------------------------------------- |
242 // ----------------------------------------------------------------------------- |
229 void CGlxHdmiController::CreateSurfaceUpdaterL(const TDesC& aImageFile) |
243 void CGlxHdmiController::CreateSurfaceUpdaterL(const TDesC& aImageFile) |
230 { |
244 { |
231 TRACER("CGlxHdmiController::CreateSurfaceUpdater()"); |
245 TRACER("CGlxHdmiController::CreateSurfaceUpdater()"); |
232 RWindow* window = iHdmiContainer->GetWindow(); |
246 iSurfaceUpdater = CGlxHdmiSurfaceUpdater::NewL(iHdmiContainer->GetWindow(), |
233 iSurfaceUpdater = CGlxHdmiSurfaceUpdater::NewL(window, aImageFile, iFsBitmap, |
247 aImageFile, iFsBitmap,iHdmiContainer, |
234 iHdmiContainer); |
248 iEffectsOn); |
235 iHdmiContainer->DrawNow(); |
249 iHdmiContainer->DrawNow(); |
236 } |
250 } |
237 |
251 |
238 // ----------------------------------------------------------------------------- |
252 // ----------------------------------------------------------------------------- |
239 // StoreImageInfoL |
253 // StoreImageInfoL |