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

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

* empty log message *

File size: 1.4 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"
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,
[59]18 const QByteArray& password,
19 const QByteArray& format);
[35]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,
[82]25 const QByteArray& password,
26 QString& msg);
[35]27 QByteArray mountPoint() {return _mountPoint;}
28
29 signals:
30 void newObs(const QByteArray& mountPoint, Observation* obs);
31 void error(const QByteArray& mountPoint);
[82]32 void newMessage(const QByteArray& msg);
[35]33
34 protected:
35 virtual void run();
36 private:
[82]37 void message(const QString&);
[35]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;
[59]47 QByteArray _format;
[35]48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.