Changeset 624 in ntrip


Ignore:
Timestamp:
Dec 16, 2007, 4:53:14 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM/GPSDecoder.h

    r623 r624  
    7676  }
    7777
    78   ~t_obs() {
    79     if (_status == posted) {
    80       return;
    81     }
    82   }
    83 
    8478  t_obsInternal _o;
    8579  t_obs_status  _status;
     
    9589    QListIterator<p_obs> it(_obsList);
    9690    while (it.hasNext()) {
    97       delete it.next();
     91      p_obs obs = it.next();
     92      if (obs->_status == t_obs::initial) {
     93        delete obs;
     94      }
    9895    }
    9996  }
  • trunk/BNC/bnccaster.cpp

    r622 r624  
    122122
    123123  QMutexLocker locker(&_mutex);
     124
     125  obs->_status = t_obs::received;
    124126
    125127  long iSec    = long(floor(obs->_o.GPSWeeks+0.5));
     
    173175////////////////////////////////////////////////////////////////////////////
    174176void bncCaster::addGetThread(bncGetThread* getThread) {
     177
     178  qRegisterMetaType<p_obs>("p_obs");
     179
    175180  connect(getThread, SIGNAL(newObs(const QByteArray, bool, p_obs)),
    176181          this,      SLOT(newObs(const QByteArray, bool, p_obs)));
  • trunk/BNC/bncgetthread.cpp

    r622 r624  
    444444
    445445          bool firstObs = (obs == _decoder->_obsList.first());
     446          obs->_status = t_obs::posted;
    446447          emit newObs(_staID, firstObs, obs);
    447448        }
  • trunk/BNC/bncmain.cpp

    r621 r624  
    117117
    118118    //// beg test
    119     QTimer::singleShot(30000, &app, SLOT(slotQuit()));
     119    ////    QTimer::singleShot(30000, &app, SLOT(slotQuit()));
    120120    //// end test
    121121
Note: See TracChangeset for help on using the changeset viewer.