Changeset 1373 in ntrip
- Timestamp:
- Dec 28, 2008, 9:37:57 PM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bnc.pro ¶
r1370 r1373 29 29 bnccaster.h bncrinex.h bncapp.h bncutils.h bnchlpdlg.h \ 30 30 bncconst.h bnchtml.h bnctableitem.h bnczerodecoder.h \ 31 bncsocket.h 31 bncsocket.h bncnetquery.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 bncsocket.cpp 49 bnczerodecoder.cpp bncsocket.cpp bncnetquery.cpp \ 50 50 RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp \ 51 51 RTCM/RTCM2_2021.cpp RTCM/rtcm_utils.cpp \ -
TabularUnified trunk/BNC/bncnetquery.cpp ¶
r1372 r1373 53 53 } 54 54 55 void bncNetQuery::slotFinished() { 56 cout << "slotFinished" << endl; 57 } 58 59 void bncNetQuery::slotReadyRead() { 60 cout << "slotReadyRead" << endl; 61 } 62 55 63 // Start request, block till the next read (public) 56 64 //////////////////////////////////////////////////////////////////////////// 57 65 t_irc bncNetQuery::startRequest(const QUrl& url) { 58 return startRequest(url, false);66 return startRequest(url, true); 59 67 } 60 68 … … 90 98 // Connect Signals 91 99 // --------------- 100 connect(_reply, SIGNAL(finished()), this, SLOT(slotFinished())); 101 connect(_reply, SIGNAL(readyRead()), this, SLOT(slotReadyRead())); 102 92 103 connect(_reply, SIGNAL(finished()), _eventLoop, SLOT(quit())); 93 104 if (!full) { -
TabularUnified trunk/BNC/bncnetquery.h ¶
r1372 r1373 19 19 20 20 private slots: 21 void slotError(QNetworkReply::NetworkError); 21 void slotError(QNetworkReply::NetworkError); 22 void slotReadyRead(); 23 void slotFinished(); 22 24 23 25 private: -
TabularUnified trunk/BNC/bnctabledlg.cpp ¶
r1365 r1373 39 39 * -----------------------------------------------------------------------*/ 40 40 41 #include <iostream> 42 41 43 #include "bnctabledlg.h" 42 44 #include "bncgetthread.h" 45 #include "bncnetquery.h" 43 46 #include "bncsocket.h" 47 48 using namespace std; 44 49 45 50 // Constructor … … 170 175 QString msg; 171 176 bncSocket* socket = new bncSocket(); 177 178 //// beg test 179 bncNetQuery* query = new bncNetQuery(); 180 QByteArray outData; 181 cout << "before request" << endl; 182 t_irc irc = query->waitForRequestResult(url, outData); 183 cout << "after request " << irc << endl; 184 cout << outData.data(); 185 return failure; 186 //// end test 187 172 188 if (socket->request(url, "", "", "", ntripVersion, timeOut, msg) != success) { 173 189 delete socket;
Note:
See TracChangeset
for help on using the changeset viewer.