equal
deleted
inserted
replaced
17 |
17 |
18 #include <s32mem.h> |
18 #include <s32mem.h> |
19 #include <akntranseffect.h> |
19 #include <akntranseffect.h> |
20 #include "alfbridge.h" |
20 #include "alfbridge.h" |
21 |
21 |
|
22 enum TEffectState |
|
23 { |
|
24 EBeginFullScreenReceived, // first request of effect received |
|
25 EWaitingWindowGroup, |
|
26 EWaitEndFullScreen, |
|
27 EEndFullScreenReceivedWaitingWindowGroup, |
|
28 EEndFullscreenReceived, |
|
29 ESecondPhaseSetupActive, |
|
30 EFinalEffectActive |
|
31 }; |
22 // Timer to send finish full screen effect |
32 // Timer to send finish full screen effect |
23 // --------------------------------------------------------- |
33 // --------------------------------------------------------- |
24 // CAlfFinishTimer |
34 // CAlfFinishTimer |
25 // --------------------------------------------------------- |
35 // --------------------------------------------------------- |
26 // |
36 // |
226 NONSHARABLE_CLASS(CFullScreenEffectState ) : public CEffectState |
236 NONSHARABLE_CLASS(CFullScreenEffectState ) : public CEffectState |
227 { |
237 { |
228 public: |
238 public: |
229 ~CFullScreenEffectState(); |
239 ~CFullScreenEffectState(); |
230 |
240 |
|
241 void ConstructL(const CFullScreenEffectState& aEffectState); |
|
242 |
231 void ConstructL(TInt aAction, RMemReadStream& aStream); |
243 void ConstructL(TInt aAction, RMemReadStream& aStream); |
232 |
244 |
233 // Information from BeginFullScreen |
245 // Information from BeginFullScreen |
234 TInt iType; |
246 TInt iType; |
235 TInt iToWg; |
247 TInt iToWg; |
237 TInt iToAppId; |
249 TInt iToAppId; |
238 TInt iFromAppId; |
250 TInt iFromAppId; |
239 TInt iToSecureId; |
251 TInt iToSecureId; |
240 TInt iFromSecureId; |
252 TInt iFromSecureId; |
241 TRect iRect; |
253 TRect iRect; |
242 TBool iTimeoutTriggered; |
254 TBool iLongAppStartTimeout; |
243 |
255 TBool iTimeout; |
244 // ETrue if waiting for window group to appear |
256 |
245 TBool iWaitingWindowGroup; |
257 |
|
258 void SetState(TEffectState aState); |
|
259 |
|
260 TEffectState State(); |
|
261 |
|
262 |
|
263 private: |
|
264 TEffectState iState; |
|
265 |
|
266 public: |
246 // ETrue if end fullscreen has been performed |
267 // ETrue if end fullscreen has been performed |
247 TBool iEndFullScreen; |
268 TBool iEndFullScreen; |
248 // ETrue if setup effect container has been done |
269 // ETrue if setup effect container has been done |
249 TBool iSetupDone; |
270 TBool iSetupDone; |
250 |
271 // effect has fade out and fade in. The fade in part is active, when this is ETrue. |
|
272 enum TEffectPhase |
|
273 { |
|
274 EOnlyOnePart = 0, |
|
275 EFirstPartActive, |
|
276 ESecondPartActive |
|
277 }; |
|
278 |
|
279 TEffectPhase iTwoPhaseEffect; |
251 // used for resolving the iCleanupStackItem that holds the frozen app layout underneath the starting application |
280 // used for resolving the iCleanupStackItem that holds the frozen app layout underneath the starting application |
252 TInt iAppStartScreenshotItemHandle; |
281 TInt iAppStartScreenshotItemHandle; |
253 |
282 |
254 |
283 |
255 enum TEffectType |
284 enum TEffectType |