QTfrontend/tcpBase.h
changeset 389 9628e69b609f
parent 291 afa378f1e961
child 419 fdeed9718e6b
--- a/QTfrontend/tcpBase.h	Sun Feb 04 17:00:46 2007 +0000
+++ b/QTfrontend/tcpBase.h	Sun Feb 04 20:48:11 2007 +0000
@@ -26,6 +26,7 @@
 #include <QString>
 #include <QDir>
 #include <QProcess>
+#include <QPointer>
 
 #include <QImage>
 
@@ -34,7 +35,7 @@
 class TCPBase : public QObject
 {
   Q_OBJECT
-    
+
  public:
   TCPBase(bool demoMode);
 
@@ -60,11 +61,11 @@
   virtual void SendToClientFirst();
 
  private:
-  static QTcpServer* IPCServer;
+  static QPointer<QTcpServer> IPCServer;
 
   bool m_isDemoMode;
   void RealStart();
-  QTcpSocket * IPCSocket;
+  QPointer<QTcpSocket> IPCSocket;
 
  private slots:
   void NewConnection();