|
1 /* |
|
2 * Copyright (c) 2006 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 the extension DLL and provides access to extension factory. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CXSPLOADER_H__ |
|
21 #define __CXSPLOADER_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // FORWARD DECLRATIONS |
|
27 class MxSPFactory; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * Loads the extension DLL and provides access to extension factory |
|
33 * implemented in the DLL. |
|
34 */ |
|
35 class CxSPLoader : public CBase |
|
36 { |
|
37 public: // Constructor and destructor |
|
38 /** |
|
39 * Creates a new instance of this class. |
|
40 * Loads the ECom extension DLL that has UID aUid. |
|
41 * |
|
42 * @param aUid UID of the DLL to be loaded |
|
43 * @return New instance of this class |
|
44 */ |
|
45 static CxSPLoader* NewL( TUid aUid ); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CxSPLoader(); |
|
51 |
|
52 public: // Interface |
|
53 /** |
|
54 * Returns the loaded extension factory. |
|
55 * May be NULL if some kind of error happened when loading. |
|
56 * |
|
57 * @return The loaded DLL's extension factory |
|
58 */ |
|
59 MxSPFactory* ExtensionFactory() const; |
|
60 |
|
61 private: // Implementation |
|
62 |
|
63 /** |
|
64 * Default constructor |
|
65 */ |
|
66 CxSPLoader(); |
|
67 |
|
68 /** |
|
69 * Loads the extension DLL with given Uid |
|
70 * |
|
71 * @param aUid The Uid of extension to be loaded |
|
72 */ |
|
73 void LoadExtensionDllL( TUid aUid ); |
|
74 |
|
75 private: // Data |
|
76 /// Own: loaded extension factory. |
|
77 MxSPFactory* iFactory; |
|
78 }; |
|
79 |
|
80 #endif // __CXSPLOADER_H__ |
|
81 |
|
82 // End of File |