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

Last change on this file since 1187 was 1123, checked in by mervart, 16 years ago

* empty log message *

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