Advertisement
Guest User

Pocket, BB10, askCodeResponse, QT

a guest
Feb 24th, 2013
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void YourClassName::requestFinished(QNetworkReply* reply) {
  2.     if (reply->error() == QNetworkReply::NoError) { // Check the network reply for errors
  3.         QByteArray bArray = reply->readAll();
  4.         QString strReply = QString::fromUtf8(bArray);
  5.         if(state==REQUESTCODE) { //it is a response from a RequestCode action.
  6.             appCode = new QString(strReply.mid(5));
  7. //with "mid" we strip the first 5 characters, cause we don't need it, and save locally, the app code.
  8.                     launchAuthBrowser(); //we can call the brower now
  9.             }
  10.     // ...
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement