Changeset 1354 in ntrip for trunk


Ignore:
Timestamp:
Dec 27, 2008, 2:18:56 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncsocket.cpp

    r1353 r1354  
    1919
    2020#include "bncsocket.h"
     21#include "bncapp.h"
    2122
    2223using namespace std;
     
    2728////////////////////////////////////////////////////////////////////////////
    2829bncSocket::bncSocket() {
     30  bncApp* app = (bncApp*) qApp;
     31  app->connect(this, SIGNAL(newMessage(QByteArray,bool)),
     32               app, SLOT(slotMessage(const QByteArray,bool)));
    2933  _socket = 0;
    3034}
     
    158162                         const QByteArray& ntripVersion,
    159163                         int timeOut, QString& msg) {
     164
     165  if      (ntripVersion == "AUTO") {
     166    emit newMessage("NTRIP Version AUTO not yet implemented", "true");
     167    return failure;
     168  }
     169  else if (ntripVersion == "2") {
     170
     171  }
     172  else if (ntripVersion != "1") {
     173    emit newMessage("Unknown NTRIP Version " + ntripVersion, "true");
     174    return failure;
     175  }
    160176
    161177  delete _socket;
  • trunk/BNC/bncsocket.h

    r1353 r1354  
    66
    77class bncSocket : public QObject {
     8 Q_OBJECT
    89
    910 public:
     
    2829                const QByteArray& ntripVersion, int timeOut, QString& msg);
    2930
     31 signals:
     32  void newMessage(QByteArray msg, bool showOnScreen);
     33
    3034 private:
    3135  QTcpSocket* _socket;
Note: See TracChangeset for help on using the changeset viewer.