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

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

* empty log message *

File size: 1.0 KB
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:
[278]15 bncGetThread(const QUrl& mountPoint,
16 const QByteArray& format, int iMount);
[35]17 ~bncGetThread();
18
[88]19 static QTcpSocket* bncGetThread::request(const QUrl& mountPoint,
[136]20 int timeOut, QString& msg);
[88]21
22 QByteArray staID() const {return _staID;}
23
[35]24 signals:
[88]25 void newObs(const QByteArray& staID, Observation* obs);
26 void error(const QByteArray& staID);
[82]27 void newMessage(const QByteArray& msg);
[35]28
29 protected:
30 virtual void run();
[138]31
[35]32 private:
[138]33 t_irc initRun();
34 void message(const QString&);
35 void exit(int exitCode = 0);
36 void tryReconnect();
[136]37 GPSDecoder* _decoder;
[35]38 QTcpSocket* _socket;
[88]39 QUrl _mountPoint;
40 QByteArray _staID;
[255]41 QByteArray _staID_orig;
[59]42 QByteArray _format;
[136]43 int _timeOut;
[138]44 int _nextSleep;
[278]45 int _iMount;
[35]46};
47
48#endif
Note: See TracBrowser for help on using the repository browser.