webengine/widgetregistry/Server/inc/WidgetRegistry.h
changeset 15 60c5402cb945
parent 0 dd21522fd290
child 25 0ed94ceaa377
equal deleted inserted replaced
11:c8a366e56285 15:60c5402cb945
    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"
    30 #include "WidgetRegistryLog.h"
    31 #include "WidgetRegistryLog.h"
    31 
    32 
    34 
    35 
    35 // MACROS
    36 // MACROS
    36 
    37 
    37 // FORWARD DECLARATIONS
    38 // FORWARD DECLARATIONS
    38 class RFs;
    39 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
    61 class CWidgetRegistry : public CBase, public MApaAppListServObserver
    62     {
    62     {
    63 public:
    63 public:
    64     /**
    64     /**
    65      * Returns singleton of factory.
    65      * Returns singleton of factory.
    66      */
    66      */
   198      * Load widget information from a file, detect consistency
   198      * Load widget information from a file, detect consistency
   199      * errors and correct them.  Leave only if unrecoverable issue,
   199      * errors and correct them.  Leave only if unrecoverable issue,
   200      * dirty flag is true only in non leave case and some change
   200      * dirty flag is true only in non leave case and some change
   201      * needs to be written out
   201      * needs to be written out
   202      */
   202      */
   203     void InternalizeL( TBool& aDirtyFlag );
   203     void InternalizeL( TBool aDoConsistency,
       
   204                        TBool aIgnoreParseError,
       
   205                        TBool& aDirtyFlag,
       
   206                        TInt& aParseError );
   204 
   207 
   205     /**
   208     /**
   206      * Store widget information to a file
   209      * Store widget information to a file
   207      */
   210      */
   208     void ExternalizeL();
   211     void ExternalizeL();
   209 
   212 
   210     /**
   213     /**
   211      * Returns security policyId.
   214      * Returns security policyId.
   212      */
   215      */
   213      TInt SecurityPolicyId() { return FetchSecurityPolicyIdL(); }
   216      TInt SecurityPolicyId() { return FetchSecurityPolicyIdL(); }
       
   217 
       
   218 		//from MApaAppListServObserver
       
   219 		void HandleAppListEvent(TInt aEvent);
   214 
   220 
   215 private:
   221 private:
   216 
   222 
   217     /**
   223     /**
   218      * Insert a widget entry
   224      * Insert a widget entry
   359     TBuf<KWidgetRegistryMaxPathName> iRegistryXmlTempFileName;
   365     TBuf<KWidgetRegistryMaxPathName> iRegistryXmlTempFileName;
   360     TBuf<KWidgetRegistryMaxPathName> iLprojName;
   366     TBuf<KWidgetRegistryMaxPathName> iLprojName;
   361 
   367 
   362     // map of language code to lproj dir
   368     // map of language code to lproj dir
   363     RPtrHashMap<TInt,HBufC8>    iLangDirList;
   369     RPtrHashMap<TInt,HBufC8>    iLangDirList;
   364     CWidgetMMCHandler*          iMMCHandler;
       
   365     TInt                        iPolicyId;
   370     TInt                        iPolicyId;
   366     CWidgetRegistryXml*         iXmlProcessor;
   371     CWidgetRegistryXml*         iXmlProcessor;
       
   372     CApaAppListNotifier* iApaAppListNotifier;
   367 public:
   373 public:
   368     LOG_MEMBER_VARS
   374     LOG_MEMBER_VARS
   369     };
   375     };
   370 
   376 
   371 #endif  //WIDGETREGISTRY_H
   377 #endif  //WIDGETREGISTRY_H