|
1 /* |
|
2 * Copyright (c) 2004 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "AiFwTestContentPlugin.h" |
|
19 #include "AiFwTestContentPlugin2.h" |
|
20 #include "AiFwTestContentPlugin3.h" |
|
21 #include "AiFwTestContentPlugin4.h" |
|
22 #include "AiFwTestContentPlugin5.h" |
|
23 #include "AiFwTestContentPlugin6.h" |
|
24 #include "AiFwTestContentPlugin7.h" |
|
25 #include "AiFwTestContentPlugin8.h" |
|
26 #include "AiFwTestContentPlugin9.h" |
|
27 #include "AiFwTestControllerPlugin.h" |
|
28 #include "AiFwTestControllerPlugin2.h" |
|
29 #include "AiFwTestDefines.h" |
|
30 #include <ecom/ImplementationProxy.h> |
|
31 |
|
32 using namespace AiTestUiController; |
|
33 using namespace AiTestUiController2; |
|
34 |
|
35 TAiTestTLSStorage::TAiTestTLSStorage() : |
|
36 iContentPlugin(NULL), |
|
37 iControllerPlugin(NULL) |
|
38 { |
|
39 } |
|
40 |
|
41 TAiTestTLSStorage* TAiTestTLSStorage::CreateInstanceL() |
|
42 { |
|
43 TAiTestTLSStorage* inst = NULL; |
|
44 TAny* ptr = Dll::Tls(); |
|
45 |
|
46 if ( !ptr ) |
|
47 { |
|
48 inst = new(ELeave) TAiTestTLSStorage; |
|
49 User::LeaveIfError(Dll::SetTls( inst )); |
|
50 } |
|
51 else |
|
52 { |
|
53 inst = static_cast<TAiTestTLSStorage*>( ptr ); |
|
54 } |
|
55 return inst; |
|
56 } |
|
57 |
|
58 void TAiTestTLSStorage::DestroyInstance() |
|
59 { |
|
60 TAny* ptr = Dll::Tls(); |
|
61 TAiTestTLSStorage* tlsSet = static_cast<TAiTestTLSStorage*>( ptr ); |
|
62 |
|
63 if ( tlsSet ) |
|
64 { |
|
65 delete tlsSet; |
|
66 Dll::SetTls( NULL ); |
|
67 } |
|
68 } |
|
69 |
|
70 const TImplementationProxy KImplementationTable[] = |
|
71 { |
|
72 IMPLEMENTATION_PROXY_ENTRY(KImplementationUidAiTestContentPlugin, CAiFwTestContentPlugin::NewL), |
|
73 IMPLEMENTATION_PROXY_ENTRY(KImplementationUidAiFwTestUiController, CAiFwTestControllerPlugin::NewL), |
|
74 IMPLEMENTATION_PROXY_ENTRY(KImplementationUidAiFwTestUiController2, CAiFwTestControllerPlugin2::NewL), |
|
75 IMPLEMENTATION_PROXY_ENTRY(KImplementationUidAiTestContentPlugin2, CAiFwTestContentPlugin2::NewL), |
|
76 IMPLEMENTATION_PROXY_ENTRY(KImplementationUidAiTestContentPlugin3, CAiFwTestContentPlugin3::NewL), |
|
77 IMPLEMENTATION_PROXY_ENTRY(KImplementationUidAiTestContentPlugin4, CAiFwTestContentPlugin4::NewL), |
|
78 IMPLEMENTATION_PROXY_ENTRY(KImplementationUidAiTestContentPlugin5, CAiFwTestContentPlugin5::NewL), |
|
79 IMPLEMENTATION_PROXY_ENTRY(KImplementationUidAiTestContentPlugin6, CAiFwTestContentPlugin6::NewL), |
|
80 IMPLEMENTATION_PROXY_ENTRY(KImplementationUidAiTestContentPlugin7, CAiFwTestContentPlugin7::NewL), |
|
81 IMPLEMENTATION_PROXY_ENTRY(KImplementationUidAiTestContentPlugin8, CAiFwTestContentPlugin8::NewL), |
|
82 IMPLEMENTATION_PROXY_ENTRY(KImplementationUidAiTestContentPlugin9, CAiFwTestContentPlugin9::NewL) |
|
83 }; |
|
84 |
|
85 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) |
|
86 { |
|
87 aTableCount = sizeof(KImplementationTable) / sizeof(TImplementationProxy); |
|
88 return KImplementationTable; |
|
89 } |
|
90 |
|
91 // END OF FILE |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 |
|
97 |