Changeset 1702 in ntrip
- Timestamp:
- Mar 4, 2009, 1:03:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncnetqueryv2.cpp
r1701 r1702 48 48 void bncNetQueryV2::stop() { 49 49 if (_reply) { 50 _reply->disconnect(SIGNAL(error(QNetworkReply::NetworkError)));51 50 _reply->abort(); 52 51 } … … 58 57 //////////////////////////////////////////////////////////////////////////// 59 58 void bncNetQueryV2::slotError(QNetworkReply::NetworkError) { 59 _eventLoop->quit(); 60 60 _status = error; 61 emit newMessage(_url.path().toAscii().replace(0,1,"") 62 + ": NetQuery, " + _reply->errorString().toAscii(), true); 63 _eventLoop->quit(); 61 62 emit newMessage(_url.path().toAscii().replace(0,1,"") + 63 ": NetQuery, Error - server replied: " + 64 _reply->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray(), 65 true); 64 66 } 65 67 … … 174 176 // ------------------------ 175 177 if (_reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt() != 200) { 176 _reply->disconnect(SIGNAL(error(QNetworkReply::NetworkError)));177 178 _reply->abort(); 178 _eventLoop->quit(); 179 _status = error; 180 emit newMessage(_url.path().toAscii().replace(0,1,"") + 181 ": NetQuery, Error - server replied: " + 182 _reply->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray(), 183 true); 179 slotError(QNetworkReply::UnknownNetworkError); 184 180 } 185 181
Note:
See TracChangeset
for help on using the changeset viewer.