summaryrefslogtreecommitdiff
path: root/client/netcom.h
diff options
context:
space:
mode:
authordeva <deva>2010-05-06 11:46:57 +0000
committerdeva <deva>2010-05-06 11:46:57 +0000
commitc5bf762bc48466334309f78491bd9cf3c06c97ea (patch)
tree89628e9c15d92c0682e5ccad2e698a2e1003b6b2 /client/netcom.h
parent10db0da7067c93333ab2a9ad5bf15f8ce99b6b3b (diff)
Dispose of old QHttp class in favor of the more recent QNetworkAccessManager class.
Diffstat (limited to 'client/netcom.h')
-rw-r--r--client/netcom.h23
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__*/