|
1 /* |
|
2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: The crossfade effect |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __SHWCROSSFADEEFFECT_H__ |
|
22 #define __SHWCROSSFADEEFFECT_H__ |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32std.h> |
|
26 #include <e32base.h> |
|
27 #include <alf/alfvisual.h> |
|
28 #include <alf/alfenv.h> |
|
29 |
|
30 #include "shweffect.h" |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * CShwCrossFadeEffect, the crossfade effect. |
|
38 * Shows images in full screen in view mode and performs smooth crossfade in transition. |
|
39 * |
|
40 * @lib shwslideshowengine.lib |
|
41 * @internal reviewed 07/06/2007 by Loughlin |
|
42 */ |
|
43 NONSHARABLE_CLASS( CShwCrossFadeEffect ) |
|
44 : public CBase, public MShwEffect |
|
45 { |
|
46 public: |
|
47 |
|
48 /** |
|
49 * Contructor. |
|
50 */ |
|
51 static CShwCrossFadeEffect* NewLC(); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 ~CShwCrossFadeEffect(); |
|
57 |
|
58 private: |
|
59 |
|
60 /** |
|
61 * C++ contructor. |
|
62 */ |
|
63 CShwCrossFadeEffect(); |
|
64 |
|
65 public: // from MShwEffect |
|
66 |
|
67 /// @ref MShwEffect::CloneLC |
|
68 MShwEffect* CloneLC(); |
|
69 /// @ref MShwEffect::InitializeL |
|
70 void InitializeL( |
|
71 CAlfEnv* aHuiEnv, MGlxVisualList* aVisualList, |
|
72 MGlxMediaList* aMediaList, TSize aScreenSize ); |
|
73 /// @ref MShwEffect::PrepareViewL |
|
74 TSize PrepareViewL( CAlfVisual* aVisual, TSize aImageSize ); |
|
75 /// @ref MShwEffect::EnterViewL |
|
76 MGlxLayout* EnterViewL( |
|
77 CAlfVisual* aVisual, TInt aDuration, TInt aFadeInDuration ); |
|
78 /// @ref MShwEffect::ExitView |
|
79 void ExitView( CAlfVisual* aVisual ); |
|
80 /// @ref MShwEffect::EnterTransitionL |
|
81 MGlxLayout* EnterTransitionL( CAlfVisual* aVisual, TInt aDuration ); |
|
82 /// @ref MShwEffect::ExitTransition |
|
83 void ExitTransition( CAlfVisual* aVisual ); |
|
84 /// @ref MShwEffect::PauseL |
|
85 void PauseL(); |
|
86 /// @ref MShwEffect::Resume |
|
87 void Resume(); |
|
88 /// @ref MShwEffect:EffectInfo |
|
89 TShwEffectInfo EffectInfo(); |
|
90 |
|
91 private: |
|
92 |
|
93 /// Own: the implementation |
|
94 class CShwCrossFadeEffectImpl; |
|
95 CShwCrossFadeEffectImpl* iImpl; |
|
96 |
|
97 }; |
|
98 |
|
99 #endif // __SHWCROSSFADEEFFECT_H__ |