equal
deleted
inserted
replaced
21 #define WIDGETREGISTRY_H |
21 #define WIDGETREGISTRY_H |
22 |
22 |
23 // INCLUDES |
23 // INCLUDES |
24 #include <e32hashtab.h> |
24 #include <e32hashtab.h> |
25 #include <apgcli.h> |
25 #include <apgcli.h> |
26 #include <Browser_platform_variant.hrh> |
26 #include <browser_platform_variant.hrh> |
27 #include <apgnotif.h> |
27 #include "widgetregistrydata.h" |
28 #include "WidgetRegistryData.h" |
28 #include "widgetregistryconstants.h" |
29 #include "WidgetRegistryConstants.h" |
29 #include "widgetpropertyvalue.h" |
30 #include "WidgetPropertyValue.h" |
|
31 #include "WidgetRegistryLog.h" |
30 #include "WidgetRegistryLog.h" |
32 |
31 |
33 // CONSTANTS |
32 // CONSTANTS |
34 #define KWidgetRegistryMaxPathName 64 |
33 #define KWidgetRegistryMaxPathName 64 |
35 |
34 |
36 // MACROS |
35 // MACROS |
37 |
36 |
38 // FORWARD DECLARATIONS |
37 // FORWARD DECLARATIONS |
39 class RFs; |
38 class RFs; |
|
39 class CWidgetMMCHandler; |
40 class CWidgetEntry; |
40 class CWidgetEntry; |
41 class CWidgetInstaller; |
41 class CWidgetInstaller; |
42 class CWidgetRegistryXml; |
42 class CWidgetRegistryXml; |
43 |
43 |
44 #if defined( BRDO_WRT_SECURITY_MGR_FF ) |
44 #if defined( BRDO_WRT_SECURITY_MGR_FF ) |
56 /** |
56 /** |
57 * CWidgetRegistry |
57 * CWidgetRegistry |
58 * @since 3.1 |
58 * @since 3.1 |
59 */ |
59 */ |
60 |
60 |
61 class CWidgetRegistry : public CBase, public MApaAppListServObserver |
61 class CWidgetRegistry : public CBase |
62 { |
62 { |
63 public: |
63 public: |
64 /** |
64 /** |
65 * Returns singleton of factory. |
65 * Returns singleton of factory. |
66 */ |
66 */ |
212 |
212 |
213 /** |
213 /** |
214 * Returns security policyId. |
214 * Returns security policyId. |
215 */ |
215 */ |
216 TInt SecurityPolicyId() { return FetchSecurityPolicyIdL(); } |
216 TInt SecurityPolicyId() { return FetchSecurityPolicyIdL(); } |
217 |
217 |
218 //from MApaAppListServObserver |
|
219 void HandleAppListEvent(TInt aEvent); |
|
220 |
|
221 private: |
218 private: |
222 |
219 |
223 /** |
220 /** |
224 * Insert a widget entry |
221 * Insert a widget entry |
225 */ |
222 */ |
232 |
229 |
233 /** |
230 /** |
234 * Get widget entry with a particular UId |
231 * Get widget entry with a particular UId |
235 */ |
232 */ |
236 TInt GetWidgetEntry( const TUid& aUid, CWidgetEntry*& aEntry ) const; |
233 TInt GetWidgetEntry( const TUid& aUid, CWidgetEntry*& aEntry ) const; |
|
234 |
|
235 /** |
|
236 * Get widget entry with a particular UId |
|
237 */ |
|
238 TInt GetWidgetOldEntry( const TUid& aUid, CWidgetEntry*& aEntry ) const; |
237 |
239 |
238 /** |
240 /** |
239 * Get widget entry with a particular bundle Id |
241 * Get widget entry with a particular bundle Id |
240 */ |
242 */ |
241 TInt GetWidgetEntry( |
243 TInt GetWidgetEntry( |
353 private: |
355 private: |
354 |
356 |
355 RWidgetArray iEntries; |
357 RWidgetArray iEntries; |
356 RUidArray iUsedUids; |
358 RUidArray iUsedUids; |
357 RFs iFs; // not owned |
359 RFs iFs; // not owned |
|
360 RPointerArray<CWidgetEntry> iOldEntries; // Hold the earlier entries from iEntries |
358 |
361 |
359 // added for validation purpose |
362 // added for validation purpose |
360 RApaLsSession iAppArch; |
363 RApaLsSession iAppArch; |
361 CWidgetInstaller* iInstaller; |
364 CWidgetInstaller* iInstaller; |
362 TBuf<KWidgetRegistryMaxPathName> iWidgetInstallPath; |
365 TBuf<KWidgetRegistryMaxPathName> iWidgetInstallPath; |
365 TBuf<KWidgetRegistryMaxPathName> iRegistryXmlTempFileName; |
368 TBuf<KWidgetRegistryMaxPathName> iRegistryXmlTempFileName; |
366 TBuf<KWidgetRegistryMaxPathName> iLprojName; |
369 TBuf<KWidgetRegistryMaxPathName> iLprojName; |
367 |
370 |
368 // map of language code to lproj dir |
371 // map of language code to lproj dir |
369 RPtrHashMap<TInt,HBufC8> iLangDirList; |
372 RPtrHashMap<TInt,HBufC8> iLangDirList; |
|
373 CWidgetMMCHandler* iMMCHandler; |
370 TInt iPolicyId; |
374 TInt iPolicyId; |
371 CWidgetRegistryXml* iXmlProcessor; |
375 CWidgetRegistryXml* iXmlProcessor; |
372 CApaAppListNotifier* iApaAppListNotifier; |
|
373 public: |
376 public: |
374 LOG_MEMBER_VARS |
377 LOG_MEMBER_VARS |
375 }; |
378 }; |
376 |
379 |
377 #endif //WIDGETREGISTRY_H |
380 #endif //WIDGETREGISTRY_H |