uiacceltk/hitchcock/plugins/alftranseffect/alftranseffectplugin/src/alfgfxeffects.cpp
branchRCL_3
changeset 12 f93c875b566e
parent 7 88b23e2e82e1
child 15 cd0ae4656946
equal deleted inserted replaced
10:7c5dd702d6d3 12:f93c875b566e
    46 #include "uiacceltk/HuiEnv.h"
    46 #include "uiacceltk/HuiEnv.h"
    47 #include "uiacceltk/HuiTransformation.h"
    47 #include "uiacceltk/HuiTransformation.h"
    48 
    48 
    49 #include "wsserverdrawercontroller.h"
    49 #include "wsserverdrawercontroller.h"
    50 
    50 
       
    51 #define AMT_CONTROL() static_cast<CAlfModuleTestDataControl*>(Dll::Tls())
       
    52 #include "alfmoduletest.h" 
       
    53 
    51 // Constants
    54 // Constants
    52 //const TInt KAlfDefaultFocusGainedEffectDuration = 500;
    55 //const TInt KAlfDefaultFocusGainedEffectDuration = 500;
    53 //const TInt KAlfDefaultFocusLostEffectDuration = 500;
    56 //const TInt KAlfDefaultFocusLostEffectDuration = 500;
    54 
    57 
    55 // ============================ MEMBER FUNCTIONS ===============================
    58 // ============================ MEMBER FUNCTIONS ===============================
   116     iSysDisable = CRepositoryHandler::NewL(EPriorityHigh + KTfxServerRepositoryHandler, 
   119     iSysDisable = CRepositoryHandler::NewL(EPriorityHigh + KTfxServerRepositoryHandler, 
   117 	                                     KCRUidThemes, 
   120 	                                     KCRUidThemes, 
   118 	                                     KThemesTransitionEffects);
   121 	                                     KThemesTransitionEffects);
   119     
   122     
   120     iSyncronizedGroupDefitionEndChecker = CEndCheck::NewL(*this);
   123     iSyncronizedGroupDefitionEndChecker = CEndCheck::NewL(*this);
       
   124     
       
   125 #ifdef USE_MODULE_TEST_HOOKS_FOR_ALF
       
   126     // Initiliaze global data in TLS and Open global module testing chunk and mutex
       
   127     User::LeaveIfError(Dll::SetTls(new(ELeave) CAlfModuleTestDataControl()));
       
   128     User::LeaveIfError(AMT_CONTROL()->OpenGlobalObjects());
       
   129 #endif
       
   130 
   121     __ALFFXLOGSTRING("CAlfGfxEffects::ConstructL <<");
   131     __ALFFXLOGSTRING("CAlfGfxEffects::ConstructL <<");
   122     }
   132     }
   123 
   133 
   124 
   134 
   125 // -----------------------------------------------------------------------------
   135 // -----------------------------------------------------------------------------
   189 		        // fullscreen effects are turned off
   199 		        // fullscreen effects are turned off
   190 		        // Should we return the error in aOutBuf?
   200 		        // Should we return the error in aOutBuf?
   191 		        // We should not get end full screen if the effect has not been even started
   201 		        // We should not get end full screen if the effect has not been even started
   192 		        // (could return KErrAbort in aOutBuf)
   202 		        // (could return KErrAbort in aOutBuf)
   193 		        err = KErrAbort;
   203 		        err = KErrAbort;
       
   204 #ifdef USE_MODULE_TEST_HOOKS_FOR_ALF
       
   205 		        action = inStream.ReadUint32L();
       
   206                 TRect effectRect( inStream.ReadInt32L(),
       
   207                     inStream.ReadInt32L(), inStream.ReadInt32L(), inStream.ReadInt32L() );
       
   208                 TInt type = inStream.ReadInt32L();
       
   209                 uid1 = TUid::Uid( inStream.ReadInt32L() );
       
   210                 uid2 = TUid::Uid( inStream.ReadInt32L() );
       
   211                 TInt data = inStream.ReadInt32L();
       
   212                 
       
   213                 if ( type == AknTransEffect::EParameterType )
       
   214                     {
       
   215                     sid1 = TSecureId( inStream.ReadInt32L() ); // secureid is the only thing interesting to us
       
   216                     }
       
   217                 TTime time;
       
   218                 time.UniversalTime();
       
   219                 AMT_ADD_TIME(sid1.iId, time.Int64(), EFalse);
       
   220 #endif
   194 		        break;
   221 		        break;
   195 		        }
   222 		        }
   196 		    else
   223 		    else
   197 		        {
   224 		        {
   198 	            action = inStream.ReadUint32L();
   225 	            action = inStream.ReadUint32L();
   221             break;
   248             break;
   222         case MAlfGfxEffectPlugin::EEndFullscreen:
   249         case MAlfGfxEffectPlugin::EEndFullscreen:
   223 #ifdef _DEBUG    
   250 #ifdef _DEBUG    
   224     PrintRequestInfo( op, action);
   251     PrintRequestInfo( op, action);
   225 #endif    
   252 #endif    
   226             iEngine->EndFullscreen();
   253             iEngine->EndFullscreen(EFalse); // not timeout, but official endfullscreen
   227             break;
   254             break;
   228         case MAlfGfxEffectPlugin::EAbortFullscreen:
   255         case MAlfGfxEffectPlugin::EAbortFullscreen:
   229 #ifdef _DEBUG    
   256 #ifdef _DEBUG    
   230     PrintRequestInfo( op, action);
   257     PrintRequestInfo( op, action);
   231 #endif    
   258 #endif