uiacceltk/hitchcock/ServerCore/Src/alfappsrvsession.cpp
branchRCL_3
changeset 18 1801340c26a2
parent 17 c9d868f1e20c
equal deleted inserted replaced
17:c9d868f1e20c 18:1801340c26a2
   294     for (TInt index = 0; index < iAnimatedTextures.Count(); index++)
   294     for (TInt index = 0; index < iAnimatedTextures.Count(); index++)
   295         {
   295         {
   296        	iAnimatedTextures.operator[](index)->EnableAnimation(ETrue);     
   296        	iAnimatedTextures.operator[](index)->EnableAnimation(ETrue);     
   297         }
   297         }
   298 
   298 
   299     if ( aDoTransitionEffect && AlfServer()->TransitionEffects()->IsEnabled() &&
       
   300          (display->DisplayType() != CHuiDisplay::EDisplayOffScreenBuffer))        
       
   301         {
       
   302        	ASSERT(AlfServer()->TransitionEffects() != NULL);
       
   303        	AlfServer()->TransitionEffects()->StartPhase( MAlfTransEffectPlugin::EFirstPhase, 
       
   304        	    aDoTransitionEffect, *iEffectEnv );            
       
   305        	
       
   306        	iControlGroupOrder.Reset();
       
   307         }
       
   308     else
       
   309         {
       
   310 //        ShowControlGroupsInOrderL(*display);
       
   311         }    
       
   312 
       
   313 	// This is needed for Huitk BitBlit() to succeed 
   299 	// This is needed for Huitk BitBlit() to succeed 
   314     
   300     
   315 #ifdef SYMBIAN_BUILD_GCE
   301 #ifdef SYMBIAN_BUILD_GCE
   316     SharedHuiEnv()->ContinueRefresh();
   302     SharedHuiEnv()->ContinueRefresh();
   317 #else
   303 #else
   356     if ( !display )
   342     if ( !display )
   357         {
   343         {
   358         return didTransition;
   344         return didTransition;
   359         }
   345         }
   360 
   346 
   361 /*        
       
   362 #ifdef HUI_FX
       
   363 */
       
   364     if (display->DisplayType() != CHuiDisplay::EDisplayOffScreenBuffer) 
   347     if (display->DisplayType() != CHuiDisplay::EDisplayOffScreenBuffer) 
   365     	{
   348     	{
   366     	// Disable all animated textures for the session
   349     	// Disable all animated textures for the session
   367     	for (TInt index = 0; index < iAnimatedTextures.Count(); index++)
   350     	for (TInt index = 0; index < iAnimatedTextures.Count(); index++)
   368         	{
   351         	{
   373 #endif
   356 #endif
   374       	// background must be drawn as long as the effect is displayed 
   357       	// background must be drawn as long as the effect is displayed 
   375        	// as the background will be visible if the effect does not cover full screen
   358        	// as the background will be visible if the effect does not cover full screen
   376        	// or is partially transparent.
   359        	// or is partially transparent.
   377     	}
   360     	}
   378 /*    	
       
   379 #else
       
   380     // Do not hide or set transparency if this is off-screen buffer         
       
   381     if (display->DisplayType() != CHuiDisplay::EDisplayOffScreenBuffer) 
       
   382     	{
       
   383     	// Disable all animated textures for the session
       
   384     	for (TInt index = 0; index < iAnimatedTextures.Count(); index++)
       
   385         	{
       
   386       		iAnimatedTextures.operator[](index)->EnableAnimation(EFalse); 
       
   387         	}
       
   388 
       
   389      	if ( aDoTransitionEffect && AlfServer()->TransitionEffects()->IsEnabled() )
       
   390         	{
       
   391         	StoreControlGroupOrderL(*display, EFalse ); // do not hide  
       
   392         	ASSERT(AlfServer()->TransitionEffects() != NULL);
       
   393         	AlfServer()->TransitionEffects()->StartPhase( MAlfTransEffectPlugin::EFirstPhase, 
       
   394             	aDoTransitionEffect, *iEffectEnv );            
       
   395         	didTransition = ETrue;
       
   396         	}
       
   397     	// Hide control groups 
       
   398     	else 
       
   399         	{
       
   400         	StoreControlGroupOrderL(*display, ETrue ); // hide as well     
       
   401     		}
       
   402     		
       
   403 #ifdef SYMBIAN_BUILD_GCE
       
   404         // When alf application is not focused we dont draw background because it is
       
   405         // not visible as the alf application is not visible either (its controlgroups
       
   406         // were just hidden in the code above).
       
   407    	    display->SetClearBackgroundL(CHuiDisplay::EClearNone);
       
   408 #endif
       
   409     	}
       
   410 #endif    		
       
   411 */
       
   412     
   361     
   413     return didTransition;
   362     return didTransition;
   414     }
   363     }
   415 
   364 
   416 void CAlfAppSrvSession::StoreControlGroupOrderL(CHuiDisplay& aDisplay, TBool aAlsoHide )
   365 void CAlfAppSrvSession::StoreControlGroupOrderL(CHuiDisplay& aDisplay, TBool aAlsoHide )
  2740     if ( pos != KErrNotFound )
  2689     if ( pos != KErrNotFound )
  2741         {
  2690         {
  2742         iTextureInfo.Remove( pos );
  2691         iTextureInfo.Remove( pos );
  2743         }
  2692         }
  2744 
  2693 
  2745     if (!iTextureInfo.Count())
  2694     //Photos is never killed if it is excluded here. hence commenting
       
  2695 	/*
       
  2696 	if (!iTextureInfo.Count())
  2746         {
  2697         {
  2747         if (AlfAppUi()->BridgerClient())
  2698         if (AlfAppUi()->BridgerClient())
  2748             {
  2699             {
  2749             AlfAppUi()->BridgerClient()->SendBlind(EAlfExcludeFromGoomTargets, TIpcArgs(SecureId(),ClientWindowGroup()));
  2700             AlfAppUi()->BridgerClient()->SendBlind(EAlfExcludeFromGoomTargets, TIpcArgs(SecureId(),ClientWindowGroup()));
  2750             }
  2701             }
  2751         }
  2702         }
       
  2703 	*/
  2752     }
  2704     }
  2753 
  2705 
  2754 TInt CAlfAppSrvSession::GetTextureSize( 
  2706 TInt CAlfAppSrvSession::GetTextureSize( 
  2755         TInt aTextureId, 
  2707         TInt aTextureId, 
  2756         TSize& aTextureSize,
  2708         TSize& aTextureSize,