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 ) |
232 |
231 |
233 /** |
232 /** |
234 * Get widget entry with a particular UId |
233 * Get widget entry with a particular UId |
235 */ |
234 */ |
236 TInt GetWidgetEntry( const TUid& aUid, CWidgetEntry*& aEntry ) const; |
235 TInt GetWidgetEntry( const TUid& aUid, CWidgetEntry*& aEntry ) const; |
|
236 |
|
237 /** |
|
238 * Get widget entry with a particular UId |
|
239 */ |
|
240 TInt GetWidgetOldEntry( const TUid& aUid, CWidgetEntry*& aEntry ) const; |
237 |
241 |
238 /** |
242 /** |
239 * Get widget entry with a particular bundle Id |
243 * Get widget entry with a particular bundle Id |
240 */ |
244 */ |
241 TInt GetWidgetEntry( |
245 TInt GetWidgetEntry( |
353 private: |
357 private: |
354 |
358 |
355 RWidgetArray iEntries; |
359 RWidgetArray iEntries; |
356 RUidArray iUsedUids; |
360 RUidArray iUsedUids; |
357 RFs iFs; // not owned |
361 RFs iFs; // not owned |
|
362 RPointerArray<CWidgetEntry> iOldEntries; // Hold the earlier entries from iEntries |
358 |
363 |
359 // added for validation purpose |
364 // added for validation purpose |
360 RApaLsSession iAppArch; |
365 RApaLsSession iAppArch; |
361 CWidgetInstaller* iInstaller; |
366 CWidgetInstaller* iInstaller; |
362 TBuf<KWidgetRegistryMaxPathName> iWidgetInstallPath; |
367 TBuf<KWidgetRegistryMaxPathName> iWidgetInstallPath; |
363 TBuf<KWidgetRegistryMaxPathName> iRegistryBinaryFileName; |
368 TBuf<KWidgetRegistryMaxPathName> iRegistryBinaryFileName; |
364 TBuf<KWidgetRegistryMaxPathName> iRegistryXmlFileName; |
369 TBuf<KWidgetRegistryMaxPathName> iRegistryXmlFileName; |
|
370 TBuf<KWidgetRegistryMaxPathName> iRegistryCWRTXmlFileName; |
365 TBuf<KWidgetRegistryMaxPathName> iRegistryXmlTempFileName; |
371 TBuf<KWidgetRegistryMaxPathName> iRegistryXmlTempFileName; |
366 TBuf<KWidgetRegistryMaxPathName> iLprojName; |
372 TBuf<KWidgetRegistryMaxPathName> iLprojName; |
367 |
373 |
368 // map of language code to lproj dir |
374 // map of language code to lproj dir |
369 RPtrHashMap<TInt,HBufC8> iLangDirList; |
375 RPtrHashMap<TInt,HBufC8> iLangDirList; |
|
376 CWidgetMMCHandler* iMMCHandler; |
370 TInt iPolicyId; |
377 TInt iPolicyId; |
371 CWidgetRegistryXml* iXmlProcessor; |
378 CWidgetRegistryXml* iXmlProcessor; |
372 CApaAppListNotifier* iApaAppListNotifier; |
|
373 public: |
379 public: |
374 LOG_MEMBER_VARS |
380 LOG_MEMBER_VARS |
375 }; |
381 }; |
376 |
382 |
377 #endif //WIDGETREGISTRY_H |
383 #endif //WIDGETREGISTRY_H |