|
1 /* |
|
2 * Copyright (c) 2005 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: Animation plugin implementation file |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 |
|
21 #include "keypublisherdll.h" |
|
22 #include "KeyPublisher.h" |
|
23 |
|
24 // ----------------------------------------------------------------------- |
|
25 // CKeyPublisherDll::CreateInstanceL |
|
26 // Description: A virtual factory function to create a new instance of the |
|
27 // animation object of the type CAnim. |
|
28 // return: Animation object derived from CAnim. |
|
29 // ----------------------------------------------------------------------- |
|
30 // |
|
31 CAnim* CKeyPublisherDll::CreateInstanceL( TInt aType ) |
|
32 { |
|
33 switch (aType) |
|
34 { |
|
35 case ESVKAnimKeySound: |
|
36 return new(ELeave)CKeyPublisher(); |
|
37 default: |
|
38 return NULL; |
|
39 } |
|
40 } |
|
41 // ========================== OTHER EXPORTED FUNCTIONS ====================== |
|
42 // ----------------------------------------------------------------------- |
|
43 // CreateCAnimDllL () |
|
44 // Description: This is the first function called by the windows server. |
|
45 // return: Animation object derived from CAnimDll. |
|
46 // ----------------------------------------------------------------------- |
|
47 // |
|
48 EXPORT_C CAnimDll* CreateCAnimDllL() |
|
49 { |
|
50 return new(ELeave)CKeyPublisherDll(); |
|
51 } |
|
52 |
|
53 |
|
54 |
|
55 // End of File |