source: ntrip/trunk/BNC/bncgetthread.h@ 186

Last change on this file since 186 was 138, checked in by mervart, 18 years ago

* empty log message *

File size: 972 bytes
RevLine 
[35]1
2#ifndef BNCGETTHREAD_H
3#define BNCGETTHREAD_H
4
5#include <QThread>
6#include <QtNetwork>
7
8#include "RTCM/GPSDecoder.h"
[138]9#include "bncconst.h"
[35]10
11class bncGetThread : public QThread {
12 Q_OBJECT
13
14 public:
[88]15 bncGetThread(const QUrl& mountPoint, const QByteArray& format);
[35]16 ~bncGetThread();
17
[88]18 static QTcpSocket* bncGetThread::request(const QUrl& mountPoint,
[136]19 int timeOut, QString& msg);
[88]20
21 QByteArray staID() const {return _staID;}
22
[35]23 signals:
[88]24 void newObs(const QByteArray& staID, Observation* obs);
25 void error(const QByteArray& staID);
[82]26 void newMessage(const QByteArray& msg);
[35]27
28 protected:
29 virtual void run();
[138]30
[35]31 private:
[138]32 t_irc initRun();
33 void message(const QString&);
34 void exit(int exitCode = 0);
35 void tryReconnect();
[136]36 GPSDecoder* _decoder;
[35]37 QTcpSocket* _socket;
[88]38 QUrl _mountPoint;
39 QByteArray _staID;
[59]40 QByteArray _format;
[136]41 int _timeOut;
[138]42 int _nextSleep;
[35]43};
44
45#endif
Note: See TracBrowser for help on using the repository browser.