uiacceltk/hitchcock/AlfDecoderServerClient/src/alfcompositionclient.cpp
branchRCL_3
changeset 9 3ac8bf5c5014
parent 8 46927d61fef3
child 10 7c5dd702d6d3
equal deleted inserted replaced
8:46927d61fef3 9:3ac8bf5c5014
   293             {
   293             {
   294             break;
   294             break;
   295             }
   295             }
   296         case KAlfCompOpBindSourceToToken:
   296         case KAlfCompOpBindSourceToToken:
   297             {
   297             {
       
   298 #ifdef _ALF_LOGGING
   298             RDebug::Print(_L("ptr0: %d, Target %d, Flags %d, combinedtarget"), ptr[0], ptr[1], ptr[2]);
   299             RDebug::Print(_L("ptr0: %d, Target %d, Flags %d, combinedtarget"), ptr[0], ptr[1], ptr[2]);
       
   300 #endif // #ifdef _ALF_LOGGING
   299             if( ptr[1] != 0) // add binding information for new host to given target with permitted operations
   301             if( ptr[1] != 0) // add binding information for new host to given target with permitted operations
   300                 {
   302                 {
   301                 iHostBindingsHash.Insert(*ptr, ptr[1]);
   303                 iHostBindingsHash.Insert(*ptr, ptr[1]);
   302                 iHostPermittedOpsHash.Insert(*ptr, ptr[2]);
   304                 iHostPermittedOpsHash.Insert(*ptr, ptr[2]);
   303                 }
   305                 }
   477 // ---------------------------------------------------------------------------
   479 // ---------------------------------------------------------------------------
   478 //
   480 //
   479 void CAlfCompositionSource::ConstructL(TInt aWsHandle, TInt aGroupHandle, TInt aScreenNumber)
   481 void CAlfCompositionSource::ConstructL(TInt aWsHandle, TInt aGroupHandle, TInt aScreenNumber)
   480     {
   482     {
   481     iData = CAlfCompositionSourceData::NewL();
   483     iData = CAlfCompositionSourceData::NewL();
       
   484 #ifdef _ALF_LOGGING
   482     RDebug::Print(_L("CAlfCompositionClientBase::ConstructL - %d"), iData );
   485     RDebug::Print(_L("CAlfCompositionClientBase::ConstructL - %d"), iData );
       
   486 #endif // #ifdef _ALF_LOGGING
   483 
   487 
   484     User::LeaveIfError( SendEvent(KAlfCompositionSourceScreenNumber, &aScreenNumber, sizeof(TInt)));
   488     User::LeaveIfError( SendEvent(KAlfCompositionSourceScreenNumber, &aScreenNumber, sizeof(TInt)));
   485     
   489     
   486     TInt array[] = { 0, aWsHandle, aGroupHandle}; 
   490     TInt array[] = { 0, aWsHandle, aGroupHandle}; 
   487     TInt handle = SendEvent(KAlfCompOpCreateSource, array, sizeof(array));   
   491     TInt handle = SendEvent(KAlfCompOpCreateSource, array, sizeof(array));   
   696 // ---------------------------------------------------------------------------
   700 // ---------------------------------------------------------------------------
   697 //
   701 //
   698 void CAlfCompositionHost::ConstructL(TInt aToken, TInt aKey)
   702 void CAlfCompositionHost::ConstructL(TInt aToken, TInt aKey)
   699     {
   703     {
   700     iData = CAlfCompositionSourceData::NewL();
   704     iData = CAlfCompositionSourceData::NewL();
       
   705 #ifdef _ALF_LOGGING
   701     RDebug::Print(_L("CAlfCompositionClientBase::ConstructL - %d"), iData );
   706     RDebug::Print(_L("CAlfCompositionClientBase::ConstructL - %d"), iData );
       
   707 #endif // #ifdef _ALF_LOGGING
   702 
   708 
   703     TInt array[] = { 0, aToken, aKey }; 
   709     TInt array[] = { 0, aToken, aKey }; 
   704     TInt result  = SendEvent(KAlfCompOpBindSourceToToken, array, sizeof(array));   
   710     TInt result  = SendEvent(KAlfCompOpBindSourceToToken, array, sizeof(array));   
   705     User::LeaveIfError(result);
   711     User::LeaveIfError(result);
   706     SetHandleL(result);
   712     SetHandleL(result);