|
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 #ifndef CPOSLMDBMANPLUGININFO_H |
|
22 #define CPOSLMDBMANPLUGININFO_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CPosLmDatabaseManagerPluginBase; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * This class is a placeholder for a database manager plugin and its |
|
34 * associated destructor id key. It handles loading and unloading of the |
|
35 * ECom plugin. |
|
36 * |
|
37 * @lib eposlmdbmanprov.lib |
|
38 * @since S60 3.0 |
|
39 * @version $Revision: 1.4 $, $Date: 2005/07/07 13:40:31 $ |
|
40 */ |
|
41 class CPosLmDbManPluginInfo : public CBase |
|
42 { |
|
43 public: |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 * |
|
48 * @param aDtorIdKey ECom destructor key. |
|
49 * @param aConstructionParams Construction parameters for the plugin. |
|
50 */ |
|
51 static CPosLmDbManPluginInfo* NewLC( |
|
52 /* IN */ TUid aDtorIdKey, |
|
53 /* IN */ TAny* aConstructionParams); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 * |
|
58 */ |
|
59 virtual ~CPosLmDbManPluginInfo(); |
|
60 |
|
61 public: // New functions |
|
62 |
|
63 /** |
|
64 * Retrieves the plugin instance. |
|
65 * |
|
66 * @return The plugin instance. |
|
67 */ |
|
68 CPosLmDatabaseManagerPluginBase* Instance(); |
|
69 |
|
70 protected: |
|
71 |
|
72 /** |
|
73 * C++ default constructor. |
|
74 */ |
|
75 CPosLmDbManPluginInfo(); |
|
76 |
|
77 private: |
|
78 |
|
79 /** |
|
80 * By default Symbian 2nd phase constructor is private. |
|
81 * |
|
82 * @param aDtorIdKey ECom destructor key. |
|
83 * @param aConstructionParams Construction parameters for the plugin. |
|
84 */ |
|
85 void ConstructL( |
|
86 /* IN */ TUid aDtorIdKey, |
|
87 /* IN */ TAny* aConstructionParams); |
|
88 |
|
89 |
|
90 // By default, prohibit copy constructor |
|
91 CPosLmDbManPluginInfo(const CPosLmDbManPluginInfo&); |
|
92 // Prohibit assigment operator |
|
93 CPosLmDbManPluginInfo& operator= (const CPosLmDbManPluginInfo&); |
|
94 |
|
95 private: // Data |
|
96 |
|
97 CPosLmDatabaseManagerPluginBase* iPlugin; |
|
98 TUid iDtorIdKey; |
|
99 |
|
100 }; |
|
101 |
|
102 #endif // CPOSLMDBMANPLUGININFO_H |
|
103 |
|
104 // End of File |