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

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

* empty log message *

File size: 1.4 KB
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 QString& host, int port,
15 const QString& proxyHost, int proxyPort,
16 const QByteArray& mountPoint,
17 const QByteArray& user,
18 const QByteArray& password,
19 const QByteArray& format);
20 ~bncGetThread();
21 static QTcpSocket* bncGetThread::request(const QString& host, int port,
22 const QString& proxyHost, int proxyPort,
23 const QByteArray& mountPoint,
24 const QByteArray& user,
25 const QByteArray& password,
26 QString& msg);
27 QByteArray mountPoint() {return _mountPoint;}
28
29 signals:
30 void newObs(const QByteArray& mountPoint, Observation* obs);
31 void error(const QByteArray& mountPoint);
32 void newMessage(const QByteArray& msg);
33
34 protected:
35 virtual void run();
36 private:
37 void message(const QString&);
38 void exit(int exitCode = 0);
39 QTcpSocket* _socket;
40 QString _host;
41 int _port;
42 QString _proxyHost;
43 int _proxyPort;
44 QByteArray _mountPoint;
45 QByteArray _user;
46 QByteArray _password;
47 QByteArray _format;
48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.