Changeset 778 in ntrip for trunk/BNS/bns.cpp


Ignore:
Timestamp:
Apr 8, 2008, 9:57:37 AM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r770 r778  
    2828 
    2929  _bnseph = new t_bnseph(parent);
     30
     31  connect(_bnseph, SIGNAL(newEph(gpsEph*)), this, SLOT(slotNewEph(gpsEph*)));
    3032
    3133  connect(_bnseph, SIGNAL(newMessage(QByteArray)),
     
    142144}
    143145
     146//
     147////////////////////////////////////////////////////////////////////////////
     148void t_bns::slotNewEph(gpsEph* ep) {
     149
     150  QMutexLocker locker(&_mutex);
     151
     152  t_ephPair* pair;
     153  if ( !_ephList.contains(ep->prn) ) {
     154    pair = new t_ephPair();
     155    _ephList.insert(ep->prn, pair);
     156  }
     157  else {
     158    pair = _ephList[ep->prn];
     159  }
     160
     161
     162}
Note: See TracChangeset for help on using the changeset viewer.