idlehomescreen/xmluirendering/uiengine/src/xnrootdata.cpp
branchRCL_3
changeset 28 d721605b30d0
parent 23 7be2816dbabd
child 31 89165693e770
equal deleted inserted replaced
26:1b758917cafc 28:d721605b30d0
   250 // 
   250 // 
   251 // -----------------------------------------------------------------------------
   251 // -----------------------------------------------------------------------------
   252 //
   252 //
   253 void CXnRootData::LoadRemainingViews()
   253 void CXnRootData::LoadRemainingViews()
   254     {
   254     {
   255     if ( iFlags.IsClear( EIsDispose ) && !AllViewsLoaded() )
   255     if ( iFlags.IsClear( EIsDispose ) )
   256         {
   256         {
   257         iLoadForward = ETrue;
   257         if ( !AllViewsLoaded() )
   258         
   258             {
   259         iLoadTimer->Cancel();
   259             iLoadForward = ETrue;
   260         
   260             
   261         iLoadTimer->Start( TTimeIntervalMicroSeconds32( KScheduleInterval ),
   261             iLoadTimer->Cancel();
   262                            TTimeIntervalMicroSeconds32( KScheduleInterval ),
   262             
   263                            TCallBack( RunLoadL, this ) );       
   263             iLoadTimer->Start( TTimeIntervalMicroSeconds32( KScheduleInterval ),
       
   264                                TTimeIntervalMicroSeconds32( KScheduleInterval ),
       
   265                                TCallBack( RunLoadL, this ) );
       
   266             }
       
   267         else
       
   268             {
       
   269             iManager.NotifyAllViewsLoadedL();
       
   270             }
   264         }
   271         }
   265     }
   272     }
   266 
   273 
   267 // -----------------------------------------------------------------------------
   274 // -----------------------------------------------------------------------------
   268 // CXnRootData::CancelLoadRemainingViews()
   275 // CXnRootData::CancelLoadRemainingViews()
   544                 }
   551                 }
   545             }
   552             }
   546         
   553         
   547         if ( self->AllViewsLoaded() )
   554         if ( self->AllViewsLoaded() )
   548             {            
   555             {            
   549             self->iLoadTimer->Cancel();            
   556             self->iLoadTimer->Cancel();
       
   557             self->iManager.NotifyAllViewsLoadedL();
   550             }                    
   558             }                    
   551         }
   559         }
   552         
   560         
   553     __PRINTS( "*** CXnRootData::RunLoadL - done" );
   561     __PRINTS( "*** CXnRootData::RunLoadL - done" );
   554     
   562