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

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

Imported sources

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