uiacceltk/hitchcock/ServerCore/Src/alfvisualhandlers.cpp
branchRCL_3
changeset 12 f93c875b566e
parent 9 3ac8bf5c5014
child 13 3a60ebea00d0
equal deleted inserted replaced
10:7c5dd702d6d3 12:f93c875b566e
    44 // Remove when EAlfVisualEnableTransformation handing is fixed
    44 // Remove when EAlfVisualEnableTransformation handing is fixed
    45 #include "alfappsrvsession.h"
    45 #include "alfappsrvsession.h"
    46 #include "alfsrvsubsessionbase.h"
    46 #include "alfsrvsubsessionbase.h"
    47 #include "alfsrvtransformationsubsession.h"
    47 #include "alfsrvtransformationsubsession.h"
    48 
    48 
       
    49 #define AMT_CONTROL() static_cast<CAlfModuleTestDataControl*>(Dll::Tls())
       
    50 #include "alfmoduletest.h" 
       
    51 
    49 #ifdef RD_ALF_IN_PLATFORM
    52 #ifdef RD_ALF_IN_PLATFORM
    50 #include <aknlayout2hierarchy.h>
    53 #include <aknlayout2hierarchy.h>
    51 #endif
    54 #endif
    52 
    55 
    53 #include <avkon.hrh> //     ELayoutAlignNone, etc
    56 #include <avkon.hrh> //     ELayoutAlignNone, etc
   766             // TODO: effect merging
   769             // TODO: effect merging
   767             TAlfVisualEffectParams* params = (TAlfVisualEffectParams*)aInputBuffer.Ptr();
   770             TAlfVisualEffectParams* params = (TAlfVisualEffectParams*)aInputBuffer.Ptr();
   768             CHuiFxEngine* engine = iVisual->Env().EffectsEngine();
   771             CHuiFxEngine* engine = iVisual->Env().EffectsEngine();
   769             if (engine)
   772             if (engine)
   770                 {
   773                 {
       
   774 #ifdef USE_MODULE_TEST_HOOKS_FOR_ALF
       
   775                 TTime time;
       
   776                 time.UniversalTime();
       
   777                 AMT_ADD_TIME(params->iHandle, time.Int64(), ETrue);
       
   778 #endif  
   771                 CHuiFxEffect* effect = NULL;
   779                 CHuiFxEffect* effect = NULL;
   772                 engine->LoadEffectL( params->iFileName, effect, iVisual->Effectable(), NULL , NULL, params->iHandle, KHuiFxDelayRunUntilFirstFrameHasBeenDrawn );
   780                 engine->LoadEffectL( params->iFileName, effect, iVisual->Effectable(), NULL , NULL, params->iHandle, KHuiFxDelayRunUntilFirstFrameHasBeenDrawn );
   773                 // The effect will be automatically set to the visual if parsing succeeds
   781                 // The effect will be automatically set to the visual if parsing succeeds
   774                 }
   782                 }
   775             break;
   783             break;
   779             TAlfVisualEffectParams* params = (TAlfVisualEffectParams*)aInputBuffer.Ptr();
   787             TAlfVisualEffectParams* params = (TAlfVisualEffectParams*)aInputBuffer.Ptr();
   780             TInt groupHandle = params->iGroupHandle;
   788             TInt groupHandle = params->iGroupHandle;
   781             CHuiFxEngine* engine = iVisual->Env().EffectsEngine();
   789             CHuiFxEngine* engine = iVisual->Env().EffectsEngine();
   782             if (engine)
   790             if (engine)
   783                 {
   791                 {
       
   792 #ifdef USE_MODULE_TEST_HOOKS_FOR_ALF
       
   793                 TTime time;
       
   794                 time.UniversalTime();
       
   795                 AMT_ADD_TIME(params->iHandle, time.Int64(), ETrue);
       
   796 #endif  
   784                 CHuiFxEffect* effect = NULL;
   797                 CHuiFxEffect* effect = NULL;
   785                 // this will add the group, if it does not exist already
   798                 // this will add the group, if it does not exist already
   786                 // Begin and End group events are supposed to come through GfxTransEffect API.
   799                 // Begin and End group events are supposed to come through GfxTransEffect API.
   787                 engine->BeginGroupEffect(groupHandle);
   800                 engine->BeginGroupEffect(groupHandle);
   788                 engine->LoadGroupEffectL( params->iFileName, effect, iVisual->Effectable(),groupHandle, NULL, NULL, params->iHandle, KHuiFxDelayRunUntilFirstFrameHasBeenDrawn );
   801                 engine->LoadGroupEffectL( params->iFileName, effect, iVisual->Effectable(),groupHandle, NULL, NULL, params->iHandle, KHuiFxDelayRunUntilFirstFrameHasBeenDrawn );