uifw/AvKon/src/AknIndicatorContainer.cpp
branchRCL_3
changeset 38 c52421ed5f07
parent 25 941195f2d488
child 55 aecbbf00d063
equal deleted inserted replaced
29:a8834a2e9a96 38:c52421ed5f07
   305     if ( !iIndicators )
   305     if ( !iIndicators )
   306         {
   306         {
   307         iIndicators =
   307         iIndicators =
   308             new (ELeave) CAknIndicatorQueue( KAknIndicatorQueueGranularity );
   308             new (ELeave) CAknIndicatorQueue( KAknIndicatorQueueGranularity );
   309         }
   309         }
   310 
       
   311 
       
   312     iTicker = CPeriodic::NewL( CActive::EPriorityLow );
       
   313     }
   310     }
   314 
   311 
   315 
   312 
   316 // ---------------------------------------------------------------------------
   313 // ---------------------------------------------------------------------------
   317 // CAknIndicatorContainer::ConstructFromResourceL
   314 // CAknIndicatorContainer::ConstructFromResourceL
  4286         }
  4283         }
  4287     // if not foreground, cancel the timer
  4284     // if not foreground, cancel the timer
  4288     if ( !iExtension->iIsForeground ||
  4285     if ( !iExtension->iIsForeground ||
  4289             R_AVKON_STATUS_PANE_LAYOUT_EMPTY == curId )
  4286             R_AVKON_STATUS_PANE_LAYOUT_EMPTY == curId )
  4290         {
  4287         {
  4291         if ( iTicker->IsActive() )
  4288         if ( iTicker )
  4292             {
  4289             {
  4293             iTicker->Cancel();
  4290             iTicker->Cancel();
  4294             }
  4291             delete iTicker;
       
  4292             iTicker = NULL;
       
  4293             }
       
  4294 
  4295         return;
  4295         return;
  4296         }
  4296         }
  4297 
  4297 
  4298     if ( !iTicker->IsActive() && iAnimatedIndicatorsShown > 0 )
  4298     if ( iAnimatedIndicatorsShown > 0 )
  4299         {
  4299         {
  4300         iTicker->Start( KAknIndicatorAnimationShortDelay,
  4300         if ( !iTicker )
  4301                         KAknIndicatorAnimationInterval,
  4301             {
  4302                         TCallBack( TickerCallback, this ) );
  4302             TRAP_IGNORE( iTicker = CPeriodic::NewL( CActive::EPriorityLow ) );
  4303         }
  4303             }
  4304     else if ( iTicker->IsActive() && iAnimatedIndicatorsShown == 0 )
  4304 
       
  4305         if ( iTicker && !iTicker->IsActive() )
       
  4306             {
       
  4307             iTicker->Start( KAknIndicatorAnimationShortDelay,
       
  4308                             KAknIndicatorAnimationInterval,
       
  4309                             TCallBack( TickerCallback, this ) );
       
  4310             }
       
  4311         }
       
  4312     else if ( iTicker && iAnimatedIndicatorsShown == 0 )
  4305         {
  4313         {
  4306         // Cancel animation timer if animated indicators
  4314         // Cancel animation timer if animated indicators
  4307         // are not visible anymore.
  4315         // are not visible anymore.
  4308         iTicker->Cancel();
  4316         iTicker->Cancel();
       
  4317         delete iTicker;
       
  4318         iTicker = NULL;
  4309         iSynchronizingValue = 0;
  4319         iSynchronizingValue = 0;
  4310         }
  4320         }
  4311     }
  4321     }
  4312 
  4322 
  4313 //  End of File
  4323 //  End of File