uiacceltk/hitchcock/AlfDecoderServerClient/src/alfdecoderserverclient.cpp
branchRCL_3
changeset 13 3a60ebea00d0
parent 12 f93c875b566e
child 18 1801340c26a2
--- 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<TInt>* aWindowGroups, TBool aListAll)
+TInt RAlfBridgerClient::GetListOfWindowGroups(RArray<TInt>* 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<TInt>* aWindowGroups)
     {
-    return GetListOfWindowGroups(aWindowGroups, EFalse);
+    return GetListOfWindowGroups(aWindowGroups, EAlfInactiveWgs);
     }
 
 EXPORT_C TInt RAlfBridgerClient::GetListOfWindowGroupsWSurfaces(RArray<TInt>* aWindowGroups)
     {
-    return GetListOfWindowGroups(aWindowGroups, ETrue);
+    return GetListOfWindowGroups(aWindowGroups, EAlfAllWgsWithSurface);
     }
 
+EXPORT_C void RAlfBridgerClient::GetOptionalGraphicsMemUsers(RArray<TInt>* aOptionalCandidates)
+    {
+    GetListOfWindowGroups(aOptionalCandidates, EAlfVolunteersForCommonGood);
+    }    
 
 
 // ---------------------------------------------------------------------------