summaryrefslogtreecommitdiff
path: root/client/netcom.h
diff options
context:
space:
mode:
authordeva <deva>2010-02-12 13:47:10 +0000
committerdeva <deva>2010-02-12 13:47:10 +0000
commit305ddf3bdb16177420f480b006550508174a734e (patch)
tree193f4a72f10e3194dc188e75fbf70e1c5c795fac /client/netcom.h
parent85584af165fdcabac284addeba2461af08de8b75 (diff)
Revert to old protocol
Diffstat (limited to 'client/netcom.h')
-rw-r--r--client/netcom.h21
1 files changed, 6 insertions, 15 deletions
diff --git a/client/netcom.h b/client/netcom.h
index 718d5a6..35db221 100644
--- a/client/netcom.h
+++ b/client/netcom.h
@@ -31,9 +31,6 @@
#include <QString>
#include <QTcpSocket>
#include <QDomDocument>
-#include <QHttp>
-
-//#define USE_SSL
//#include "widgets/widget.h"
class Widget;
@@ -48,23 +45,17 @@ public:
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 readyRead();
private:
- volatile bool transfering;
+ volatile bool transmitting;
+ QTcpSocket socket;
+
+ QByteArray buffer;
+ QDomDocument res_doc;
QString user;
QString cpr;
-
- QHttp http;
-
- QByteArray buffer;
- QString sessionid;
};
#endif/*__PRACRO_NETCOM_H__*/