equal
deleted
inserted
replaced
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() ); |