source: ntrip/trunk/BNC/upload/bncuploadcaster.h@ 3529

Last change on this file since 3529 was 3273, checked in by mervart, 14 years ago
File size: 987 bytes
Line 
1#ifndef BNCUPLOADCASTER_H
2#define BNCUPLOADCASTER_H
3
4#include <QtNetwork>
5
6class bncUploadCaster : public QThread {
7 Q_OBJECT
8 public:
9 bncUploadCaster(const QString& mountpoint,
10 const QString& outHost, int outPort,
11 const QString& password, int iRow, int rate);
12 virtual void deleteSafely();
13 void setOutBuffer(const QByteArray& outBuffer) {
14 QMutexLocker locker(&_mutex);
15 _outBuffer = outBuffer;
16 }
17
18 protected:
19 virtual ~bncUploadCaster();
20 QMutex _mutex;
21 QByteArray _outBuffer;
22
23 signals:
24 void newMessage(const QByteArray msg, bool showOnScreen);
25 void newBytes(QByteArray staID, double nbyte);
26
27 private:
28 void open();
29 virtual void run();
30 bool _isToBeDeleted;
31 QString _mountpoint;
32 QString _outHost;
33 int _outPort;
34 QString _password;
35 QTcpSocket* _outSocket;
36 int _sOpenTrial;
37 QDateTime _outSocketOpenTime;
38 int _iRow;
39 int _rate;
40};
41
42#endif
Note: See TracBrowser for help on using the repository browser.