|
1 /* |
|
2 * Copyright (c) 2008-2009 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: View-transition animations |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 /** |
|
22 * @internal reviewed 12/07/2007 by Michael Yip |
|
23 */ |
|
24 |
|
25 #ifndef GLXANIMATIONVIEW_H |
|
26 #define GLXANIMATIONVIEW_H |
|
27 |
|
28 #include "glxanimationtimed.h" |
|
29 #include "glxanimationfactory.h" |
|
30 |
|
31 /** |
|
32 * Implementation of View-switch animations |
|
33 */ |
|
34 class CGlxAnimationView : public CGlxAnimationTimed |
|
35 { |
|
36 public: |
|
37 /** |
|
38 * Two-phase construction |
|
39 * @param aAnimType Type of animation (e.g. entry / exit) |
|
40 * @param aDirection Direction of animation (e.g. forwards / backwards) |
|
41 * @param aControlGroups List of the control groups to animate |
|
42 * @return The requested animation |
|
43 */ |
|
44 static CGlxAnimationView* NewL( |
|
45 TGlxViewswitchAnimation aAnimType, |
|
46 TGlxNavigationDirection aDirection, |
|
47 const RPointerArray<CAlfControlGroup>& aControlGroups); |
|
48 |
|
49 /** |
|
50 * Destructor |
|
51 */ |
|
52 ~CGlxAnimationView(); |
|
53 |
|
54 private: // From CGlxAnimationTimed |
|
55 |
|
56 void StartTimedAnimationL( TInt aTime ); |
|
57 |
|
58 private: |
|
59 /** |
|
60 * Second-phase construction |
|
61 * @param aControlGroups List of the control groups to animate |
|
62 */ |
|
63 void ConstructL(const RPointerArray<CAlfControlGroup>& aControlGroups); |
|
64 |
|
65 /** |
|
66 * Constructor |
|
67 * @param aAnimType Type of animation (e.g. entry / exit) |
|
68 * @param aDirection Direction of animation (e.g. forwards / backwards) |
|
69 */ |
|
70 CGlxAnimationView(TGlxViewswitchAnimation aAnimType, |
|
71 TGlxNavigationDirection aDirection); |
|
72 |
|
73 private: |
|
74 /// The type of animation |
|
75 TGlxViewswitchAnimation iAnimType; |
|
76 |
|
77 /// Direction of navigation |
|
78 TGlxNavigationDirection iDirection; |
|
79 |
|
80 /// Control groups to animate (array members not owned) |
|
81 RPointerArray<CAlfControlGroup> iControlGroups; |
|
82 }; |
|
83 |
|
84 #endif // GLXANIMATIONVIEW_H |
|
85 |