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

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

* empty log message *

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