uiacceltk/hitchcock/AlfDecoderServerClient/src/alfdecoderserverclient.cpp
branchRCL_3
changeset 13 3a60ebea00d0
parent 12 f93c875b566e
child 18 1801340c26a2
equal deleted inserted replaced
12:f93c875b566e 13:3a60ebea00d0
   154 EXPORT_C void RAlfBridgerClient::SendAsynchronous(TInt aOp, const TIpcArgs& aIPCArgs,TRequestStatus& aStatus )
   154 EXPORT_C void RAlfBridgerClient::SendAsynchronous(TInt aOp, const TIpcArgs& aIPCArgs,TRequestStatus& aStatus )
   155     {
   155     {
   156     SendReceive(aOp, aIPCArgs, aStatus );
   156     SendReceive(aOp, aIPCArgs, aStatus );
   157     }
   157     }
   158 
   158 
   159 TInt RAlfBridgerClient::GetListOfWindowGroups(RArray<TInt>* aWindowGroups, TBool aListAll)
   159 TInt RAlfBridgerClient::GetListOfWindowGroups(RArray<TInt>* aWindowGroups, TInt aType)
   160     {
   160     {
   161     TInt err = KErrNone;
   161     TInt err = KErrNone;
   162     TInt array[10];
   162     TInt array[10];
   163     TPtr8 ptr((TUint8*)array,0,40);
   163     TPtr8 ptr((TUint8*)array,0,40);
   164     err = SendReceive(EAlfGetListOfWGsHavingInactiveSurfaces, TIpcArgs(&ptr, aListAll));
   164 
       
   165     err = SendReceive(EAlfGetListOfWGsHavingInactiveSurfaces, TIpcArgs(&ptr, aType));
       
   166 
   165     if (!err)
   167     if (!err)
   166         {
   168         {
   167         for(TInt i = 0; i < 10; i++)
   169         for(TInt i = 0; i < 10; i++)
   168             {
   170             {
   169             if (array[i])
   171             if (array[i])
   179     return err; 
   181     return err; 
   180     }
   182     }
   181 
   183 
   182 EXPORT_C TInt RAlfBridgerClient::GetListOfInactiveWindowGroupsWSurfaces(RArray<TInt>* aWindowGroups)
   184 EXPORT_C TInt RAlfBridgerClient::GetListOfInactiveWindowGroupsWSurfaces(RArray<TInt>* aWindowGroups)
   183     {
   185     {
   184     return GetListOfWindowGroups(aWindowGroups, EFalse);
   186     return GetListOfWindowGroups(aWindowGroups, EAlfInactiveWgs);
   185     }
   187     }
   186 
   188 
   187 EXPORT_C TInt RAlfBridgerClient::GetListOfWindowGroupsWSurfaces(RArray<TInt>* aWindowGroups)
   189 EXPORT_C TInt RAlfBridgerClient::GetListOfWindowGroupsWSurfaces(RArray<TInt>* aWindowGroups)
   188     {
   190     {
   189     return GetListOfWindowGroups(aWindowGroups, ETrue);
   191     return GetListOfWindowGroups(aWindowGroups, EAlfAllWgsWithSurface);
   190     }
   192     }
   191 
   193 
       
   194 EXPORT_C void RAlfBridgerClient::GetOptionalGraphicsMemUsers(RArray<TInt>* aOptionalCandidates)
       
   195     {
       
   196     GetListOfWindowGroups(aOptionalCandidates, EAlfVolunteersForCommonGood);
       
   197     }    
   192 
   198 
   193 
   199 
   194 // ---------------------------------------------------------------------------
   200 // ---------------------------------------------------------------------------
   195 // EffectsCount
   201 // EffectsCount
   196 // ---------------------------------------------------------------------------
   202 // ---------------------------------------------------------------------------