|
1 /* |
|
2 * Copyright (c) 2006-2007 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: Stub file for managing effect in slideshow |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __TMSHWEFFECTMANAGER_ADAPTER_H__ |
|
22 #define __TMSHWEFFECTMANAGER_ADAPTER_H__ |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 |
|
26 |
|
27 // INTERNAL INCLUDES |
|
28 #include "mshweffectmanager_observer.h" |
|
29 #include "shweffectmanager.h" |
|
30 #include "shweffect.h" |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 |
|
34 // CLASS DEFINITION |
|
35 /** |
|
36 * Stub implementation of effect manager and effect. |
|
37 */ |
|
38 class TMShwEffectManager_Adapter |
|
39 : public MShwEffectManager, public MShwEffect |
|
40 { |
|
41 public: // Constructors and destructors |
|
42 |
|
43 /** |
|
44 * Construction |
|
45 */ |
|
46 TMShwEffectManager_Adapter( MShwEffectManager_Observer* aObserver ); |
|
47 void SetAdaptee( MShwEffectManager* aAdaptee ); |
|
48 |
|
49 public: // From MShwEffectManager |
|
50 |
|
51 void AddEffectL( MShwEffect* aEffect ); |
|
52 MShwEffect* CurrentEffect(); |
|
53 MShwEffect* Effect( TInt aDirection ); |
|
54 void ProceedToEffect( TInt aDirection ); |
|
55 void SetEffectOrder( TShwEffectOrder aOrder ); |
|
56 TShwEffectOrder EffectOrder(); |
|
57 void SetProgrammedEffects( RArray< TShwEffectInfo >& aEffects ); |
|
58 TInt ProgrammedEffects( RArray< MShwEffect* >& aEffects ); |
|
59 void SetDefaultEffectL(TShwEffectInfo aInfo); |
|
60 void GetActiveEffectsL( RPointerArray< MShwEffect >& aEffects ); |
|
61 |
|
62 public: // From MShwEffect |
|
63 |
|
64 MShwEffect* CloneLC(); |
|
65 void InitializeL( |
|
66 CHuiEnv* aHuiEnv, |
|
67 MGlxVisualList* aVisualList, |
|
68 MGlxMediaList* aMediaList, |
|
69 TSize aScreenSize ); |
|
70 TSize PrepareViewL( CHuiVisual* aVisual, TSize aSize ); |
|
71 MGlxLayout* EnterViewL( CHuiVisual* aVisual, TInt aDuration, TInt aDuration2 ); |
|
72 void ExitView( CHuiVisual* aVisual ); |
|
73 MGlxLayout* EnterTransitionL( CHuiVisual* aVisual, TInt aDuration ); |
|
74 void ExitTransition( CHuiVisual* aVisual ); |
|
75 void PauseL(); |
|
76 void Resume(); |
|
77 TShwEffectInfo EffectInfo(); |
|
78 |
|
79 public: // Data (for verification) |
|
80 |
|
81 TInt iViewDuration; |
|
82 TInt iTransitionDuration; |
|
83 CHuiVisual* iPrepareVisual; |
|
84 CHuiVisual* iViewVisual; |
|
85 CHuiVisual* iTransitionVisual; |
|
86 |
|
87 private: // Data |
|
88 |
|
89 MShwEffectManager_Observer* iMShwEffectManager_Observer; |
|
90 MShwEffectManager* iMShwEffectManager; |
|
91 |
|
92 }; |
|
93 |
|
94 #endif // __TMSHWEFFECTMANAGER_ADAPTER_H__ |
|
95 |
|
96 // End of file |