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

Last change on this file since 3706 was 3273, checked in by mervart, 14 years ago
File size: 987 bytes
RevLine 
[3172]1#ifndef BNCUPLOADCASTER_H
2#define BNCUPLOADCASTER_H
3
4#include <QtNetwork>
5
[3206]6class bncUploadCaster : public QThread {
[3172]7 Q_OBJECT
8 public:
9 bncUploadCaster(const QString& mountpoint,
10 const QString& outHost, int outPort,
[3273]11 const QString& password, int iRow, int rate);
[3224]12 virtual void deleteSafely();
[3252]13 void setOutBuffer(const QByteArray& outBuffer) {
14 QMutexLocker locker(&_mutex);
15 _outBuffer = outBuffer;
16 }
[3224]17
[3207]18 protected:
[3226]19 virtual ~bncUploadCaster();
20 QMutex _mutex;
21 QByteArray _outBuffer;
[3172]22
23 signals:
[3189]24 void newMessage(const QByteArray msg, bool showOnScreen);
[3234]25 void newBytes(QByteArray staID, double nbyte);
[3172]26
27 private:
[3226]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;
[3233]38 int _iRow;
[3273]39 int _rate;
[3172]40};
41
42#endif
Note: See TracBrowser for help on using the repository browser.