- Timestamp:
- Dec 29, 2008, 10:39:13 AM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncnetqueryv2.cpp
r1388 r1389 15 15 * -----------------------------------------------------------------------*/ 16 16 17 #include <iostream>18 #include <iomanip>19 20 17 #include "bncnetqueryv2.h" 21 #include "bncapp.h"22 23 using namespace std;24 18 25 19 #define BNCVERSION "1.7" … … 51 45 } 52 46 47 // End of Request 48 //////////////////////////////////////////////////////////////////////////// 53 49 void bncNetQueryV2::slotFinished() { 54 50 if (_status != error) { … … 57 53 } 58 54 59 // Start request, block till the next read (public)55 // Start request, block till the next read 60 56 //////////////////////////////////////////////////////////////////////////// 61 57 void bncNetQueryV2::startRequest(const QUrl& url, const QByteArray& gga) { 62 startRequest (url, gga, false);58 startRequestPrivate(url, gga, false); 63 59 } 64 60 65 // Start request61 // Start Request (Private Method) 66 62 //////////////////////////////////////////////////////////////////////////// 67 void bncNetQueryV2::startRequest (const QUrl& url, const QByteArray& gga,68 bool full) {63 void bncNetQueryV2::startRequestPrivate(const QUrl& url, const QByteArray& gga, 64 bool full) { 69 65 70 66 _status = running; … … 91 87 (urlLoc.userName() + ":" + urlLoc.password()).toAscii().toBase64()); 92 88 } 89 if (!gga.isEmpty()) { 90 request.setRawHeader("Ntrip-GGA", gga); 91 } 93 92 request.setRawHeader("Connection" , "close"); 94 93 … … 112 111 // Send Request 113 112 // ------------ 114 startRequest (url, "", true);113 startRequestPrivate(url, "", true); 115 114 116 115 // Wait Loop -
trunk/BNC/bncnetqueryv2.h
r1388 r1389 20 20 21 21 private: 22 void startRequest (const QUrl& url, const QByteArray& gga, bool full);22 void startRequestPrivate(const QUrl& url, const QByteArray& gga, bool full); 23 23 24 24 QNetworkAccessManager* _manager;
Note:
See TracChangeset
for help on using the changeset viewer.