idlehomescreen/xmluirendering/uiengine/src/xncomposer.cpp
branchRCL_3
changeset 35 3321d3e205b6
parent 34 5456b4e8b3a8
equal deleted inserted replaced
34:5456b4e8b3a8 35:3321d3e205b6
    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" );
    54 
    57 
    55 using namespace hspswrapper;
    58 using namespace hspswrapper;
    56 
    59 
    57 // ======== LOCAL FUNCTIONS ========
    60 // ======== LOCAL FUNCTIONS ========
    58 // --------------------------------------------------------------------------
    61 // --------------------------------------------------------------------------
   510         CleanupStack::PopAndDestroy( 2, configuration );
   513         CleanupStack::PopAndDestroy( 2, configuration );
   511         
   514         
   512         return NULL;        
   515         return NULL;        
   513         }
   516         }
   514 
   517 
       
   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 
   515     CPluginInfo& info( configuration->PluginInfo() );
   537     CPluginInfo& info( configuration->PluginInfo() );
   516 
   538 
   517     aRootData.SetOwner( root );
   539     aRootData.SetOwner( root );
   518     aRootData.SetNode( views );
   540     aRootData.SetNode( views );
   519     
   541