- Timestamp:
- Dec 29, 2008, 9:45:21 AM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnc.pro
r1378 r1383 29 29 bnccaster.h bncrinex.h bncapp.h bncutils.h bnchlpdlg.h \ 30 30 bncconst.h bnchtml.h bnctableitem.h bnczerodecoder.h \ 31 bnc socket.h bncnetquery.h bncnetqueryv2.h\31 bncnetquery.h bncnetqueryv1.h bncnetqueryv2.h \ 32 32 RTCM/GPSDecoder.h RTCM/RTCM2.h RTCM/RTCM2Decoder.h \ 33 33 RTCM/RTCM2_2021.h RTCM/rtcm_utils.h \ … … 47 47 bnccaster.cpp bncrinex.cpp bncapp.cpp bncutils.cpp \ 48 48 bncconst.cpp bnchtml.cpp bnchlpdlg.cpp bnctableitem.cpp \ 49 bnczerodecoder.cpp bnc socket.cpp bncnetqueryv2.cpp\49 bnczerodecoder.cpp bncnetqueryv1.cpp bncnetqueryv2.cpp \ 50 50 RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp \ 51 51 RTCM/RTCM2_2021.cpp RTCM/rtcm_utils.cpp \ -
trunk/BNC/bncapp.cpp
r1321 r1383 147 147 // Write a Program Message 148 148 //////////////////////////////////////////////////////////////////////////// 149 void bncApp::slotMessage( constQByteArray msg, bool showOnScreen) {149 void bncApp::slotMessage(QByteArray msg, bool showOnScreen) { 150 150 151 151 QMutexLocker locker(&_mutexMessage); -
trunk/BNC/bncapp.h
r1299 r1383 45 45 void setWaitCoTime(int waitCoTime) {_waitCoTime = waitCoTime;} 46 46 public slots: 47 void slotMessage( constQByteArray msg, bool showOnScreen);47 void slotMessage(QByteArray msg, bool showOnScreen); 48 48 void slotNewGPSEph(gpsephemeris* gpseph); 49 49 void slotNewGlonassEph(glonassephemeris* glonasseph); -
trunk/BNC/bncnetquery.h
r1380 r1383 4 4 #include <QtNetwork> 5 5 #include "bncconst.h" 6 #include "bncapp.h" 6 7 7 8 class bncNetQuery : public QObject { … … 11 12 enum queryStatus {init, running, finished, error}; 12 13 13 bncNetQuery(); 14 bncNetQuery() { 15 connect(this, SIGNAL(newMessage(QByteArray,bool)), 16 (bncApp*) qApp, SLOT(slotMessage(const QByteArray,bool))); 17 } 14 18 virtual ~bncNetQuery(); 15 19 -
trunk/BNC/bncnetqueryv1.cpp
r1382 r1383 3 3 * ------------------------------------------------------------------------- 4 4 * 5 * Class: bnc Socket5 * Class: bncNetQueryV1 6 6 * 7 7 * Purpose: Blocking Network Requests (NTRIP Version 1) … … 28 28 // Constructor 29 29 //////////////////////////////////////////////////////////////////////////// 30 bncSocket::bncSocket() { 31 bncApp* app = (bncApp*) qApp; 32 app->connect(this, SIGNAL(newMessage(QByteArray,bool)), 33 app, SLOT(slotMessage(const QByteArray,bool))); 30 bncNetQueryV1::bncNetQueryV1() { 34 31 _socket = 0; 35 32 } … … 37 34 // Destructor 38 35 //////////////////////////////////////////////////////////////////////////// 39 bnc Socket::~bncSocket() {36 bncNetQueryV1::~bncNetQueryV1() { 40 37 delete _socket; 41 38 } … … 43 40 // 44 41 //////////////////////////////////////////////////////////////////////////// 45 void bnc Socket::close() {42 void bncNetQueryV1::close() { 46 43 if (_socket) { 47 44 _socket->close(); … … 51 48 // 52 49 //////////////////////////////////////////////////////////////////////////// 53 qint64 bnc Socket::bytesAvailable() const {50 qint64 bncNetQueryV1::bytesAvailable() const { 54 51 if (_socket) { 55 52 return _socket->bytesAvailable(); … … 62 59 // 63 60 //////////////////////////////////////////////////////////////////////////// 64 bool bnc Socket::canReadLine() const {61 bool bncNetQueryV1::canReadLine() const { 65 62 if (_socket) { 66 63 return _socket->canReadLine(); … … 73 70 // 74 71 //////////////////////////////////////////////////////////////////////////// 75 QByteArray bnc Socket::readLine() {72 QByteArray bncNetQueryV1::readLine() { 76 73 if (_socket) { 77 74 return _socket->readLine(); … … 84 81 // 85 82 //////////////////////////////////////////////////////////////////////////// 86 void bnc Socket::waitForReadyRead(int msecs) {83 void bncNetQueryV1::waitForReadyRead(int msecs) { 87 84 if (_socket) { 88 85 _socket->waitForReadyRead(msecs); … … 92 89 // 93 90 //////////////////////////////////////////////////////////////////////////// 94 QByteArray bnc Socket::read(qint64 maxSize) {91 QByteArray bncNetQueryV1::read(qint64 maxSize) { 95 92 if (_socket) { 96 93 return _socket->read(maxSize); … … 103 100 // Connect to Caster, send the Request 104 101 //////////////////////////////////////////////////////////////////////////// 105 t_irc bnc Socket::request(const QUrl& mountPoint, const QByteArray& latitude,102 t_irc bncNetQueryV1::request(const QUrl& mountPoint, const QByteArray& latitude, 106 103 const QByteArray& longitude, const QByteArray& nmea, 107 104 const QByteArray& ntripVersion, -
trunk/BNC/bncnetqueryv1.h
r1382 r1383 1 #ifndef BNC SOCKET_H2 #define BNC SOCKET_H1 #ifndef BNCNETQUERYV1_H 2 #define BNCNETQUERYV1_H 3 3 4 #include <QtNetwork> 5 #include "bncconst.h" 4 #include "bncnetquery.h" 6 5 7 class bnc Socket : public QObject{6 class bncNetQueryV1 : public bncNetQuery { 8 7 Q_OBJECT 9 8 10 9 public: 11 bnc Socket();12 ~bnc Socket();10 bncNetQueryV1(); 11 ~bncNetQueryV1(); 13 12 14 13 void close();
Note:
See TracChangeset
for help on using the changeset viewer.