taskswitcher/contextengine/tsfswserver/engine/src/tsfswengine.cpp
branchRCL_3
changeset 35 3321d3e205b6
parent 34 5456b4e8b3a8
equal deleted inserted replaced
34:5456b4e8b3a8 35:3321d3e205b6
   362 // --------------------------------------------------------------------------
   362 // --------------------------------------------------------------------------
   363 //
   363 //
   364 void CTsFswEngine::HiddenAppListUpdated()
   364 void CTsFswEngine::HiddenAppListUpdated()
   365     {
   365     {
   366     UpdateTaskList();
   366     UpdateTaskList();
       
   367     TRAP_IGNORE( iDataList->RemoveHiddenAppsScrenshotsL(); )
   367     }
   368     }
   368 
   369 
   369 // --------------------------------------------------------------------------
   370 // --------------------------------------------------------------------------
   370 // CTsFswEngine::CopyBitmapL
   371 // CTsFswEngine::CopyBitmapL
   371 // --------------------------------------------------------------------------
   372 // --------------------------------------------------------------------------
   487     if ( wgId == KErrNotFound )
   488     if ( wgId == KErrNotFound )
   488         {
   489         {
   489         wgId = aWgId;
   490         wgId = aWgId;
   490         }
   491         }
   491     TInt err = iDataList->AppUidForWgId( wgId, appUid );
   492     TInt err = iDataList->AppUidForWgId( wgId, appUid );
   492     if ( err || appUid == KTsCameraUid )
   493     TBool hidden = EFalse;
   493         {
   494     TRAP_IGNORE( 
   494         // Dont't assign screenshot to camera app
   495     hidden = iDataList->HiddenApps()->IsHiddenL( appUid, iWsSession, aWgId) );
   495         TSLOG0( TSLOG_LOCAL, "Screenshot for camera - ignore" );
   496     if ( err || 
       
   497          KTsCameraUid == appUid ||
       
   498          hidden )
       
   499         {
       
   500         // Dont't assign screenshot to camera app or hidden app
       
   501         TSLOG0( TSLOG_LOCAL, "Screenshot for camera or hidden app - ignore" );
   496         iPreviewProvider->AckPreview(aFbsHandle);
   502         iPreviewProvider->AckPreview(aFbsHandle);
   497         TSLOG_OUT();
   503         TSLOG_OUT();
   498         return;
   504         return;
   499         }
   505         }
   500     
   506     
   527 // --------------------------------------------------------------------------
   533 // --------------------------------------------------------------------------
   528 // CTsFswEngine::HandleFswPpApplicationBitmapRotation
   534 // CTsFswEngine::HandleFswPpApplicationBitmapRotation
   529 // Callback from CTsFastSwapPreviewProvider
   535 // Callback from CTsFastSwapPreviewProvider
   530 // --------------------------------------------------------------------------
   536 // --------------------------------------------------------------------------
   531 //
   537 //
   532 void CTsFswEngine::HandleFswPpApplicationBitmapRotation( TInt aWgId, TBool aClockwise )
   538 void CTsFswEngine::HandleFswPpApplicationBitmapRotation( TInt aWgId,
       
   539         TInt aFbsHandle, TBool aClockwise )
   533     {
   540     {
   534     TSLOG_CONTEXT( HandleFswPpApplicationBitmapRotation, TSLOG_LOCAL );
   541     TSLOG_CONTEXT( HandleFswPpApplicationBitmapRotation, TSLOG_LOCAL );
   535     TSLOG1_IN( "aWgId = %d", aWgId );
   542     TSLOG1_IN( "aWgId = %d", aWgId );
       
   543     
       
   544     HandleFswPpApplicationChange( aWgId, aFbsHandle );
   536     
   545     
   537     CFbsBitmap** bmp = iDataList->FindScreenshot(aWgId);
   546     CFbsBitmap** bmp = iDataList->FindScreenshot(aWgId);
   538             
   547             
   539     if ( bmp )
   548     if ( bmp )
   540         {
   549         {