uiacceltk/hitchcock/goommonitor/src/goomactionlist.cpp
branchRCL_3
changeset 6 10534483575f
parent 5 433cbbb6a04b
child 7 88b23e2e82e1
equal deleted inserted replaced
5:433cbbb6a04b 6:10534483575f
   217 //    iActionRefs.Reset();
   217 //    iActionRefs.Reset();
   218 //    iCurrentActionIndex = 0;
   218 //    iCurrentActionIndex = 0;
   219     
   219     
   220     aWindowGroupList.RefreshL();
   220     aWindowGroupList.RefreshL();
   221     
   221     
       
   222     for (TInt i = 0; aWindowGroupList.LowOnMemWgs(i) != KErrNotFound ; i++ )
       
   223         {
       
   224         if ( iLowOnMemWgs.Find(aWindowGroupList.LowOnMemWgs(i)) == KErrNotFound)
       
   225             {
       
   226             iLowOnMemWgs.Append(aWindowGroupList.LowOnMemWgs(i));    
       
   227             }
       
   228         }
       
   229         
   222     iRunningKillAppActions = ETrue;
   230     iRunningKillAppActions = ETrue;
   223     
   231     
   224     if (aWindowGroupList.Count())
   232     if (aWindowGroupList.Count())
   225             {
   233             {
   226             // Go through each item in the wglist, create an app close action for this application
   234             // Go through each item in the wglist, create an app close action for this application
   431                 || (iActionRefs[actionRefIndex].Type() == TActionRef::ESystemPlugin))
   439                 || (iActionRefs[actionRefIndex].Type() == TActionRef::ESystemPlugin))
   432             {
   440             {
   433             iActionRefs[actionRefIndex].RunPlugin().MemoryGood();
   441             iActionRefs[actionRefIndex].RunPlugin().MemoryGood();
   434             }
   442             }
   435         }
   443         }
       
   444     // notify window groups which were triggered to low mem that 
       
   445     TWsEvent event;
       
   446     event.SetType(KGoomMemoryGoodEvent); // naive
       
   447 
       
   448     for (TInt i = iLowOnMemWgs.Count()-1; i>=0; i--)
       
   449         {
       
   450 #ifdef SYMBIAN_GRAPHICS_WSERV_QT_EFFECTS
       
   451         iWs.SendEventToWindowGroup(iLowOnMemWgs[i], event);
       
   452 #endif // #ifdef SYMBIAN_GRAPHICS_WSERV_QT_EFFECTS
       
   453         iLowOnMemWgs.Remove(i);
       
   454 		}    
   436     }
   455     }
   437 
   456 
   438 TBool CGOomActionList::FreeMemoryAboveTarget(TInt& aFreeMemory)
   457 TBool CGOomActionList::FreeMemoryAboveTarget(TInt& aFreeMemory)
   439     {
   458     {
   440     FUNC_LOG;
   459     FUNC_LOG;