source: ntrip/trunk/BNS/bnscaster.h@ 1377

Last change on this file since 1377 was 1262, checked in by weber, 16 years ago

* empty log message *

File size: 815 bytes
Line 
1#ifndef BNSCASTER_H
2#define BNSCASTER_H
3
4#include <QtNetwork>
5
6class t_bnscaster : public QObject {
7 Q_OBJECT
8 public:
9 t_bnscaster(const QString& mountpoint, const QString& outFileName,
10 const QString& refSys, int ic);
11 virtual ~t_bnscaster();
12 void open();
13 void write(char* buffer, unsigned len);
14 void printAscii(const QString& line);
15 bool usedSocket() const {return _outSocket;}
16 bool crdTrafo() const {return _crdTrafo;}
17 int ic() const {return _ic;}
18
19 signals:
20 void error(const QByteArray msg);
21 void newMessage(const QByteArray msg);
22
23 private:
24 QString _mountpoint;
25 QTcpSocket* _outSocket;
26 int _outSocketOpenTrial;
27 QDateTime _outSocketOpenTime;
28 QFile* _outFile;
29 QTextStream* _outStream;
30 bool _crdTrafo;
31 int _ic;
32};
33
34#endif
Note: See TracBrowser for help on using the repository browser.