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

Last change on this file since 3179 was 3179, checked in by mervart, 13 years ago
File size: 1.0 KB
Line 
1#ifndef BNCUPLOADCASTER_H
2#define BNCUPLOADCASTER_H
3
4#include <QtNetwork>
5
6class bncUploadCaster : public QObject {
7 Q_OBJECT
8 public:
9 bncUploadCaster(const QString& mountpoint,
10 const QString& outHost, int outPort,
11 const QString& password,
12 const QString& crdTrafo, bool CoM,
13 const QString& outFileName);
14 virtual ~bncUploadCaster();
15 void open();
16 void write(char* buffer, unsigned len);
17 void printAscii(const QString& line);
18 bool usedSocket() const {return _outSocket;}
19 QString crdTrafo() const {return _crdTrafo;}
20 bool CoM() const {return _CoM;}
21
22 signals:
23 void error(const QByteArray msg);
24 void newMessage(const QByteArray msg);
25
26 private:
27 QString _mountpoint;
28 QString _outHost;
29 int _outPort;
30 QString _password;
31 QString _crdTrafo;
32 bool _CoM;
33 QTcpSocket* _outSocket;
34 int _sOpenTrial;
35 QDateTime _outSocketOpenTime;
36 QFile* _outFile;
37 QTextStream* _outStream;
38};
39
40#endif
Note: See TracBrowser for help on using the repository browser.