Last change
on this file since 8938 was 8770, checked in by stuerze, 5 years ago |
minor changes in ntrip 1 upload
|
File size:
1.2 KB
|
Rev | Line | |
---|
[3172] | 1 | #ifndef BNCUPLOADCASTER_H
|
---|
| 2 | #define BNCUPLOADCASTER_H
|
---|
| 3 |
|
---|
[8252] | 4 | #include <QDateTime>
|
---|
| 5 | #include <QMutex>
|
---|
| 6 | #include <QTcpSocket>
|
---|
[8770] | 7 | #include <QNetworkProxy>
|
---|
[8252] | 8 | #include <QThread>
|
---|
[3172] | 9 |
|
---|
[3206] | 10 | class bncUploadCaster : public QThread {
|
---|
[3172] | 11 | Q_OBJECT
|
---|
| 12 | public:
|
---|
| 13 | bncUploadCaster(const QString& mountpoint,
|
---|
[8275] | 14 | const QString& outHost, int outPort,
|
---|
| 15 | const QString& ntripVersion,
|
---|
| 16 | const QString& userName, const QString& password,
|
---|
| 17 | int iRow, int rate);
|
---|
[3224] | 18 | virtual void deleteSafely();
|
---|
[3252] | 19 | void setOutBuffer(const QByteArray& outBuffer) {
|
---|
| 20 | QMutexLocker locker(&_mutex);
|
---|
| 21 | _outBuffer = outBuffer;
|
---|
| 22 | }
|
---|
[3224] | 23 |
|
---|
[3207] | 24 | protected:
|
---|
[3226] | 25 | virtual ~bncUploadCaster();
|
---|
[8275] | 26 | QMutex _mutex;
|
---|
[3226] | 27 | QByteArray _outBuffer;
|
---|
[3172] | 28 |
|
---|
| 29 | signals:
|
---|
[3189] | 30 | void newMessage(const QByteArray msg, bool showOnScreen);
|
---|
[3234] | 31 | void newBytes(QByteArray staID, double nbyte);
|
---|
[3172] | 32 |
|
---|
| 33 | private:
|
---|
[3226] | 34 | void open();
|
---|
| 35 | virtual void run();
|
---|
| 36 | bool _isToBeDeleted;
|
---|
| 37 | QString _mountpoint;
|
---|
| 38 | QString _outHost;
|
---|
| 39 | int _outPort;
|
---|
[8275] | 40 | QString _userName;
|
---|
[3226] | 41 | QString _password;
|
---|
[8275] | 42 | QString _ntripVersion;
|
---|
| 43 | bool _secure;
|
---|
[3226] | 44 | QTcpSocket* _outSocket;
|
---|
| 45 | int _sOpenTrial;
|
---|
| 46 | QDateTime _outSocketOpenTime;
|
---|
[3233] | 47 | int _iRow;
|
---|
[3273] | 48 | int _rate;
|
---|
[3172] | 49 | };
|
---|
| 50 |
|
---|
| 51 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.