Changeset 1355 in ntrip for trunk/BNC/bncsocket.cpp
- Timestamp:
- Dec 27, 2008, 2:37:28 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncsocket.cpp
r1354 r1355 32 32 app, SLOT(slotMessage(const QByteArray,bool))); 33 33 _socket = 0; 34 #if QT_VERSION >= 0x040400 35 _manager = 0; 36 _reply = 0; 37 #endif 34 38 } 35 39 … … 38 42 bncSocket::~bncSocket() { 39 43 delete _socket; 44 #if QT_VERSION >= 0x040400 45 _reply->deleteLater(); 46 _manager->deleteLater(); 47 #endif 40 48 } 41 49 … … 168 176 } 169 177 else if (ntripVersion == "2") { 170 178 return request2(mountPoint, latitude, longitude, nmea, timeOut, msg); 171 179 } 172 180 else if (ntripVersion != "1") { … … 286 294 } 287 295 296 // 297 //////////////////////////////////////////////////////////////////////////// 298 #if QT_VERSION >= 0x040400 299 void bncSocket::slotReplyFinished() { 300 cout << "slotReplyFinished" << endl; 301 this->deleteLater(); 302 } 303 #endif 304 305 // 306 //////////////////////////////////////////////////////////////////////////// 307 #if QT_VERSION >= 0x040400 308 void bncSocket::slotReadyRead() { 309 cout << "slotReadyRead" << endl; 310 } 311 #endif 312 313 // 314 //////////////////////////////////////////////////////////////////////////// 315 #if QT_VERSION >= 0x040400 316 void bncSocket::slotError(QNetworkReply::NetworkError) { 317 cout << "slotError " << _reply->error() << endl 318 << _reply->errorString().toAscii().data() << endl; 319 } 320 #endif 321 322 // 323 //////////////////////////////////////////////////////////////////////////// 324 #if QT_VERSION >= 0x040400 325 void bncSocket::slotSslErrors(const QList<QSslError>&) { 326 cout << "slotSslError" << endl; 327 } 328 #endif 329 330 // Connect to Caster NTRIP Version 2 331 //////////////////////////////////////////////////////////////////////////// 332 t_irc bncSocket::request2(const QUrl& mountPoint, const QByteArray& latitude, 333 const QByteArray& longitude, const QByteArray& nmea, 334 int timeOut, QString& msg) { 335 #if QT_VERSION < 0x040400 336 emit newMessage("NTRIP v2 requires Qt Version 4.4 or higher", "true"); 337 return failure; 338 #else 339 340 #endif 341 }
Note:
See TracChangeset
for help on using the changeset viewer.