summaryrefslogtreecommitdiff
path: root/client/netcom.h
diff options
context:
space:
mode:
authordeva <deva>2009-11-03 13:49:15 +0000
committerdeva <deva>2009-11-03 13:49:15 +0000
commit1782d12938ba89b67a52677d162d4c865f00cbe0 (patch)
treec4fe0ccd65af6485433310e54e8e8fef43f251da /client/netcom.h
parentc91d9e62801aca5a12ca37429c39a71e6351d6d5 (diff)
First working, but not in any way optimal implementation of a http transport layer.
Diffstat (limited to 'client/netcom.h')
-rw-r--r--client/netcom.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/client/netcom.h b/client/netcom.h
index 35db221..e11509b 100644
--- a/client/netcom.h
+++ b/client/netcom.h
@@ -31,6 +31,7 @@
#include <QString>
#include <QTcpSocket>
#include <QDomDocument>
+#include <QHttp>
//#include "widgets/widget.h"
class Widget;
@@ -45,17 +46,17 @@ public:
void send(QVector< Widget* > widgets, QString templ, QString macro, QString version);
public slots:
- void readyRead();
+ void done(bool);
private:
- volatile bool transmitting;
- QTcpSocket socket;
-
- QByteArray buffer;
- QDomDocument res_doc;
+ volatile bool transfering;
QString user;
QString cpr;
+
+ QHttp http;
+
+ QByteArray buffer;
};
#endif/*__PRACRO_NETCOM_H__*/