Line | |
---|
1 | #ifndef BNCUPLOADCASTER_H
|
---|
2 | #define BNCUPLOADCASTER_H
|
---|
3 |
|
---|
4 | #include <QtNetwork>
|
---|
5 |
|
---|
6 | class bncClockRinex;
|
---|
7 | class bncSP3;
|
---|
8 |
|
---|
9 | class bncUploadCaster : public QObject {
|
---|
10 | Q_OBJECT
|
---|
11 | public:
|
---|
12 | bncUploadCaster(const QString& mountpoint,
|
---|
13 | const QString& outHost, int outPort,
|
---|
14 | const QString& password,
|
---|
15 | const QString& crdTrafo, bool CoM,
|
---|
16 | const QString& outFileName);
|
---|
17 | virtual ~bncUploadCaster();
|
---|
18 | void open();
|
---|
19 | void write(char* buffer, unsigned len);
|
---|
20 | void printAscii(const QString& line);
|
---|
21 | bool usedSocket() const {return _outSocket;}
|
---|
22 | QString crdTrafo() const {return _crdTrafo;}
|
---|
23 | bool CoM() const {return _CoM;}
|
---|
24 |
|
---|
25 | signals:
|
---|
26 | void error(const QByteArray msg);
|
---|
27 | void newMessage(const QByteArray msg);
|
---|
28 |
|
---|
29 | private:
|
---|
30 | QString _mountpoint;
|
---|
31 | QString _outHost;
|
---|
32 | int _outPort;
|
---|
33 | QString _password;
|
---|
34 | QString _crdTrafo;
|
---|
35 | bool _CoM;
|
---|
36 | QTcpSocket* _outSocket;
|
---|
37 | int _sOpenTrial;
|
---|
38 | QDateTime _outSocketOpenTime;
|
---|
39 | QFile* _outFile;
|
---|
40 | QTextStream* _outStream;
|
---|
41 | bncClockRinex* _rnx;
|
---|
42 | bncSP3* _sp3;
|
---|
43 | };
|
---|
44 |
|
---|
45 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.