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

Last change on this file since 1795 was 1772, checked in by weber, 16 years ago

* empty log message *

File size: 842 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:
[1698]9 t_bnscaster(const QString& mountpoint, const QString& outFileName, int ic);
[1062]10 virtual ~t_bnscaster();
[1060]11 void open();
12 void write(char* buffer, unsigned len);
[1065]13 void printAscii(const QString& line);
[1123]14 bool usedSocket() const {return _outSocket;}
[1772]15 QString crdTrafo() const {return _crdTrafo;}
[1698]16 bool beClocks() const {return _beClocks;}
[1262]17 int ic() const {return _ic;}
[1060]18
19 signals:
20 void error(const QByteArray msg);
21 void newMessage(const QByteArray msg);
22
23 private:
[1065]24 QString _mountpoint;
25 QTcpSocket* _outSocket;
[1698]26 int _sOpenTrial;
[1065]27 QDateTime _outSocketOpenTime;
28 QFile* _outFile;
29 QTextStream* _outStream;
[1772]30 QString _crdTrafo;
[1698]31 bool _beClocks;
[1249]32 int _ic;
[1060]33};
34
35#endif
Note: See TracBrowser for help on using the repository browser.