| Rev | Line | |
|---|
| [1060] | 1 | #ifndef BNSCASTER_H
|
|---|
| 2 | #define BNSCASTER_H
|
|---|
| 3 |
|
|---|
| 4 | #include <QtNetwork>
|
|---|
| 5 |
|
|---|
| [1062] | 6 | class t_bnscaster : public QObject {
|
|---|
| [1060] | 7 | Q_OBJECT
|
|---|
| 8 | public:
|
|---|
| [1698] | 9 | t_bnscaster(const QString& mountpoint, const QString& outFileName, int ic);
|
|---|
| [1797] | 10 | t_bnscaster(const QString& mountpoint);
|
|---|
| [1062] | 11 | virtual ~t_bnscaster();
|
|---|
| [2645] | 12 | void open();
|
|---|
| [1060] | 13 | void write(char* buffer, unsigned len);
|
|---|
| [1065] | 14 | void printAscii(const QString& line);
|
|---|
| [1123] | 15 | bool usedSocket() const {return _outSocket;}
|
|---|
| [1772] | 16 | QString crdTrafo() const {return _crdTrafo;}
|
|---|
| [2046] | 17 | bool CoM() const {return _CoM;}
|
|---|
| [1262] | 18 | int ic() const {return _ic;}
|
|---|
| [1060] | 19 |
|
|---|
| 20 | signals:
|
|---|
| 21 | void error(const QByteArray msg);
|
|---|
| 22 | void newMessage(const QByteArray msg);
|
|---|
| 23 |
|
|---|
| 24 | private:
|
|---|
| [1065] | 25 | QString _mountpoint;
|
|---|
| 26 | QTcpSocket* _outSocket;
|
|---|
| [1698] | 27 | int _sOpenTrial;
|
|---|
| [1065] | 28 | QDateTime _outSocketOpenTime;
|
|---|
| 29 | QFile* _outFile;
|
|---|
| 30 | QTextStream* _outStream;
|
|---|
| [1772] | 31 | QString _crdTrafo;
|
|---|
| [2046] | 32 | bool _CoM;
|
|---|
| [1249] | 33 | int _ic;
|
|---|
| [1060] | 34 | };
|
|---|
| 35 |
|
|---|
| 36 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.