locationtriggering/ltcellidmovementdetector/src/lbtcellinfo.cpp
changeset 39 3efc7a0e8755
parent 0 667063e416a2
child 45 6b6920c56e2f
equal deleted inserted replaced
37:e175e2ba2fb0 39:3efc7a0e8755
    81         if( aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iCID != -1 )
    81         if( aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iCID != -1 )
    82             {
    82             {
    83             if( !iCellIdArray.Count() ||
    83             if( !iCellIdArray.Count() ||
    84 		         iCellIdArray.Find( aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iCID ) == KErrNotFound )
    84 		         iCellIdArray.Find( aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iCID ) == KErrNotFound )
    85                 {
    85                 {
    86                 iCellIdArray.Append( aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iCID );
    86                 TInt error = iCellIdArray.Append( aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iCID );
       
    87                 if( error != KErrNone )
       
    88                      {
       
    89                      LOG1("Failed to append cell id into the array:%d",error);
       
    90                      }
    87                 }
    91                 }
    88             TWcdmaNMR wcdmaNMR;
    92             TWcdmaNMR wcdmaNMR;
    89             // Only current cell reading are considered for calculation.
    93             // Only current cell reading are considered for calculation.
    90             wcdmaNMR.iCarrierRSSI = aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCarrierRSSI;
    94             wcdmaNMR.iCarrierRSSI = aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCarrierRSSI;
    91             wcdmaNMR.iCpichEcN0 = aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iFddInfo.iCpichEcN0;
    95             wcdmaNMR.iCpichEcN0 = aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iFddInfo.iCpichEcN0;
    92             wcdmaNMR.iCpichRscp = aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iFddInfo.iCpichRscp;
    96             wcdmaNMR.iCpichRscp = aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iFddInfo.iCpichRscp;
    93             wcdmaNMR.iPathloss = aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iFddInfo.iPathloss;
    97             wcdmaNMR.iPathloss = aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iFddInfo.iPathloss;
    94             
    98             
    95             iWcdmaNMR.Append( wcdmaNMR );
    99             TInt error = iWcdmaNMR.Append( wcdmaNMR );
       
   100             if( error != KErrNone )
       
   101                 {
       
   102                 LOG1("Failed to append WCDMA NMR info:%d",error);
       
   103                 }
    96             }
   104             }
    97         }
   105         }
    98     }
   106     }
    99 
   107 
   100 //------------------------------------------------------------
   108 //------------------------------------------------------------
   257                 {
   265                 {
   258                 TGsmNMR nmr;
   266                 TGsmNMR nmr;
   259                 nmr.BSIC = aCellInfo.iGsmCellInfo.iNmr[i].iBSIC;
   267                 nmr.BSIC = aCellInfo.iGsmCellInfo.iNmr[i].iBSIC;
   260                 nmr.ARFCN = aCellInfo.iGsmCellInfo.iNmr[i].iARFCN;
   268                 nmr.ARFCN = aCellInfo.iGsmCellInfo.iNmr[i].iARFCN;
   261                 nmr.RxLEV = aCellInfo.iGsmCellInfo.iNmr[i].iRxLEV;
   269                 nmr.RxLEV = aCellInfo.iGsmCellInfo.iNmr[i].iRxLEV;
   262                 iGsmNMR.Append( nmr );
   270                 iGsmNMR.AppendL( nmr );
   263                 }
   271                 }
   264             else
   272             else
   265                 {
   273                 {
   266                 continue;
   274                 continue;
   267                 }
   275                 }