Changeset 1704 in ntrip
- Timestamp:
- Mar 4, 2009, 1:46:49 PM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncnetqueryv2.cpp ¶
r1703 r1704 54 54 } 55 55 56 // Error57 ////////////////////////////////////////////////////////////////////////////58 void bncNetQueryV2::slotError() {59 _eventLoop->quit();60 _status = error;61 emit newMessage(_url.path().toAscii().replace(0,1,"") +62 ": NetQuery, Error - server replied: " +63 _reply->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray(),64 true);65 }66 67 56 // End of Request 68 57 //////////////////////////////////////////////////////////////////////////// 69 58 void bncNetQueryV2::slotFinished() { 70 if (_status != error) { 59 _eventLoop->quit(); 60 if (_reply && _reply->error() != QNetworkReply::NoError) { 61 _status = error; 62 emit newMessage(_url.path().toAscii().replace(0,1,"") + 63 ": NetQuery, Error - server replied: " + 64 _reply->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray(), 65 true); 66 } 67 else { 71 68 _status = finished; 72 69 } … … 141 138 connect(_reply, SIGNAL(readyRead()), _eventLoop, SLOT(quit())); 142 139 } 143 connect(_reply, SIGNAL(error(QNetworkReply::NetworkError)),144 this, SLOT(slotError()));145 140 } 146 141 -
TabularUnified trunk/BNC/bncnetqueryv2.h ¶
r1703 r1704 17 17 18 18 private slots: 19 void slotError();20 19 void slotFinished(); 21 20 void slotProxyAuthenticationRequired(const QNetworkProxy&, QAuthenticator*);
Note:
See TracChangeset
for help on using the changeset viewer.