idlehomescreen/xmluirendering/uiengine/src/xncomposer.cpp
branchRCL_3
changeset 102 ba63c83f4716
parent 88 3321d3e205b6
equal deleted inserted replaced
93:b01126ce0bec 102:ba63c83f4716
    49 
    49 
    50 _LIT8( KEmptyWidgetUid, "0x2001F47F" );
    50 _LIT8( KEmptyWidgetUid, "0x2001F47F" );
    51 
    51 
    52 _LIT( KCDrive, "C:" );
    52 _LIT( KCDrive, "C:" );
    53 _LIT8( KTagXuikon, "xuikon" );
    53 _LIT8( KTagXuikon, "xuikon" );
    54 
       
    55 _LIT8( KTemplateViewSetting, "templateView" );
       
    56 _LIT8( KViewUidSetting, "uid" );
       
    57 
    54 
    58 using namespace hspswrapper;
    55 using namespace hspswrapper;
    59 
    56 
    60 // ======== LOCAL FUNCTIONS ========
    57 // ======== LOCAL FUNCTIONS ========
    61 // --------------------------------------------------------------------------
    58 // --------------------------------------------------------------------------
   513         CleanupStack::PopAndDestroy( 2, configuration );
   510         CleanupStack::PopAndDestroy( 2, configuration );
   514         
   511         
   515         return NULL;        
   512         return NULL;        
   516         }
   513         }
   517 
   514 
   518     RPointerArray<CItemMap>& settings( configuration->Settings() );
       
   519     
       
   520     for ( TInt i = 0; i < settings.Count(); i++ )
       
   521         {
       
   522         CItemMap* setting( settings[i] );
       
   523         if ( (setting != NULL) && setting->ItemId() == KTemplateViewSetting )
       
   524             {
       
   525             RPointerArray<CPropertyMap>& properties = setting->Properties(); 
       
   526             for ( TInt j = 0; j < properties.Count(); j++ )
       
   527                 {
       
   528                 CPropertyMap* property( properties[i] );
       
   529                 if ( (property != NULL) && property->Name() == KViewUidSetting )
       
   530                     {
       
   531                     aRootData.SetTemplateViewUidL( property->Value() );
       
   532                     }
       
   533                 }
       
   534             }
       
   535         }
       
   536 
       
   537     CPluginInfo& info( configuration->PluginInfo() );
   515     CPluginInfo& info( configuration->PluginInfo() );
   538 
   516 
   539     aRootData.SetOwner( root );
   517     aRootData.SetOwner( root );
   540     aRootData.SetNode( views );
   518     aRootData.SetNode( views );
   541     
   519