taskswitcher/contextengine/tsfswserver/engine/src/tsfswdatalist.cpp
branchRCL_3
changeset 102 ba63c83f4716
parent 88 3321d3e205b6
equal deleted inserted replaced
93:b01126ce0bec 102:ba63c83f4716
   834         }
   834         }
   835     return changed;
   835     return changed;
   836     }
   836     }
   837 
   837 
   838 // --------------------------------------------------------------------------
   838 // --------------------------------------------------------------------------
   839 // CTsFswDataList::RemoveScreenshotFromParent
   839 // CTsFswDataList::CheckForWgIdUsage
   840 // --------------------------------------------------------------------------
   840 // --------------------------------------------------------------------------
   841 //
   841 //
   842 void CTsFswDataList::RemoveHiddenAppsScrenshotsL()
   842 TBool CTsFswDataList::CheckForWgIdUsage( TInt aWgId )
   843     {
   843     {
   844     RArray<TInt> hiddenWgIds;
   844     // check the dirty flag and refresh if needed
   845     THashMapIter<TInt, CFbsBitmap*> iter( iScreenshots );
   845     if ( iTaskListDirty )
   846     while ( const TInt* wgIdkey = iter.NextKey() )
   846         {
   847         {
   847         TRAP_IGNORE ( CollectTasksL(); );
   848         TInt wgId = *wgIdkey;
   848         // clear dirty flag
   849         TBool hidden = HiddenApps()->IsHiddenL( AppUidForWgIdL( wgId),
   849         SetDirty(EFalse);
   850                 iWsSession, wgId );
   850         }
   851         if( hidden )
   851     TBool used( EFalse );
   852             {
   852     TInt count = iData.Count();
   853             hiddenWgIds.Append( wgId );
   853     for (TInt i = 0; i < count; i++ )
   854             }
   854         {
   855         }
   855         if( iData[i]->WgId() == aWgId )
   856     for ( TInt i = 0; i < hiddenWgIds.Count(); i++)
   856             {
   857         {
   857             used =  ETrue;
   858         RemoveScreenshot( hiddenWgIds[i] );
   858             break;
   859         }
   859             }
   860     hiddenWgIds.Reset();
   860         }
   861     }
   861     return used;
   862 
   862     }
   863 // end of file
   863 // end of file