Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 6th, 2012  |  syntax: C++  |  size: 0.51 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. void InstagramConnection::onGetTagReply()
  2. {
  3.     const int requestError = m_ongoingRequest->error();
  4.     QString errorStr = m_ongoingRequest->errorString();
  5.  
  6.     if (requestError == QNetworkReply::NoError) {
  7.         QByteArray data = m_ongoingRequest->readAll();
  8.         qDebug() << data;
  9.         deleteReply();
  10.  
  11.         setBusy(false);
  12.         emit retrieveCommentsCompleted(requestError == QNetworkReply::NoError,
  13.                                        parseTag(data));
  14.     }
  15.     else
  16.         emitError();
  17. }