|
1 /* |
|
2 * Copyright (c) 2005-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: Handles application specific ECOM plugins. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_PSLNPLUGINHANDLER_H |
|
21 #define C_PSLNPLUGINHANDLER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 class CPslnFWPluginInterface; |
|
26 class CPslnFWPluginHandler; |
|
27 class CPslnUi; |
|
28 |
|
29 /** |
|
30 * Handles application specific ECOM plugins. |
|
31 * Owns the plugins in Psln Application. |
|
32 * |
|
33 * @since S60 v3.1 |
|
34 */ |
|
35 class CPslnPluginHandler : public CBase |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Two-phased constructor. |
|
41 * @param aPslnUi pointer to UI class. |
|
42 * @return new instance of CPslnPluginHandler. |
|
43 */ |
|
44 static CPslnPluginHandler* NewL( CPslnUi* aPslnUi ); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CPslnPluginHandler(); |
|
50 |
|
51 /** |
|
52 * Gets array of loaded plugins. |
|
53 * Plugin array ownership is not transferred. |
|
54 * @return array of AknView ECOM plugins. |
|
55 */ |
|
56 CArrayPtrFlat<CPslnFWPluginInterface>* GetPluginArray() const; |
|
57 |
|
58 /** |
|
59 * Retrieves a plugin that matches Uid. |
|
60 * Plugin ownership is not transferred. |
|
61 * @param aUid plugin to retrieve. |
|
62 * @return pointer to the matching plugin interface. |
|
63 */ |
|
64 CPslnFWPluginInterface* GetPlugin( const TUid& aUid ); |
|
65 |
|
66 private: |
|
67 |
|
68 /** |
|
69 * C++ constructor. |
|
70 */ |
|
71 CPslnPluginHandler( CPslnUi* aPslnUi ); |
|
72 |
|
73 /** |
|
74 * By default Symbian 2nd phase constructor is private. |
|
75 */ |
|
76 void ConstructL(); |
|
77 |
|
78 private: // Data |
|
79 |
|
80 /** |
|
81 * Array of loaded plugins. |
|
82 * Own. |
|
83 */ |
|
84 CArrayPtrFlat<CPslnFWPluginInterface>* iPluginArray; |
|
85 |
|
86 /** |
|
87 * Reference to Ui. |
|
88 * Not own. Owned by Main view. |
|
89 */ |
|
90 CPslnUi* iPslnUi; |
|
91 |
|
92 }; |
|
93 |
|
94 #endif // C_PSLNPLUGINHANDLER_H |
|
95 |
|
96 // End of File |