diff -r f7f1ae431f74 -r ac76c975c9be uiacceltk/hitchcock/AlfDecoderServerClient/src/alfdecoderserverclient.cpp --- a/uiacceltk/hitchcock/AlfDecoderServerClient/src/alfdecoderserverclient.cpp Thu May 27 13:47:19 2010 +0300 +++ b/uiacceltk/hitchcock/AlfDecoderServerClient/src/alfdecoderserverclient.cpp Fri Jun 11 14:31:43 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); + } // ---------------------------------------------------------------------------