supl/locationomasuplprotocolhandler/asnconverterpluginapi/src/epos_comasuplreport.cpp
branchRCL_3
changeset 20 2b4ea9893b66
parent 4 42de37ce7ce4
child 21 6b6920c56e2f
equal deleted inserted replaced
19:02ba3f1733c6 20:2b4ea9893b66
   291 // -----------------------------------------------------------------------------
   291 // -----------------------------------------------------------------------------
   292 //
   292 //
   293 EXPORT_C COMASuplReportData* COMASuplReportData::CloneL()
   293 EXPORT_C COMASuplReportData* COMASuplReportData::CloneL()
   294     {
   294     {
   295     COMASuplReportData* repDataToRet = COMASuplReportData::NewL();
   295     COMASuplReportData* repDataToRet = COMASuplReportData::NewL();
       
   296     CleanupStack::PushL( repDataToRet );
   296     repDataToRet->SetMutipleLocId(iMultipleLocIds->CloneL());
   297     repDataToRet->SetMutipleLocId(iMultipleLocIds->CloneL());
   297     repDataToRet->SetResultCode(iResultCode);
   298     repDataToRet->SetResultCode(iResultCode);
   298     repDataToRet->SetTimeStamp(iTimeStamp);
   299     repDataToRet->SetTimeStamp(iTimeStamp);
   299     repDataToRet->SetPosData(iPositionData->CloneL());
   300     repDataToRet->SetPosData(iPositionData->CloneL());
       
   301     CleanupStack::Pop(repDataToRet);
   300     return repDataToRet;
   302     return repDataToRet;
   301     }
   303     }
   302 // -----------------------------------------------------------------------------
   304 // -----------------------------------------------------------------------------
   303 // COMASuplReport::COMASuplReport
   305 // COMASuplReport::COMASuplReport
   304 // (other items were commented in a header).
   306 // (other items were commented in a header).
   419     {
   421     {
   420     if(iOptionalMask & (1<<KSessionListShift))
   422     if(iOptionalMask & (1<<KSessionListShift))
   421         {
   423         {
   422         for(TInt count = 0; count < iSessionList.Count();count++)
   424         for(TInt count = 0; count < iSessionList.Count();count++)
   423             {
   425             {
   424             aSessionList.Append(iSessionList[count]);
   426             TInt error = aSessionList.Append(iSessionList[count]);
       
   427             if( error != KErrNone )
       
   428                 {
       
   429                 return error;
       
   430                 }
   425             }
   431             }
   426         return KErrNone;
   432         return KErrNone;
   427         }
   433         }
   428     else
   434     else
   429         return KErrOMASuplParamNotSet;
   435         return KErrOMASuplParamNotSet;
   450     {
   456     {
   451     if(iOptionalMask & (1<<KRepDataShift))
   457     if(iOptionalMask & (1<<KRepDataShift))
   452         {
   458         {
   453         for(TInt count = 0; count < iReportDataList.Count();count++)
   459         for(TInt count = 0; count < iReportDataList.Count();count++)
   454             {
   460             {
   455             aReportDataList.Append(iReportDataList[count]);
   461             TInt error = aReportDataList.Append(iReportDataList[count]);
       
   462             if( error != KErrNone )
       
   463                 {
       
   464                 return error;
       
   465                 }
   456             }
   466             }
   457         return KErrNone;
   467         return KErrNone;
   458         }
   468         }
   459     else
   469     else
   460         return KErrOMASuplParamNotSet;
   470         return KErrOMASuplParamNotSet;