QTfrontend/net/tcpBase.h
changeset 10177 0f9042536c46
parent 10175 c92668840ea8
child 10307 e13d3147f15b
--- a/QTfrontend/net/tcpBase.h	Wed Mar 05 00:53:08 2014 +0400
+++ b/QTfrontend/net/tcpBase.h	Thu Mar 06 00:18:51 2014 +0400
@@ -27,6 +27,7 @@
 #include <QString>
 #include <QDir>
 #include <QProcess>
+#include <QThread>
 #include <QPointer>
 #include <QVector>
 #include <QList>
@@ -72,7 +73,11 @@
 
     private:
         static QPointer<QTcpServer> IPCServer;
-
+#ifdef HWLIBRARY
+        QThread * thread;
+#else
+        QProcess * process;
+#endif
         bool m_isDemoMode;
         bool m_connected;
         void RealStart();
@@ -98,9 +103,11 @@
     void setArguments(const QStringList & arguments);
 
 public slots:
-    void start(void);
+    void start();
+
 signals:
-    void finished(void);
+    void finished();
+
 private:
     QList<QByteArray> m_arguments;
     QVector<char *> m_argv;