Changeset 1062 in ntrip for trunk


Ignore:
Timestamp:
Aug 27, 2008, 11:25:53 AM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNS
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r1061 r1062  
    7474  // -------------------------------------------
    7575  _caster = new t_bnscaster(settings.value("mountpoint").toString());
     76  connect(_clkServer, SIGNAL(error(const QByteArray)),
     77          this, SLOT(slotError(const QByteArray)));
     78  connect(_clkServer, SIGNAL(newMessage(const QByteArray)),
     79          this, SLOT(slotNewMessage(const QByteArray)));
    7680
    7781  QIODevice::OpenMode oMode;
  • trunk/BNS/bns.h

    r1058 r1062  
    88
    99#include "bnseph.h"
     10#include "bnscaster.h"
    1011extern "C" {
    1112#include "RTCM/clock_orbit_rtcm.h"
     
    6566  QTcpServer*               _clkServer;
    6667  QTcpSocket*               _clkSocket;
    67   QTcpSocket*               _outSocket;
    68   int                       _outSocketOpenTrial;
    69   QDateTime                 _outSocketOpenTime;
     68  t_bnscaster*              _caster;
    7069  QFile*                    _outFile;
    7170  QFile*                    _logFile;
  • trunk/BNS/bns.pro

    r928 r1062  
    2424HEADERS =             bns.h   bnswindow.h   bnshlpdlg.h   bnshtml.h   \
    2525          bnseph.h    bnsutils.h bnsrinex.h bnssp3.h bnsoutf.h        \
    26           RTCM/clock_orbit_rtcm.h
     26          bnscaster.h RTCM/clock_orbit_rtcm.h
    2727
    2828HEADERS += newmat/controlw.h newmat/include.h newmat/myexcept.h  \
     
    3232SOURCES = bnsmain.cpp bns.cpp bnswindow.cpp bnshlpdlg.cpp bnshtml.cpp  \
    3333          bnseph.cpp  bnsutils.cpp bnsrinex.cpp bnssp3.cpp bnsoutf.cpp \
    34           RTCM/clock_orbit_rtcm.c
     34          bnscaster.cpp RTCM/clock_orbit_rtcm.c
    3535
    3636SOURCES += newmat/bandmat.cpp newmat/cholesky.cpp newmat/evalue.cpp  \
  • trunk/BNS/bnscaster.h

    r1060 r1062  
    44#include <QtNetwork>
    55
    6 class t_bnscaster {
     6class t_bnscaster : public QObject {
    77 Q_OBJECT
    88 public:
    99  t_bnscaster(const QString& mountpoint);
    10   ~t_bnscaster();
     10  virtual ~t_bnscaster();
    1111  void open();
    1212  void write(char* buffer, unsigned len);
     13  bool used() {return _outSocket;}
    1314
    1415 signals:
Note: See TracChangeset for help on using the changeset viewer.