|
1 /* |
|
2 * Copyright (c) 2002 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 * Loads a polymorphic extension dll and provides access to |
|
16 * extension factory. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef CLogsExtensionLoader_H |
|
22 #define CLogsExtensionLoader_H |
|
23 |
|
24 |
|
25 // INCLUDES |
|
26 #include <e32base.h> |
|
27 |
|
28 // FORWARD DECLRATIONS |
|
29 class MLogsExtensionFactory; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Loads a polymorphic extension dll and provides access to |
|
35 * extension factory. |
|
36 */ |
|
37 class CLogsExtensionLoader : public CBase |
|
38 { |
|
39 public: // Constructor and destructor |
|
40 /** |
|
41 * Creates a new CLogsExtensionLoader. |
|
42 */ |
|
43 static CLogsExtensionLoader* NewL(); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 ~CLogsExtensionLoader(); |
|
49 |
|
50 public: // Interface |
|
51 /** |
|
52 * Returns extension factory. Ownership is changed for the |
|
53 * caller. Second call will return NULL. |
|
54 * |
|
55 * @return extension factory |
|
56 */ |
|
57 MLogsExtensionFactory& ExtensionFactory(); |
|
58 |
|
59 private: |
|
60 CLogsExtensionLoader(); |
|
61 void ConstructL(); |
|
62 TUidType UidType(); |
|
63 void LoadExtensionDllL(); |
|
64 |
|
65 private: // Data |
|
66 /// Own: the test dll. |
|
67 RLibrary iDll; |
|
68 /// Ref/Own: loaded extension factory |
|
69 MLogsExtensionFactory* iFactory; |
|
70 |
|
71 }; |
|
72 |
|
73 #endif |
|
74 |
|
75 |
|
76 // End of File |