|
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: Factory for gallery animations |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 /** |
|
22 * @internal reviewed 11/07/2007 by Michael Yip |
|
23 */ |
|
24 |
|
25 #ifndef GLXANIMATIONFACTORY_H |
|
26 #define GLXANIMATIONFACTORY_H |
|
27 |
|
28 #include "glxuiutility.h" |
|
29 |
|
30 class CAlfControlGroup; |
|
31 class MGlxAnimation; |
|
32 class CAlfVisual; |
|
33 class CAlfTexture; |
|
34 |
|
35 /** |
|
36 * View switching animation types |
|
37 */ |
|
38 enum TGlxViewswitchAnimation |
|
39 { |
|
40 EGlxViewAnimationNone, |
|
41 EGlxViewAnimationEntry, |
|
42 EGlxViewAnimationExit |
|
43 }; |
|
44 |
|
45 /** |
|
46 * Factory class to create animation instances |
|
47 */ |
|
48 class GlxAnimationFactory |
|
49 { |
|
50 public: |
|
51 /** |
|
52 * Create a view-switch animation |
|
53 * @param aAnimType Type of animation (e.g. entry / exit) |
|
54 * @param aDirection Direction of animation (e.g. forwards / backwards) |
|
55 * @param aControlGroup The control group to animate |
|
56 * @return The requested animation |
|
57 */ |
|
58 IMPORT_C static MGlxAnimation* CreateViewAnimationL( |
|
59 TGlxViewswitchAnimation aAnimType, |
|
60 TGlxNavigationDirection aDirection, |
|
61 CAlfControlGroup* aControlGroup); |
|
62 |
|
63 /** |
|
64 * Create a view-switch animation |
|
65 * @param aAnimType Type of animation (e.g. entry / exit) |
|
66 * @param aDirection Direction of animation (e.g. forwards / backwards) |
|
67 * @param aControlGroups List of control groups to animate |
|
68 * @return The requested animation |
|
69 */ |
|
70 IMPORT_C static MGlxAnimation* CreateViewAnimationL( |
|
71 TGlxViewswitchAnimation aAnimType, |
|
72 TGlxNavigationDirection aDirection, |
|
73 RPointerArray<CAlfControlGroup>& aControlGroups); |
|
74 |
|
75 /** |
|
76 * Create an image-loading animation |
|
77 * @param aVisual The visual that the image has been loaded into |
|
78 * @param aFlashTexture The texture to use for the "flash" effect |
|
79 * @return The requested animation |
|
80 */ |
|
81 IMPORT_C static MGlxAnimation* CreateImageLoadingAnimationL( |
|
82 CAlfVisual& aVisual, |
|
83 CAlfTexture& aFlashTexture); |
|
84 }; |
|
85 |
|
86 #endif // GLXANIMATIONFACTORY_H |