|
1 /* |
|
2 * Copyright (c) 2002-2006 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: Xuikon Animation component. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "xnanimation.h" |
|
21 #include "xnanimationadapter.h" |
|
22 |
|
23 // ============================ MEMBER FUNCTIONS =============================== |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // CXnAnimation::NewL |
|
27 // Symbian static 1st phase constructor |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 CXnAnimation* CXnAnimation::NewL() |
|
31 { |
|
32 CXnAnimation* self = new( ELeave ) CXnAnimation; |
|
33 |
|
34 CleanupStack::PushL( self ); |
|
35 self->ConstructL(); |
|
36 CleanupStack::Pop(); |
|
37 |
|
38 return self; |
|
39 } |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // CXnAnimation::ConstructL |
|
43 // Symbian 2nd phase constructor can leave. |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 void CXnAnimation::ConstructL() |
|
47 { |
|
48 } |
|
49 |
|
50 // ----------------------------------------------------------------------------- |
|
51 // CXnAnimation::CXnAnimation |
|
52 // C++ default constructor |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 CXnAnimation::CXnAnimation() |
|
56 { |
|
57 } |
|
58 |
|
59 // ----------------------------------------------------------------------------- |
|
60 // CXnAnimation::~CXnAnimation |
|
61 // C++ destructor |
|
62 // ----------------------------------------------------------------------------- |
|
63 // |
|
64 CXnAnimation::~CXnAnimation() |
|
65 { |
|
66 } |
|
67 |
|
68 // --------------------------------------------------------- |
|
69 // CXnAnimation::MakeInterfaceL |
|
70 // --------------------------------------------------------- |
|
71 XnComponentInterface::MXnComponentInterface* CXnAnimation::MakeInterfaceL(const TDesC8& aType) |
|
72 { |
|
73 if (aType != XnAnimationInterface::KType) |
|
74 { |
|
75 return NULL; |
|
76 } |
|
77 XnAnimationInterface::MXnAnimationInterface* animationintr = static_cast<XnAnimationInterface::MXnAnimationInterface*>(this); |
|
78 return animationintr; |
|
79 } |