idlehomescreen/xmluirendering/uiengine/inc/xneditor.h
branchRCL_3
changeset 17 b8fae6b8a148
parent 11 ff572dfe6d86
child 19 79311d856354
equal deleted inserted replaced
12:9674c1a575e9 17:b8fae6b8a148
    37 class CAknListQueryDialog;
    37 class CAknListQueryDialog;
    38 class CXnViewManager;
    38 class CXnViewManager;
    39 class CXnViewData;
    39 class CXnViewData;
    40 class CRepository;
    40 class CRepository;
    41 class CXnBackgroundManager;
    41 class CXnBackgroundManager;
       
    42 class CXnOomSysHandler;
    42 
    43 
    43 namespace hspswrapper
    44 namespace hspswrapper
    44     {
    45     {
    45     class CPropertyMap;
    46     class CPropertyMap;
    46     class CAddPluginResult;
    47     class CAddPluginResult;
   236     void ConstructL( const TDesC8& aUid );
   237     void ConstructL( const TDesC8& aUid );
   237 
   238 
   238 private:
   239 private:
   239     // new functions    
   240     // new functions    
   240     
   241     
   241     void TemplatedWidgetsL( RPointerArray< CHsContentInfo >& aWidgets );
   242       CPublisherInfo* PublisherInfoL( const CHsContentInfo& aContentInfo );
   242 
       
   243     void HSPSPluginsL( RPointerArray< CHsContentInfo >& aWidgets,
       
   244         const TDesC8& aType );
       
   245 
       
   246     CPublisherInfo* PublisherInfoL( const CHsContentInfo& aContentInfo );
       
   247 
   243 
   248     TInt TemplateWidgetCanBeAddedRemovedL( CHsContentInfo& aContentInfo );
   244     TInt TemplateWidgetCanBeAddedRemovedL( CHsContentInfo& aContentInfo );
   249     TInt NonTemplateWidgetCanBeAddedRemovedL( CHsContentInfo& aContentInfo );
   245     TInt NonTemplateWidgetCanBeAddedRemovedL( CHsContentInfo& aContentInfo );
   250     
   246     
   251     TBool IsCurrentViewFull();
   247     TBool IsCurrentViewFull();
   252     void FilterWidgetListL( CHsContentInfoArray& aContentInfoArray,
   248     
       
   249     /**
       
   250      * Filters plugins from the list and checks whether the plugins can be added or removed.
       
   251      */
       
   252     void FilterPluginsL( CHsContentInfoArray& aContentInfoArray,
   253         TBool aIgnoreViewFull );
   253         TBool aIgnoreViewFull );
       
   254     
   254     void FilterViewListL( CHsContentInfoArray& aContentInfoArray ); 
   255     void FilterViewListL( CHsContentInfoArray& aContentInfoArray ); 
       
   256     CXnOomSysHandler& OomSysHandler() const;
   255     
   257     
   256     /**
   258     /**
   257      * Notifies the MHsContentControl and the MHsContentControlUi if widget list was changed.
   259      * Notifies the MHsContentControl and the MHsContentControlUi if widget list was changed.
   258      */
   260      */
   259     void WidgetListChanged();
   261     void WidgetListChanged();
   267      * Creates content info for defined plugin
   269      * Creates content info for defined plugin
   268      */
   270      */
   269     CHsContentInfo* CreateContentInfoLC( CXnPluginData& aPlugin, 
   271     CHsContentInfo* CreateContentInfoLC( CXnPluginData& aPlugin, 
   270         RPointerArray< CHsContentInfo >& aInfos );
   272         RPointerArray< CHsContentInfo >& aInfos );
   271     
   273     
       
   274     /**
       
   275      * Appends plugin configurations to the content info array.
       
   276      */
       
   277     void AppendPluginsL(
       
   278             RPointerArray< hspswrapper::CPluginInfo > aPlugins,
       
   279             RPointerArray< CHsContentInfo >& aWidgets );
       
   280     
       
   281     /**
       
   282      * Resets runtime cache.
       
   283      */
       
   284     void ResetCache();
       
   285     
       
   286     /**
       
   287      * Retrieves native application configuration plugins from HSPS
       
   288      */
       
   289     void HspsApplicationPluginsL( RPointerArray< CHsContentInfo >& aWidgets );
       
   290     
       
   291     /**
       
   292      * Retrieves native view configuration plugins from HSPS
       
   293      */
       
   294     void HspsViewPluginsL( RPointerArray< CHsContentInfo >& aWidgets );
       
   295            
       
   296     /**
       
   297      * Retrieves widget and template configuration plugins from HSPS
       
   298      */
       
   299     void HspsWidgetPluginsL( RPointerArray< CHsContentInfo >& aWidgets );        
       
   300     void DoHspsWidgetPluginsL();
       
   301     
       
   302     /**
       
   303      * Retrieves publishers from CPS and them with the HSPS's template plugins
       
   304      */
       
   305     void CpsWidgetPluginsL( RPointerArray< CHsContentInfo >& aWidgets );
       
   306             
   272 private:
   307 private:
   273     // from MXnViewObserver    
   308     // from MXnViewObserver    
   274     
   309     
   275     void NotifyViewActivatedL( const CXnViewData& aViewData );
   310     void NotifyViewActivatedL( const CXnViewData& aViewData );
   276 
   311 
   318     CXnNode* iTargetPlugin;
   353     CXnNode* iTargetPlugin;
   319     /** Widgets visibility state */
   354     /** Widgets visibility state */
   320     TBool iWidgetsVisibilityState;    
   355     TBool iWidgetsVisibilityState;    
   321     /** Central repository , to choose plugin, owned*/
   356     /** Central repository , to choose plugin, owned*/
   322     CRepository* iRepository;
   357     CRepository* iRepository;
       
   358 	/** Plugins cache, owned */
       
   359     RPointerArray< hspswrapper::CPluginInfo > iPluginsCache;
       
   360     CXnOomSysHandler* iOomSysHandler;
   323     };
   361     };
   324 
   362 
   325 #endif // C_XNEDITOR_H
   363 #endif // C_XNEDITOR_H