- Update the mhttp variable.

preferencesAboutTextFull
agriche 9 years ago
parent 8b6a9279d3
commit 2c83c5e479
  1. 26
      src/core/UBApplicationController.h

@ -31,6 +31,18 @@
//#include <QtGui> //#include <QtGui>
#include <QtWidgets> #include <QtWidgets>
#include <QtNetwork>
//#include <QFtp>
//#include <QHttpResponseHeader>
#include <QNetworkAccessManager>
#include <QtNetwork/QHttpPart>
#include <QScriptValue>
#include <QScriptEngine>
class UBBoardView; class UBBoardView;
class UBDocumentProxy; class UBDocumentProxy;
class UBGraphicsScene; class UBGraphicsScene;
@ -42,9 +54,13 @@ class UBVersion;
class UBSoftwareUpdate; class UBSoftwareUpdate;
class QNetworkAccessManager; class QNetworkAccessManager;
class QNetworkReply; class QNetworkReply;
class QHttp; class QHttpPart;
//class QHttp;
class UBRightPalette; class UBRightPalette;
class UBOpenSankoreImporter; class UBOpenSankoreImporter;
class QScriptValue;
class QScriptEngine;
class QNetworkReply;
class UBApplicationController : public QObject class UBApplicationController : public QObject
{ {
@ -144,8 +160,9 @@ class UBApplicationController : public QObject
void checkAtLaunch(); void checkAtLaunch();
private slots: private slots:
void updateRequestFinished(QNetworkReply * reply); void updateRequestFinished(int id, bool error);
//void updateHeaderReceived(QHttpResponseHeader header);
void updateHeaderReceived(QNetworkRequest header );
protected: protected:
@ -183,6 +200,9 @@ class UBApplicationController : public QObject
QNetworkAccessManager *networkAccessManager; QNetworkAccessManager *networkAccessManager;
void downloadJsonFinished(QString updateString); void downloadJsonFinished(QString updateString);
QHttpPart* mHttp;
QNetworkAccessManager qnam;
QNetworkReply *mHttpreply;
}; };
#endif /* UBAPPLICATIONCONTROLLER_H_ */ #endif /* UBAPPLICATIONCONTROLLER_H_ */

Loading…
Cancel
Save