bluetoothengine/btmac/src/BTMonoCmdHandler/btmcprotocol.cpp
changeset 1 6a1fe72036e3
parent 0 f63038272f30
child 2 0b192a3a05a4
equal deleted inserted replaced
0:f63038272f30 1:6a1fe72036e3
   836       }
   836       }
   837     CleanupStack::PopAndDestroy(&params);
   837     CleanupStack::PopAndDestroy(&params);
   838     if (response)
   838     if (response)
   839         {
   839         {
   840         RATResultPtrArray resarr;
   840         RATResultPtrArray resarr;
       
   841         CleanupStack::PushL(code);
   841         ATObjArrayCleanupResetAndDestroyPushL(resarr);        
   842         ATObjArrayCleanupResetAndDestroyPushL(resarr);        
   842         CleanupStack::PushL(code);
       
   843         resarr.AppendL(code);
   843         resarr.AppendL(code);
   844         CleanupStack::Pop(code);
   844         CleanupStack::Pop(code);
   845         CATResult* ok = CATResult::NewL(EATOK);
   845         CATResult* ok = CATResult::NewL(EATOK);
   846         CleanupStack::PushL(ok);
   846         CleanupStack::PushL(ok);
   847         resarr.AppendL(ok);
   847         resarr.AppendL(ok);
  1075             TBuf8<RMobilePhone::KPhoneSerialNumberSize> buf;
  1075             TBuf8<RMobilePhone::KPhoneSerialNumberSize> buf;
  1076             buf.Copy(iIdentity.iSerialNumber);
  1076             buf.Copy(iIdentity.iSerialNumber);
  1077             LEAVE_IF_ERROR(params.Append(TATParam(buf)))
  1077             LEAVE_IF_ERROR(params.Append(TATParam(buf)))
  1078             code = CATResult::NewL(EATCGSN, EATActionResult, &params);
  1078             code = CATResult::NewL(EATCGSN, EATActionResult, &params);
  1079             CleanupStack::PopAndDestroy(&params);
  1079             CleanupStack::PopAndDestroy(&params);
       
  1080             CleanupStack::PushL(code);
  1080             RATResultPtrArray resarr;
  1081             RATResultPtrArray resarr;
  1081             ATObjArrayCleanupResetAndDestroyPushL(resarr);        
  1082             ATObjArrayCleanupResetAndDestroyPushL(resarr);        
  1082             CleanupStack::PushL(code);
       
  1083             resarr.AppendL(code);
  1083             resarr.AppendL(code);
  1084             CleanupStack::Pop(code);
  1084             CleanupStack::Pop(code);
  1085             CATResult* ok = CATResult::NewL(EATOK);
  1085             CATResult* ok = CATResult::NewL(EATOK);
  1086             CleanupStack::PushL(ok);
  1086             CleanupStack::PushL(ok);
  1087             resarr.AppendL(ok);
  1087             resarr.AppendL(ok);
  1114     {
  1114     {
  1115     if (!iTimerActive)
  1115     if (!iTimerActive)
  1116         {
  1116         {
  1117         TRACE_FUNC_ENTRY
  1117         TRACE_FUNC_ENTRY
  1118         iTimerActive = CBtmcActive::NewL(*this, CActive::EPriorityStandard, aService);
  1118         iTimerActive = CBtmcActive::NewL(*this, CActive::EPriorityStandard, aService);
  1119         iTimer.CreateLocal();
  1119         LEAVE_IF_ERROR(iTimer.CreateLocal());
  1120         iTimer.After(iTimerActive->iStatus, aTimeout);
  1120         iTimer.After(iTimerActive->iStatus, aTimeout);
  1121         iTimerActive->GoActive();
  1121         iTimerActive->GoActive();
  1122         TRACE_FUNC_EXIT
  1122         TRACE_FUNC_EXIT
  1123         }
  1123         }
  1124     else
  1124     else