uiacceltk/hitchcock/plugins/alftranseffect/alftranseffectplugin/src/alfgfxeffects.cpp
branchRCL_3
changeset 15 cd0ae4656946
parent 12 f93c875b566e
child 18 1801340c26a2
equal deleted inserted replaced
13:3a60ebea00d0 15:cd0ae4656946
   221 		        break;
   221 		        break;
   222 		        }
   222 		        }
   223 		    else
   223 		    else
   224 		        {
   224 		        {
   225 	            action = inStream.ReadUint32L();
   225 	            action = inStream.ReadUint32L();
   226 #ifdef _DEBUG    
   226 #ifdef _ALF_FXLOGGING    
   227     PrintRequestInfo( op, action);
   227     PrintRequestInfo( op, action);
   228 #endif    
   228 #endif    
   229 	            TRect effectRect( inStream.ReadInt32L(),
   229 	            TRect effectRect( inStream.ReadInt32L(),
   230                     inStream.ReadInt32L(), inStream.ReadInt32L(), inStream.ReadInt32L() );
   230                     inStream.ReadInt32L(), inStream.ReadInt32L(), inStream.ReadInt32L() );
   231                 TInt type = inStream.ReadInt32L();
   231                 TInt type = inStream.ReadInt32L();
   245                 iEngine->BeginFullscreen( action, effectRect, type,
   245                 iEngine->BeginFullscreen( action, effectRect, type,
   246                     uid1, uid2, data, sid1, wgid1, sid2, wgid2 );
   246                     uid1, uid2, data, sid1, wgid1, sid2, wgid2 );
   247 		        }
   247 		        }
   248             break;
   248             break;
   249         case MAlfGfxEffectPlugin::EEndFullscreen:
   249         case MAlfGfxEffectPlugin::EEndFullscreen:
   250 #ifdef _DEBUG    
   250 #ifdef _ALF_FXLOGGING    
   251     PrintRequestInfo( op, action);
   251     PrintRequestInfo( op, action);
   252 #endif    
   252 #endif    
   253             iEngine->EndFullscreen(EFalse); // not timeout, but official endfullscreen
   253             iEngine->EndFullscreen(EFalse); // not timeout, but official endfullscreen
   254             break;
   254             break;
   255         case MAlfGfxEffectPlugin::EAbortFullscreen:
   255         case MAlfGfxEffectPlugin::EAbortFullscreen:
   256 #ifdef _DEBUG    
   256 #ifdef _ALF_FXLOGGING
   257     PrintRequestInfo( op, action);
   257     PrintRequestInfo( op, action);
   258 #endif    
   258 #endif    
   259 
   259 
   260             iEngine->AbortFullscreen();
   260             iEngine->AbortFullscreen();
   261             break;
   261             break;
   270                 {
   270                 {
   271                 // We may not need all of this, but it is here now just to make sure
   271                 // We may not need all of this, but it is here now just to make sure
   272                 // we have enough information.
   272                 // we have enough information.
   273                 {
   273                 {
   274                 action = inStream.ReadUint32L();
   274                 action = inStream.ReadUint32L();
   275 #ifdef _DEBUG    
   275 #ifdef _ALF_FXLOGGING    
   276     PrintRequestInfo( op, action);
   276     PrintRequestInfo( op, action);
   277 #endif    
   277 #endif    
   278                 
   278                 
   279                 uid1 = TUid::Uid( inStream.ReadInt32L() );
   279                 uid1 = TUid::Uid( inStream.ReadInt32L() );
   280                 // hack to keep disapear viewswitch transitions popping on top of everything
   280                 // hack to keep disapear viewswitch transitions popping on top of everything
   296         // These are the effect registrations    
   296         // These are the effect registrations    
   297         case MAlfGfxEffectPlugin::ETfxServerOpAddFullscreenKML:
   297         case MAlfGfxEffectPlugin::ETfxServerOpAddFullscreenKML:
   298         case MAlfGfxEffectPlugin::ETfxServerOpAddFullscreenKMLEx:
   298         case MAlfGfxEffectPlugin::ETfxServerOpAddFullscreenKMLEx:
   299             {
   299             {
   300             action = inStream.ReadUint32L();
   300             action = inStream.ReadUint32L();
   301 #ifdef _DEBUG    
   301 #ifdef _ALF_FXLOGGING    
   302     PrintRequestInfo( op, action);
   302     PrintRequestInfo( op, action);
   303 #endif    
   303 #endif    
   304 
   304 
   305             uid1 = TUid::Uid( inStream.ReadInt32L() );
   305             uid1 = TUid::Uid( inStream.ReadInt32L() );
   306 	        inStream.ReadL( ptr, 8 );
   306 	        inStream.ReadL( ptr, 8 );
   871 		}
   871 		}
   872 */		
   872 */		
   873 	__ALFFXLOGSTRING("CAlfGfxEffects::VerifyResourceLocation - return KErrNotSupported <<");
   873 	__ALFFXLOGSTRING("CAlfGfxEffects::VerifyResourceLocation - return KErrNotSupported <<");
   874 	return KErrNotSupported;
   874 	return KErrNotSupported;
   875 	}
   875 	}
   876 #ifdef _DEBUG
   876 
       
   877 #ifdef _ALF_FXLOGGING
   877 void CAlfGfxEffects::PrintRequestInfo(TInt aOperation, TInt aAction )
   878 void CAlfGfxEffects::PrintRequestInfo(TInt aOperation, TInt aAction )
   878     {
   879     {
   879     HBufC16* buffer = HBufC16::NewL(256);
   880     HBufC16* buffer = HBufC16::NewL(256);
   880     TPtr debugText = buffer->Des();
   881     TPtr debugText = buffer->Des();
   881     debugText.Format( _L("Effect request: Operation "));
   882     debugText.Format( _L("Effect request: Operation "));