1 /* |
|
2 * Copyright (c) 2007 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: Factory plugin loader implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef ALFFACTORYPLUGINLOADERIMPL_H |
|
21 #define ALFFACTORYPLUGINLOADERIMPL_H |
|
22 |
|
23 #include <osn/alfptrvector.h> |
|
24 |
|
25 using namespace osncore; |
|
26 |
|
27 namespace Alf |
|
28 { |
|
29 |
|
30 class IAlfFactoryPlugin; |
|
31 class AlfFactoryPluginMap; |
|
32 |
|
33 |
|
34 /** |
|
35 * @class AlfFactoryPluginLoaderImpl AlfFactoryPluginLoaderImpl.h "alf/alffactorypluginloaderimpl.h" |
|
36 * |
|
37 * Factory plugin loader loads factory plugins. |
|
38 * |
|
39 * @lib alfwidgetutils.lib |
|
40 * @since S60 ?S60_version |
|
41 * @status Draft |
|
42 */ |
|
43 class AlfFactoryPluginLoaderImpl |
|
44 { |
|
45 public: // Constructors and destructor |
|
46 |
|
47 /** |
|
48 * Constructor |
|
49 */ |
|
50 AlfFactoryPluginLoaderImpl(); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 virtual ~AlfFactoryPluginLoaderImpl(); |
|
56 |
|
57 public: |
|
58 |
|
59 /** |
|
60 * Load a factory plugin. |
|
61 * |
|
62 * @param aLoadId Factory plugin identifier |
|
63 * @since S60 5.0 |
|
64 * @return Pointer to IAlfFactoryPlugin or NULL. |
|
65 * Ownership is transferred to caller. |
|
66 */ |
|
67 IAlfFactoryPlugin* load(const char* aLoadId); |
|
68 |
|
69 private: |
|
70 /** |
|
71 * Owned factory plugins. |
|
72 */ |
|
73 AlfPtrVector<AlfFactoryPluginMap> mFactoryPluginList; |
|
74 |
|
75 }; |
|
76 } |
|
77 |
|
78 #endif |
|
79 |
|
80 // End of File |
|