title: How to make QNetworkReply to return custom data?
body: <p>I am going to use QNetworkAccessManager to make requests to HTTP server by my mobile app to the server. The question is, how do you link custom data to each request ? I tried to subclass QNetworkReply but I found out that I have to implement virtual methods <code>close()</code> and <code>isSequential()</code> but I don't know what those should return so I am afraid I am going to break network request functionality.</p>
  
  <p>For example, when my app does the log in procedure, it has to store the email address of the account:</p>
  
  <pre><code>class MyApp : public QObject
  {
      Q_OBJECT
  
  private:
      QNetworkRequest             request;
      QNetworkReply               *reply;
      QNetworkAccessManager       *manager;
  
      ...
  
  }
  
  void MyApp::do_log_in(QString email, QString password) {
      QString s;
  
      someobject.email=email; // &lt;-- I have to store email address before sending request to server, but where do I store it?
      s.append("http://myapp.com/do-auth.php?email=");
      s.append(QUrl::toPercentEncoding(email));
      s.append("&amp;password=");
      s.append(QUrl::toPercentEncoding(password));
      connect(manager,SIGNAL(finished(QNetworkReply*)),this,SLOT(login_finished(QNetworkReply*)));
      request.setUrl(QUrl(s));
      manager-&gt;get(request);
  
  }
  
  void MyApp::login_finished(QNetworkReply *rep) {
      DepservReply *reply;
      QString email;
      ....
      email= ...... // &lt;-- I need to get the email address from QNetworkReply object somehow
      ///my code here handling server reply
      ....
  } 
  </code></pre>
  
  <p>So, how do I implement storage and retrieval of email in my case, what classes should I subclass and what methods should I re-implement ?</p>