equal
deleted
inserted
replaced
33 #define MAXMSGCHARS 255 |
33 #define MAXMSGCHARS 255 |
34 |
34 |
35 class TCPBase : public QObject |
35 class TCPBase : public QObject |
36 { |
36 { |
37 Q_OBJECT |
37 Q_OBJECT |
38 |
38 |
39 public: |
39 public: |
40 TCPBase(bool demoMode); |
40 TCPBase(bool demoMode); |
41 |
41 |
42 signals: |
42 signals: |
43 void isReadyNow(); |
43 void isReadyNow(); |
57 virtual void onClientRead(); |
57 virtual void onClientRead(); |
58 virtual void onClientDisconnect(); |
58 virtual void onClientDisconnect(); |
59 virtual void SendToClientFirst(); |
59 virtual void SendToClientFirst(); |
60 |
60 |
61 private: |
61 private: |
|
62 static int isIPCServerStarted; |
|
63 static QTcpServer* IPCServer; |
|
64 |
62 bool m_isDemoMode; |
65 bool m_isDemoMode; |
63 QTcpServer * IPCServer; |
66 void RealStart(); |
64 QTcpSocket * IPCSocket; |
67 QTcpSocket * IPCSocket; |
65 |
68 |
66 private slots: |
69 private slots: |
67 void RealStart(); |
|
68 void NewConnection(); |
70 void NewConnection(); |
69 void ClientDisconnect(); |
71 void ClientDisconnect(); |
70 void ClientRead(); |
72 void ClientRead(); |
71 void StartProcessError(QProcess::ProcessError error); |
73 void StartProcessError(QProcess::ProcessError error); |
72 |
74 |