9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 #ifndef CHARVESTERPLUGINVALIDATOR_H |
19 #ifndef CHARVESTERPLUGINVALIDATOR_H |
20 #define CHARVESTERPLUGINVALIDATOR_H |
20 #define CHARVESTERPLUGINVALIDATOR_H |
21 |
21 |
22 // INCLUDES |
22 // INCLUDES |
23 #include <e32base.h> |
23 #include <e32base.h> |
24 #include <e32hashtab.h> |
24 #include <e32hashtab.h> |
25 #include "cpluginvalidator.h" |
25 #include "cpluginvalidator.h" |
26 |
26 |
27 // FORWARD DECLARATIONS |
27 // FORWARD DECLARATIONS |
28 class CBlacklistHandler; |
28 class CBlacklistHandler; |
29 |
29 |
30 //CONSTS |
30 //CONSTS |
39 }; |
39 }; |
40 |
40 |
41 /** |
41 /** |
42 * Class used to maintain required ECOM plugins implementations |
42 * Class used to maintain required ECOM plugins implementations |
43 * |
43 * |
44 * |
44 * |
45 * @lib cpclient.dll |
45 * @lib cpclient.dll |
46 * @since S60 v 5.0 |
46 * @since S60 v 5.0 |
47 */ |
47 */ |
48 NONSHARABLE_CLASS( CHarvesterPluginValidator ): public CPluginValidator |
48 NONSHARABLE_CLASS( CHarvesterPluginValidator ): public CPluginValidator |
49 { |
49 { |
50 public: |
50 public: |
51 |
51 |
52 /** |
52 /** |
53 * Two-phased constructor. |
53 * Two-phased constructor. |
54 * |
54 * |
55 */ |
55 */ |
56 IMPORT_C static CHarvesterPluginValidator* NewL( TUid aUid, |
56 IMPORT_C static CHarvesterPluginValidator* NewL( TUid aUid, |
57 TAny *aParameter = NULL ); |
57 TAny *aParameter = NULL ); |
58 |
58 |
59 /** |
59 /** |
60 * Two-phased constructor. |
60 * Two-phased constructor. |
61 * |
61 * |
62 */ |
62 */ |
63 IMPORT_C static CHarvesterPluginValidator* NewLC( TUid aUid, |
63 IMPORT_C static CHarvesterPluginValidator* NewLC( TUid aUid, |
64 TAny *aParameter = NULL ); |
64 TAny *aParameter = NULL ); |
65 |
65 |
66 /** |
66 /** |
67 * Desctructor. |
67 * Desctructor. |
68 */ |
68 */ |
69 ~CHarvesterPluginValidator(); |
69 ~CHarvesterPluginValidator(); |
70 |
70 |
71 |
71 |
72 private: |
72 private: |
73 |
73 |
74 /** |
74 /** |
75 * C++ default constructor. |
75 * C++ default constructor. |
76 */ |
76 */ |
77 CHarvesterPluginValidator( TUid aUid, TAny *aParameter ); |
77 CHarvesterPluginValidator( TUid aUid, TAny *aParameter ); |
78 |
78 |
79 /** |
79 /** |
80 * Perform the second phase construction of a CPluginValidator object. |
80 * Perform the second phase construction of a CPluginValidator object. |
81 */ |
81 */ |
82 void ConstructL(); |
82 void ConstructL(); |
83 |
83 |
84 /** |
84 /** |
85 * Loads or destroys plugins |
85 * Loads or destroys plugins |
86 */ |
86 */ |
87 void ManagePluginsL(); |
87 void ManagePluginsL(); |
88 |
88 |
89 /** |
89 /** |
90 * Loads ECOM plugins |
90 * Loads ECOM plugins |
91 */ |
91 */ |
92 void LoadPluginL( TPluginInfo& aPluginInfo ); |
92 void LoadPluginL( TPluginInfo& aPluginInfo ); |
93 |
93 |
94 |
94 |
95 private: |
95 private: |
96 |
96 |
97 /** |
97 /** |
98 * Blacklist Handler |
98 * Blacklist Handler |
99 * Own |
99 * Own |
100 */ |
100 */ |
101 CBlacklistHandler* iBlacklist; |
101 CBlacklistHandler* iBlacklist; |
102 |
102 |
103 /* |
|
104 * Startup flag |
|
105 * |
|
106 */ |
|
107 TBool iStartup; |
|
108 |
|
109 /* |
103 /* |
110 * Property indicating the status of load operation |
104 * Property indicating the status of load operation |
111 * Own |
105 * Own |
112 */ |
106 */ |
113 RProperty iInProgressProperty; |
107 RProperty iInProgressProperty; |