From 78f095bd8649f8c67aeed3ceee8f693cb1c4d656 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 23 Sep 2008 09:37:51 +0000 Subject: Cleaned up the network code a bit. Now the window is locked while communication s going on to prevent network clutching. --- client/netcom.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/netcom.h') diff --git a/client/netcom.h b/client/netcom.h index 8f8b007..81fb147 100644 --- a/client/netcom.h +++ b/client/netcom.h @@ -42,12 +42,13 @@ public: ~NetCom(); QDomDocument send(QString course, QString macro = ""); - void send(QVector< Widget* > widgets, QString course, QString macro, QString version); + void send(QVector< Widget* > widgets, QString macro, QString version); public slots: void readyRead(); private: + volatile bool transmitting; QTcpSocket socket; QByteArray buffer; -- cgit v1.2.3