diff options
Diffstat (limited to 'client/netcom.h')
-rw-r--r-- | client/netcom.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/client/netcom.h b/client/netcom.h index 718d5a6..32f5982 100644 --- a/client/netcom.h +++ b/client/netcom.h @@ -31,7 +31,8 @@ #include <QString> #include <QTcpSocket> #include <QDomDocument> -#include <QHttp> +#include <QNetworkAccessManager> +#include <QNetworkRequest> //#define USE_SSL @@ -45,26 +46,24 @@ public: ~NetCom(); QDomDocument send(QString templ, QString macro = "", bool lockgui = true); - void send(QVector< Widget* > widgets, QString templ, QString macro, QString version); + void send(QVector< Widget* > widgets, QString templ, QString macro, + QString version); public slots: - void stateChanged(int state); - void readyRead(const QHttpResponseHeader &resp); - -#ifdef USE_SSL - void sslError(const QList<QSslError> &errlst); -#endif + void replyFinished(QNetworkReply*); private: - volatile bool transfering; - QString user; QString cpr; - QHttp http; + QNetworkAccessManager *manager; + QNetworkRequest request; - QByteArray buffer; QString sessionid; + + QMap<QNetworkReply *, bool> finished; + + QDomDocument makeTransfer(QDomDocument &dom, bool commit, bool lockgui); }; #endif/*__PRACRO_NETCOM_H__*/ |