- Timestamp:
- Dec 29, 2008, 10:34:23 AM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncnetqueryv2.cpp
r1380 r1388 28 28 //////////////////////////////////////////////////////////////////////////// 29 29 bncNetQueryV2::bncNetQueryV2() { 30 31 connect(this, SIGNAL(newMessage(QByteArray,bool)),32 (bncApp*) qApp, SLOT(slotMessage(const QByteArray,bool)));33 34 30 _manager = new QNetworkAccessManager(this); 35 31 _reply = 0; … … 51 47 void bncNetQueryV2::slotError(QNetworkReply::NetworkError) { 52 48 _status = error; 53 cout << "slotError " << endl; 54 emit newMessage("slotError " + _reply->errorString().toAscii(), true); 49 emit newMessage(_reply->errorString().toAscii(), true); 55 50 _eventLoop->quit(); 56 51 } … … 60 55 _status = finished; 61 56 } 62 cout << "slotFinished" << endl;63 }64 65 void bncNetQueryV2::slotReadyRead() {66 cout << "slotReadyRead" << endl;67 57 } 68 58 … … 108 98 // --------------- 109 99 connect(_reply, SIGNAL(finished()), this, SLOT(slotFinished())); 110 connect(_reply, SIGNAL(readyRead()), this, SLOT(slotReadyRead()));111 112 100 connect(_reply, SIGNAL(finished()), _eventLoop, SLOT(quit())); 113 101 if (!full) { -
trunk/BNC/bncnetqueryv2.h
r1384 r1388 17 17 private slots: 18 18 void slotError(QNetworkReply::NetworkError); 19 void slotReadyRead();20 19 void slotFinished(); 21 20
Note:
See TracChangeset
for help on using the changeset viewer.