Engauge Digitizer  2
NetworkClient.h
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef NETWORK_CLIENT_H
8 #define NETWORK_CLIENT_H
9 
10 #include <QByteArray>
11 #include <QNetworkAccessManager>
12 
13 class QNetworkReply;
14 
16 class NetworkClient : public QNetworkAccessManager
17 {
18  Q_OBJECT;
19 
20  public:
22  NetworkClient(QObject *parent);
23 
25  void uploadErrorReport (const QString &report);
26 
27  public slots:
28 
30  void slotFinished (QNetworkReply *);
31 
32  private:
33  NetworkClient();
34 
35  QString cleanXml (const QString &before);
36 
37 };
38 
39 #endif // NETWORK_CLIENT_H
void slotFinished(QNetworkReply *)
Cleanup after response is returned.
void uploadErrorReport(const QString &report)
Upload the error report asynchronously.
Client for interacting with Engauge server.
Definition: NetworkClient.h:16