appfw/apparchitecture/apgrfx/APGCLI.CPP
changeset 69 dcd4152cfe55
parent 29 6a787171e1de
child 81 676b6116ca93
equal deleted inserted replaced
65:8a530a83576a 69:dcd4152cfe55
  2103     TInt returnValue=SendReceiveWithReconnect(EAppListUpdatedAppsInfo,TIpcArgs(&ptr, &pckg));
  2103     TInt returnValue=SendReceiveWithReconnect(EAppListUpdatedAppsInfo,TIpcArgs(&ptr, &pckg));
  2104     
  2104     
  2105     //If the size of the buffer is not enough expand it to required size and pass it again.
  2105     //If the size of the buffer is not enough expand it to required size and pass it again.
  2106     if(returnValue==KErrOverflow)
  2106     if(returnValue==KErrOverflow)
  2107         {
  2107         {
  2108         buffer->ExpandL(0, sizeRequired);
  2108         sizeRequired=pckg();
  2109         returnValue=SendReceiveWithReconnect(EAppListUpdatedAppsInfo,TIpcArgs(&ptr, &pckg));
  2109         buffer->ResizeL(sizeRequired);
       
  2110         TPtr8 newPtr=buffer->Ptr(0);
       
  2111         returnValue=SendReceiveWithReconnect(EAppListUpdatedAppsInfo,TIpcArgs(&newPtr, &pckg));
  2110         }
  2112         }
  2111     
  2113     
  2112     if(returnValue==KErrNone)
  2114     if(returnValue==KErrNone)
  2113         {
  2115         {
  2114         RBufReadStream readStream;
  2116         RBufReadStream readStream;