diff -r 79859ed3eea9 -r 919f36ff910f webengine/widgetregistry/Server/inc/WidgetRegistry.h --- a/webengine/widgetregistry/Server/inc/WidgetRegistry.h Tue Aug 31 16:17:46 2010 +0300 +++ b/webengine/widgetregistry/Server/inc/WidgetRegistry.h Wed Sep 01 12:28:30 2010 +0100 @@ -23,11 +23,10 @@ // INCLUDES #include #include -#include -#include -#include "WidgetRegistryData.h" -#include "WidgetRegistryConstants.h" -#include "WidgetPropertyValue.h" +#include +#include +#include +#include #include "WidgetRegistryLog.h" // CONSTANTS @@ -37,6 +36,7 @@ // FORWARD DECLARATIONS class RFs; +class CWidgetMMCHandler; class CWidgetEntry; class CWidgetInstaller; class CWidgetRegistryXml; @@ -58,7 +58,7 @@ * @since 3.1 */ -class CWidgetRegistry : public CBase, public MApaAppListServObserver +class CWidgetRegistry : public CBase { public: /** @@ -214,10 +214,9 @@ * Returns security policyId. */ TInt SecurityPolicyId() { return FetchSecurityPolicyIdL(); } - - //from MApaAppListServObserver - void HandleAppListEvent(TInt aEvent); - + + static void NotifyWidgetAltered(); + private: /** @@ -234,6 +233,11 @@ * Get widget entry with a particular UId */ TInt GetWidgetEntry( const TUid& aUid, CWidgetEntry*& aEntry ) const; + + /** + * Get widget entry with a particular UId + */ + TInt GetWidgetOldEntry( const TUid& aUid, CWidgetEntry*& aEntry ) const; /** * Get widget entry with a particular bundle Id @@ -355,6 +359,7 @@ RWidgetArray iEntries; RUidArray iUsedUids; RFs iFs; // not owned + RPointerArray iOldEntries; // Hold the earlier entries from iEntries // added for validation purpose RApaLsSession iAppArch; @@ -362,14 +367,15 @@ TBuf iWidgetInstallPath; TBuf iRegistryBinaryFileName; TBuf iRegistryXmlFileName; + TBuf iRegistryCWRTXmlFileName; TBuf iRegistryXmlTempFileName; TBuf iLprojName; // map of language code to lproj dir RPtrHashMap iLangDirList; + CWidgetMMCHandler* iMMCHandler; TInt iPolicyId; CWidgetRegistryXml* iXmlProcessor; - CApaAppListNotifier* iApaAppListNotifier; public: LOG_MEMBER_VARS };