Line | |
---|
1 |
|
---|
2 | #ifndef BNCGETTHREAD_H
|
---|
3 | #define BNCGETTHREAD_H
|
---|
4 |
|
---|
5 | #include <QThread>
|
---|
6 | #include <QtNetwork>
|
---|
7 |
|
---|
8 | #include "RTCM/GPSDecoder.h"
|
---|
9 |
|
---|
10 | class 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 | QByteArray mountPoint() {return _mountPoint;}
|
---|
27 |
|
---|
28 | signals:
|
---|
29 | void newObs(const QByteArray& mountPoint, Observation* obs);
|
---|
30 | void error(const QByteArray& mountPoint);
|
---|
31 |
|
---|
32 | protected:
|
---|
33 | virtual void run();
|
---|
34 | private:
|
---|
35 | void exit(int exitCode = 0);
|
---|
36 | QTcpSocket* _socket;
|
---|
37 | QString _host;
|
---|
38 | int _port;
|
---|
39 | QString _proxyHost;
|
---|
40 | int _proxyPort;
|
---|
41 | QByteArray _mountPoint;
|
---|
42 | QByteArray _user;
|
---|
43 | QByteArray _password;
|
---|
44 | QByteArray _format;
|
---|
45 | };
|
---|
46 |
|
---|
47 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.