idlehomescreen/data/qhd_tch/view_200286e5/conf/view200286e5.gcfml
branchRCL_3
changeset 31 89165693e770
parent 26 1b758917cafc
equal deleted inserted replaced
28:d721605b30d0 31:89165693e770
     1 <?xml version="1.0" encoding="UTF-8"?>
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <container xmlns="http://www.symbianfoundation.org/xml/implml/1">
     2 <container xmlns="http://www.symbianfoundation.org/xml/implml/1">
     3 	<tag name="target" value="core"/>
     3 	<tag name="target" value="core"/>
     4 	<tag name="target" value="rofs2"/>
     4 	<tag name="target" value="rofs2"/>
     5 	<tag name="target" value="rofs3"/>
     5 	<tag name="target" value="rofs3"/>
     6 <!--	<tag name="target" value="uda"/>
     6   <phase name='post'/> <!-- post phase for making sure that data for all homescreen widgets is available in sequence -->
     7 	<tag name="target" value="emmc"/> -->
       
     8 <phase name='post'/> <!-- post phase for making sure that data for all homescreen widgets is available in sequence -->
       
     9 
       
    10 <!--
       
    11   <ruleml xmlns="http://www.s60.com/xml/ruleml/3">
       
    12     <rule>True configures ${HomescreenPlugins_3.Plugins} = {% mapBundleIds(@{DFSFeatures.HomescreenWidgets}, @{HomescreenPlugins_3.Plugins}) %}</rule>
       
    13 <eval_globals>      
       
    14 import logging
       
    15 #logger = logging.getLogger('cone.homescreen3')
       
    16 def mapBundleIds(dfswidgets, plugins):
       
    17   # create a uid-bundle dictionary
       
    18   dict = {}
       
    19   #logger.debug('ws %s' % dfswidgets.value)
       
    20   for widget in dfswidgets.value:
       
    21     dict[widget[dfswidgets._order.index('Uid')].lower()] = widget[dfswidgets._order.index('Bundle')]
       
    22   
       
    23   #logger.debug('d %s' % dict)
       
    24   new_plugins = []    
       
    25   for plugin in plugins.value:
       
    26     # update bundle only if it's 0 or None
       
    27     if plugin[plugins._order.index('Uid')] is not None and (plugin[plugins._order.index('BundleIdentifier')] == '0' or plugin[plugins._order.index('BundleIdentifier')] == None):
       
    28       bundle = dict.get(plugin[plugins._order.index('Uid')].lower())
       
    29       if bundle is not None:
       
    30         #logger.debug('Bundle id updated %s' % bundle)
       
    31         plugin[plugins._order.index('BundleIdentifier')] = bundle
       
    32     new_plugins.append(plugin)
       
    33   
       
    34   return new_plugins
       
    35 </eval_globals>
       
    36   </ruleml>
       
    37 -->
       
    38 
       
    39 <file xmlns="http://www.s60.com/xml/genconfml/1" name="viewconfiguration.xml" target="\private\200159c0\install\view_200286e5\hsps\00\">
     7 <file xmlns="http://www.s60.com/xml/genconfml/1" name="viewconfiguration.xml" target="\private\200159c0\install\view_200286e5\hsps\00\">
    40 	<setting ref="HomescreenPlugins_3/MaxWidgets"/>
     8 	<setting ref="HomescreenPlugins_3/MaxWidgets"/>
    41 	<setting ref="HomescreenPlugins_3/UseEmptyWidgets"/>
     9 	<setting ref="HomescreenPlugins_3/UseEmptyWidgets"/>
    42   <setting ref="HomescreenPlugins_3/ItemIdEmptyWidgets"/>
    10   <setting ref="HomescreenPlugins_3/ItemIdEmptyWidgets"/>
    43   <setting ref="HomescreenPlugins_3/PropertyEmptyWidgets"/>
    11   <setting ref="HomescreenPlugins_3/PropertyEmptyWidgets"/>