436 |
436 |
437 AllowResponseL(); |
437 AllowResponseL(); |
438 TInt trId = iAsyProxyTRRecord->TrId(); |
438 TInt trId = iAsyProxyTRRecord->TrId(); |
439 DoDestroy( trId ); |
439 DoDestroy( trId ); |
440 |
440 |
441 //Reset buffer |
|
442 iObjectBuf->Reset(); |
|
443 if ( ECmdGetObjectValue == iAsyProxyTRRecord->CmdId() ) |
|
444 { |
|
445 iObjectBuf->ResizeL( KAccSrvObjectBaseStreamBufMaxSize ); |
|
446 //Externalize aValue to aBuf |
|
447 RBufWriteStream wStrm; |
|
448 (void) wStrm.Open( *iObjectBuf ); |
|
449 CleanupClosePushL( wStrm ); |
|
450 aObjectCon.ExternalizeL( wStrm ); |
|
451 wStrm.CommitL(); |
|
452 CleanupStack::PopAndDestroy( &wStrm ); |
|
453 } |
|
454 else |
|
455 { |
|
456 COM_TRACE_( "[AccFW:AsyProxy] CASYProxyCommandObserver::DoProcessResponseL() - Nothing do to!"); |
|
457 } |
|
458 |
|
459 // Release allocated buffer |
|
460 if ( iObjectBuf ) |
441 if ( iObjectBuf ) |
461 { |
442 { |
|
443 //Reset buffer |
|
444 iObjectBuf->Reset(); |
|
445 if ( ECmdGetObjectValue == iAsyProxyTRRecord->CmdId() ) |
|
446 { |
|
447 iObjectBuf->ResizeL( KAccSrvObjectBaseStreamBufMaxSize ); |
|
448 //Externalize aValue to aBuf |
|
449 RBufWriteStream wStrm; |
|
450 (void) wStrm.Open( *iObjectBuf ); |
|
451 CleanupClosePushL( wStrm ); |
|
452 aObjectCon.ExternalizeL( wStrm ); |
|
453 wStrm.CommitL(); |
|
454 CleanupStack::PopAndDestroy( &wStrm ); |
|
455 } |
|
456 else |
|
457 { |
|
458 COM_TRACE_( "[AccFW:AsyProxy] CASYProxyCommandObserver::DoProcessResponseL() - Nothing do to!"); |
|
459 } |
|
460 |
|
461 // Release allocated buffer |
462 TPtr8 ptr( iObjectBuf->Ptr(0) ); |
462 TPtr8 ptr( iObjectBuf->Ptr(0) ); |
463 iAsyProxyCommsSrvc->iAsyComms.ProcessResponse( trId, |
463 iAsyProxyCommsSrvc->iAsyComms.ProcessResponse( trId, |
464 &ptr, |
464 &ptr, |
465 aErrCode ); |
465 aErrCode ); |
466 delete iObjectBuf; |
466 delete iObjectBuf; |
467 iObjectBuf = NULL; |
467 iObjectBuf = NULL; |
468 } |
468 } |
469 else |
469 else |
470 { |
470 { |
471 iAsyProxyCommsSrvc->iAsyComms.ProcessResponse( trId, |
471 iAsyProxyCommsSrvc->iAsyComms.ProcessResponse( trId, |
472 NULL, |
472 NULL, |
473 aErrCode ); |
473 aErrCode ); |