source:
ntrip/trunk/BNS/bns.h@
781
Last change on this file since 781 was 778, checked in by , 16 years ago | |
---|---|
File size: 934 bytes |
Rev | Line | |
---|---|---|
[756] | 1 | #ifndef BNS_H |
2 | #define BNS_H | |
3 | ||
[769] | 4 | #include <QtNetwork> |
[756] | 5 | #include <QThread> |
6 | ||
[758] | 7 | #include "bnseph.h" |
8 | ||
[778] | 9 | class t_ephPair { |
10 | public: | |
11 | t_ephPair() { | |
12 | eph = 0; | |
13 | oldEph = 0; | |
14 | } | |
15 | ||
16 | ~t_ephPair() { | |
17 | delete eph; | |
18 | delete oldEph; | |
19 | } | |
20 | ||
21 | gpsEph* eph; | |
22 | gpsEph* oldEph; | |
23 | }; | |
24 | ||
[757] | 25 | class t_bns : public QThread { |
26 | Q_OBJECT | |
[756] | 27 | public: |
[757] | 28 | t_bns(QObject* parent = 0); |
29 | virtual ~t_bns(); | |
[756] | 30 | virtual void run(); |
31 | ||
[757] | 32 | signals: |
33 | void newMessage(const QByteArray msg); | |
[760] | 34 | void error(const QByteArray msg); |
[756] | 35 | |
[758] | 36 | private slots: |
[778] | 37 | void slotNewEph(gpsEph* ep); |
[769] | 38 | void slotNewConnection(); |
[758] | 39 | void slotMessage(const QByteArray msg); |
[760] | 40 | void slotError(const QByteArray msg); |
[758] | 41 | |
[756] | 42 | private: |
[763] | 43 | void deleteBnsEph(); |
[770] | 44 | void openCaster(); |
[778] | 45 | QTcpServer* _clkServer; |
46 | QTcpSocket* _clkSocket; | |
47 | QTcpSocket* _outSocket; | |
48 | t_bnseph* _bnseph; | |
49 | QMutex _mutex; | |
50 | QMap<QString, t_ephPair*> _ephList; | |
[756] | 51 | }; |
52 | #endif |
Note:
See TracBrowser
for help on using the repository browser.