|
1 /* |
|
2 * Copyright (c) 2000 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: Implementation of terminalsecurity components |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef SCPPLUGINMANAGER_H |
|
20 #define SCPPLUGINMANAGER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <bldvariant.hrh> |
|
24 #include <e32base.h> |
|
25 #include <e32cmn.h> |
|
26 #include <ecom/implementationinformation.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CSCPPlugin; |
|
30 class CSCPParamObject; |
|
31 class CSCPServer; |
|
32 |
|
33 /** |
|
34 * A class responsible for managing the plugins for SCP server |
|
35 */ |
|
36 class CSCPPluginManager : public CBase |
|
37 { |
|
38 public: // Methods |
|
39 |
|
40 // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Static constructor. |
|
44 */ |
|
45 static CSCPPluginManager* NewL( CSCPServer* aServer ); |
|
46 |
|
47 /** |
|
48 * Static constructor, that leaves the pointer to the cleanup stack. |
|
49 */ |
|
50 static CSCPPluginManager* NewLC( CSCPServer* aServer ); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 virtual ~CSCPPluginManager(); |
|
56 |
|
57 /** |
|
58 * Post events to the plugins |
|
59 * @param aID The event ID |
|
60 * @param aParam The event dependent parameter set |
|
61 * @returns |
|
62 */ |
|
63 CSCPParamObject* PostEvent( TInt aID, CSCPParamObject& aParam ); |
|
64 |
|
65 protected: // Methods |
|
66 |
|
67 |
|
68 private: //Methods |
|
69 |
|
70 // New Methods |
|
71 |
|
72 /** |
|
73 * C++ default constructor. |
|
74 */ |
|
75 CSCPPluginManager( CSCPServer* aServer ); |
|
76 |
|
77 /** |
|
78 * Symbian second-phase constructor |
|
79 */ |
|
80 void ConstructL(); |
|
81 |
|
82 /** |
|
83 * Load the plugins |
|
84 */ |
|
85 void LoadPluginsL(); |
|
86 |
|
87 private: // Data |
|
88 /** Contains the authenticated implementation pointers */ |
|
89 RImplInfoPtrArray iImplementations; |
|
90 /** Contains the authenticated plugin pointers */ |
|
91 RPointerArray<CSCPPlugin> iPlugins; |
|
92 /** A pointer to the SCP server, not owned */ |
|
93 CSCPServer* iServer; |
|
94 /** Are the plugins loaded. They will only be loaded when needed. */ |
|
95 TBool iPluginsLoaded; |
|
96 }; |
|
97 |
|
98 #endif // SCPPLUGINMANAGER_H |
|
99 |
|
100 // End of File |
|
101 |