|
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: This class is a placeholder for a database manager plugin and its |
|
15 * associated destructor id key. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include <ecom/ecom.h> |
|
23 #include <EPos_CPosLmDatabaseManagerPluginBase.h> |
|
24 #include "EPos_CPosLmDbManPluginInfo.h" |
|
25 |
|
26 |
|
27 // ================= MEMBER FUNCTIONS ======================= |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // CPosLmDbManPluginInfo::CPosLmDbManPluginInfo |
|
31 // C++ default constructor can NOT contain any code, that |
|
32 // might leave. |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 CPosLmDbManPluginInfo::CPosLmDbManPluginInfo() |
|
36 { |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CPosLmDbManPluginInfo::ConstructL |
|
41 // Symbian 2nd phase constructor can leave. |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 void CPosLmDbManPluginInfo::ConstructL( |
|
45 TUid aImplUid, |
|
46 TAny* aConstructionParams) |
|
47 { |
|
48 iPlugin = reinterpret_cast<CPosLmDatabaseManagerPluginBase*> |
|
49 (REComSession::CreateImplementationL(aImplUid, |
|
50 iDtorIdKey, |
|
51 aConstructionParams)); |
|
52 } |
|
53 |
|
54 // ----------------------------------------------------------------------------- |
|
55 // CPosLmDbManPluginInfo::NewLC |
|
56 // Two-phased constructor. |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 CPosLmDbManPluginInfo* CPosLmDbManPluginInfo::NewLC( |
|
60 TUid aImplUid, |
|
61 TAny* aConstructionParams) |
|
62 { |
|
63 CPosLmDbManPluginInfo* self = new(ELeave) CPosLmDbManPluginInfo(); |
|
64 CleanupStack::PushL(self); |
|
65 self->ConstructL(aImplUid, aConstructionParams); |
|
66 return self; |
|
67 } |
|
68 |
|
69 |
|
70 // Destructor |
|
71 CPosLmDbManPluginInfo::~CPosLmDbManPluginInfo() |
|
72 { |
|
73 delete iPlugin; |
|
74 REComSession::DestroyedImplementation(iDtorIdKey); |
|
75 } |
|
76 |
|
77 |
|
78 // --------------------------------------------------------- |
|
79 // CPosLmDbManPluginInfo::Instance |
|
80 // |
|
81 // (other items were commented in a header). |
|
82 // --------------------------------------------------------- |
|
83 // |
|
84 CPosLmDatabaseManagerPluginBase* CPosLmDbManPluginInfo::Instance() |
|
85 { |
|
86 return iPlugin; |
|
87 } |
|
88 |
|
89 |
|
90 // End of File |