idlehomescreen/widgetmanager/tsrc/wmunittest/src/wmunittest_sortorder.cpp
changeset 2 08c6ee43b396
parent 1 5315654608de
child 11 ff572dfe6d86
equal deleted inserted replaced
1:5315654608de 2:08c6ee43b396
   153     CreateContentInfoArrayL( *contentArray, aCount );
   153     CreateContentInfoArrayL( *contentArray, aCount );
   154     // connect to widget registry
   154     // connect to widget registry
   155     RWidgetRegistryClientSession registryClient;
   155     RWidgetRegistryClientSession registryClient;
   156     User::LeaveIfError( registryClient.Connect() );
   156     User::LeaveIfError( registryClient.Connect() );
   157     CleanupClosePushL( registryClient );
   157     CleanupClosePushL( registryClient );
       
   158     TSize dummySize(40,40);
       
   159     CWmResourceLoader* resLoader = NULL; // not used in this case
       
   160     while( contentArray->Array().Count() > 0 )
       
   161         {        
       
   162         CWmWidgetData* data = CWmWidgetData::NewL(
       
   163                 dummySize, *resLoader, 
       
   164                 contentArray->Array()[0],
       
   165                 &registryClient);
   158 
   166 
   159     while( contentArray->Array().Count() > 0 )
       
   160         {
       
   161         CWmWidgetData* data = CWmWidgetData::NewL(
       
   162                 contentArray->Array()[0], &registryClient);
       
   163         contentArray->Array().Remove( 0 );
   167         contentArray->Array().Remove( 0 );
   164         CleanupStack::PushL( data );
   168         CleanupStack::PushL( data );
   165         aArray.AppendL( data );
   169         aArray.AppendL( data );
   166         CleanupStack::Pop( data );
   170         CleanupStack::Pop( data );
   167         }
   171         }