uiacceltk/hitchcock/plugins/alftranseffect/alftranseffectplugin/src/alfgfxeffects.cpp
branchRCL_3
changeset 6 10534483575f
parent 0 15bf7259bb7c
child 7 88b23e2e82e1
equal deleted inserted replaced
5:433cbbb6a04b 6:10534483575f
   150     
   150     
   151     TInt err = KErrNone;
   151     TInt err = KErrNone;
   152     TInt op = inStream.ReadInt32L();
   152     TInt op = inStream.ReadInt32L();
   153     TUint action = 0;
   153     TUint action = 0;
   154     TUid uid1( KNullUid );
   154     TUid uid1( KNullUid );
       
   155     TSecureId sid1( KNullUid );
       
   156     TInt wgid1= 0;
   155     TUid uid2( KNullUid );
   157     TUid uid2( KNullUid );
       
   158     TSecureId sid2( KNullUid );
       
   159     TInt wgid2= 0;
   156     HBufC* resourceDir = NULL;
   160     HBufC* resourceDir = NULL;
   157     HBufC* fileName = NULL;
   161     HBufC* fileName = NULL;
   158     HBufC* backgroundFileName = NULL;
   162     HBufC* backgroundFileName = NULL;
   159     TInt wantedTime = 0;
   163     TInt wantedTime = 0;
   160     TInt minTime = 0;
   164     TInt minTime = 0;
   172     TBool fillOutStream = ETrue; // most functions put the error into outbuffer
   176     TBool fillOutStream = ETrue; // most functions put the error into outbuffer
   173 
   177 
   174     // The engine reservers the windows if needed, it first runs all the checks
   178     // The engine reservers the windows if needed, it first runs all the checks
   175     // to see if the effects are allowed (effects are not done for some combinations)
   179     // to see if the effects are allowed (effects are not done for some combinations)
   176     
   180     
   177     __ALFFXLOGSTRING2("CAlfGfxEffects::HandleMessageL - Operation: %d, Action: %d", op, action );
   181     __ALFFXLOGSTRING4("CAlfGfxEffects::HandleMessageL - Operation: %d, Action: %d, Cenrep error: %d, Effect value: %d", op, action, error, value & AknTransEffect::EFullScreenTransitionsOff);
   178     __ALFFXLOGSTRING2("CAlfGfxEffects::HandleMessageL - Dir: %S, File: %S", &resourceDir, &fileName );
   182     __ALFFXLOGSTRING2("CAlfGfxEffects::HandleMessageL - Dir: %S, File: %S", &resourceDir, &fileName );
   179     switch ( op )
   183     switch ( op )
   180         {
   184         {
   181         // full screen transitions
   185         // full screen transitions
   182         case MAlfGfxEffectPlugin::EBeginFullscreen:
   186         case MAlfGfxEffectPlugin::EBeginFullscreen:
   200                 TInt type = inStream.ReadInt32L();
   204                 TInt type = inStream.ReadInt32L();
   201                 // Depending on type, the rest of the parameters have different meaning
   205                 // Depending on type, the rest of the parameters have different meaning
   202                 uid1 = TUid::Uid( inStream.ReadInt32L() );
   206                 uid1 = TUid::Uid( inStream.ReadInt32L() );
   203                 uid2 = TUid::Uid( inStream.ReadInt32L() );
   207                 uid2 = TUid::Uid( inStream.ReadInt32L() );
   204                 TInt data = inStream.ReadInt32L();
   208                 TInt data = inStream.ReadInt32L();
       
   209                 
       
   210                 if ( type == AknTransEffect::EParameterType )
       
   211                     {
       
   212                     sid1 = TSecureId( inStream.ReadInt32L() );
       
   213                     wgid1 = inStream.ReadInt32L();
       
   214                     sid2 = TSecureId( inStream.ReadInt32L() );
       
   215                     wgid2 = inStream.ReadInt32L();
       
   216                     }
       
   217                 
   205                 iEngine->BeginFullscreen( action, effectRect, type,
   218                 iEngine->BeginFullscreen( action, effectRect, type,
   206                     uid1, uid2, data );
   219                     uid1, uid2, data, sid1, wgid1, sid2, wgid2 );
   207 		        }
   220 		        }
   208             break;
   221             break;
   209         case MAlfGfxEffectPlugin::EEndFullscreen:
   222         case MAlfGfxEffectPlugin::EEndFullscreen:
   210 #ifdef _DEBUG    
   223 #ifdef _DEBUG    
   211     PrintRequestInfo( op, action);
   224     PrintRequestInfo( op, action);