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

Last change on this file since 2643 was 2643, checked in by mervart, 12 years ago
File size: 887 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, int ic);
10 t_bnscaster(const QString& mountpoint);
11 virtual ~t_bnscaster();
12 void open(bool force = false);
13 void write(char* buffer, unsigned len);
14 void printAscii(const QString& line);
15 bool usedSocket() const {return _outSocket;}
16 QString crdTrafo() const {return _crdTrafo;}
17 bool CoM() const {return _CoM;}
18 int ic() const {return _ic;}
19
20 signals:
21 void error(const QByteArray msg);
22 void newMessage(const QByteArray msg);
23
24 private:
25 QString _mountpoint;
26 QTcpSocket* _outSocket;
27 int _sOpenTrial;
28 QDateTime _outSocketOpenTime;
29 QFile* _outFile;
30 QTextStream* _outStream;
31 QString _crdTrafo;
32 bool _CoM;
33 int _ic;
34};
35
36#endif
Note: See TracBrowser for help on using the repository browser.