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

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

* empty log message *

File size: 812 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 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 message(const QString&);
31 void exit(int exitCode = 0);
32 QTcpSocket* _socket;
33 QUrl _mountPoint;
34 QByteArray _staID;
35 QByteArray _format;
36};
37
38#endif
Note: See TracBrowser for help on using the repository browser.