idlehomescreen/xmluirendering/uiengine/src/xneffectmanager.cpp
branchRCL_3
changeset 84 20d75ec6647e
parent 83 5456b4e8b3a8
parent 65 bffb1247ad6e
child 89 9f918e984081
equal deleted inserted replaced
83:5456b4e8b3a8 84:20d75ec6647e
    71 void CXnEffectManager::ConstructL()
    71 void CXnEffectManager::ConstructL()
    72     {
    72     {
    73     CTimer::ConstructL();
    73     CTimer::ConstructL();
    74     
    74     
    75     OrientationChanged();
    75     OrientationChanged();
    76     
    76 
       
    77 #ifndef NO_ALF_OBSERVER    
    77     iObserver = CAlfEffectObserver::NewL();
    78     iObserver = CAlfEffectObserver::NewL();
       
    79 #endif
    78     }
    80     }
    79 
    81 
    80 // -----------------------------------------------------------------------------
    82 // -----------------------------------------------------------------------------
    81 // CXnEffectManager::NewL
    83 // CXnEffectManager::NewL
    82 //
    84 //
   275 //
   277 //
   276 // -----------------------------------------------------------------------------
   278 // -----------------------------------------------------------------------------
   277 //
   279 //
   278 TBool CXnEffectManager::WaitActiveEffect( TInt aInterval )     
   280 TBool CXnEffectManager::WaitActiveEffect( TInt aInterval )     
   279     {
   281     {
       
   282     if (iObserver == NULL)
       
   283         {
       
   284         return ETrue;
       
   285         }
       
   286 
   280     TBool retval( EFalse );
   287     TBool retval( EFalse );
   281     
   288     	
   282     TInt loop( aInterval / KWaitInterval );
   289     TInt loop( aInterval / KWaitInterval );
   283     
   290     
   284     while ( loop >= 0 )
   291     while ( loop >= 0 )
   285         {               
   292         {               
   286         TInt count( iObserver->ActiveEffectsCount() );
   293         TInt count( iObserver->ActiveEffectsCount() );