Changeset 2000 in ntrip for trunk/BNC/bncgetthread.cpp


Ignore:
Timestamp:
Nov 21, 2009, 3:35:20 PM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r1973 r2000  
    6363#include "bncsettings.h"
    6464#include "latencychecker.h"
     65#include "bncpppthread.h"
    6566
    6667#include "RTCM/RTCM2Decoder.h"
     
    122123  _nextSleep     = 0;
    123124  _rawOutFile    = 0;
     125  _PPPthread     = 0;
    124126
    125127  bncSettings settings;
     
    289291    emit(newMessage(_staID + ": Get data in RTCM 2.x format", true));
    290292    _decoder = new RTCM2Decoder(_staID.data());
     293    _PPPthread = new bncPPPthread(_staID);
    291294  }
    292295  else if (_format.indexOf("RTCM_3") != -1 || _format.indexOf("RTCM3") != -1 ||
     
    296299    connect((RTCM3Decoder*) _decoder, SIGNAL(newMessage(QByteArray,bool)),
    297300            this, SIGNAL(newMessage(QByteArray,bool)));
     301    _PPPthread = new bncPPPthread(_staID);
    298302  }
    299303  else if (_format.indexOf("RTIGS") != -1) {
    300304    emit(newMessage(_staID + ": Get data in RTIGS format", true));
    301305    _decoder = new RTIGSDecoder();
     306    _PPPthread = new bncPPPthread(_staID);
    302307  }
    303308  else if (_format.indexOf("GPSS") != -1 || _format.indexOf("BNC") != -1) {
     
    322327////////////////////////////////////////////////////////////////////////////
    323328bncGetThread::~bncGetThread() {
     329
     330  if (_PPPthread) {
     331    _PPPthread->terminate();
     332  }
    324333
    325334  if (isRunning()) {
Note: See TracChangeset for help on using the changeset viewer.