emailuis/emailui/src/FreestyleEmailUiViewBase.cpp
branchRCL_3
changeset 16 b5fbb9b25d57
parent 14 b13141f05c3d
child 17 67369d1b217f
equal deleted inserted replaced
14:b13141f05c3d 16:b5fbb9b25d57
   275         iAppUi.SetSwitchingToBackground( EFalse );
   275         iAppUi.SetSwitchingToBackground( EFalse );
   276         }
   276         }
   277     }
   277     }
   278 
   278 
   279 // ---------------------------------------------------------------------------
   279 // ---------------------------------------------------------------------------
       
   280 // virtual function to hide or show CAlfVisuals ( used for activation or deactivation )
       
   281 //
       
   282 void CFsEmailUiViewBase::FadeOut(TBool aDirectionOut )
       
   283 	{
       
   284 	FUNC_LOG;
       
   285     // should be overriden ( if needed ) to use polymorphism 
       
   286 	// to hide or show CAlfVisuals used in views
       
   287 	}
       
   288 
       
   289 
       
   290 // ---------------------------------------------------------------------------
   280 // Check if transition effects are enabled and run the effect if needed.
   291 // Check if transition effects are enabled and run the effect if needed.
       
   292 // if not enabled it calls FadeOut virtual methods only 
   281 //
   293 //
   282 void CFsEmailUiViewBase::DoTransition( TBool aDirectionOut )
   294 void CFsEmailUiViewBase::DoTransition( TBool aDirectionOut )
   283     {
   295     {
   284     FUNC_LOG;
   296     FUNC_LOG;
   285     if ( iAppUi.LayoutHandler() && iAppUi.LayoutHandler()->ViewFadeEffectActive() )
   297     if ( iAppUi.LayoutHandler() && iAppUi.LayoutHandler()->ViewFadeEffectActive() )
   286         {
   298         {
   287         DoTransitionEffect( aDirectionOut );
   299         DoTransitionEffect( aDirectionOut );
   288         }
   300         }
       
   301     else
       
   302         {
       
   303     	// FadeOut method should be overridden and use by polymorphism only when needed 
       
   304     	FadeOut( aDirectionOut ); // used for hide/show visuals without transition time
       
   305     	}
   289     }
   306     }
   290 
   307 
   291 // ---------------------------------------------------------------------------
   308 // ---------------------------------------------------------------------------
   292 // Inheriting Alfred views can override these functions, if they need to do
   309 // Inheriting Alfred views can override these functions, if they need to do
   293 // some special tricks for transition effects
   310 // some special tricks for transition effects