|
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 #include "glxanimationfactory.h" |
|
26 |
|
27 #include "glxanimationview.h" |
|
28 #include "glxanimationimageloading.h" |
|
29 |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // CreateViewAnimationL |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 EXPORT_C MGlxAnimation* GlxAnimationFactory::CreateViewAnimationL( |
|
36 TGlxViewswitchAnimation aAnimType, |
|
37 TGlxNavigationDirection aDirection, |
|
38 CAlfControlGroup* aControlGroup) |
|
39 { |
|
40 CGlxAnimationView* anim = NULL; |
|
41 |
|
42 RPointerArray<CAlfControlGroup> controlGroupArray; |
|
43 controlGroupArray.Append(aControlGroup); |
|
44 anim = CGlxAnimationView::NewL(aAnimType, aDirection, controlGroupArray); |
|
45 controlGroupArray.Reset(); |
|
46 |
|
47 return anim; |
|
48 } |
|
49 |
|
50 // ----------------------------------------------------------------------------- |
|
51 // CreateViewAnimationL |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 EXPORT_C MGlxAnimation* GlxAnimationFactory::CreateViewAnimationL( |
|
55 TGlxViewswitchAnimation aAnimType, |
|
56 TGlxNavigationDirection aDirection, |
|
57 RPointerArray<CAlfControlGroup>& aControlGroups) |
|
58 { |
|
59 return CGlxAnimationView::NewL(aAnimType, aDirection, aControlGroups); |
|
60 } |
|
61 |
|
62 // ----------------------------------------------------------------------------- |
|
63 // CreateImageLoadingAnimationL |
|
64 // ----------------------------------------------------------------------------- |
|
65 // |
|
66 EXPORT_C MGlxAnimation* GlxAnimationFactory::CreateImageLoadingAnimationL( |
|
67 CAlfVisual& aVisual, |
|
68 CAlfTexture& aFlashTexture) |
|
69 { |
|
70 return CGlxAnimationImageLoading::NewL(aVisual, aFlashTexture); |
|
71 } |