diff -r f93c875b566e -r 3a60ebea00d0 uiacceltk/hitchcock/AlfDecoderServerClient/src/alfdecoderserverclient.cpp --- a/uiacceltk/hitchcock/AlfDecoderServerClient/src/alfdecoderserverclient.cpp Tue May 25 13:39:57 2010 +0300 +++ b/uiacceltk/hitchcock/AlfDecoderServerClient/src/alfdecoderserverclient.cpp Wed Jun 09 10:41:25 2010 +0300 @@ -156,12 +156,14 @@ SendReceive(aOp, aIPCArgs, aStatus ); } -TInt RAlfBridgerClient::GetListOfWindowGroups(RArray* aWindowGroups, TBool aListAll) +TInt RAlfBridgerClient::GetListOfWindowGroups(RArray* aWindowGroups, TInt aType) { TInt err = KErrNone; TInt array[10]; TPtr8 ptr((TUint8*)array,0,40); - err = SendReceive(EAlfGetListOfWGsHavingInactiveSurfaces, TIpcArgs(&ptr, aListAll)); + + err = SendReceive(EAlfGetListOfWGsHavingInactiveSurfaces, TIpcArgs(&ptr, aType)); + if (!err) { for(TInt i = 0; i < 10; i++) @@ -181,14 +183,18 @@ EXPORT_C TInt RAlfBridgerClient::GetListOfInactiveWindowGroupsWSurfaces(RArray* aWindowGroups) { - return GetListOfWindowGroups(aWindowGroups, EFalse); + return GetListOfWindowGroups(aWindowGroups, EAlfInactiveWgs); } EXPORT_C TInt RAlfBridgerClient::GetListOfWindowGroupsWSurfaces(RArray* aWindowGroups) { - return GetListOfWindowGroups(aWindowGroups, ETrue); + return GetListOfWindowGroups(aWindowGroups, EAlfAllWgsWithSurface); } +EXPORT_C void RAlfBridgerClient::GetOptionalGraphicsMemUsers(RArray* aOptionalCandidates) + { + GetListOfWindowGroups(aOptionalCandidates, EAlfVolunteersForCommonGood); + } // ---------------------------------------------------------------------------