equal
deleted
inserted
replaced
51 { |
51 { |
52 Q_OBJECT |
52 Q_OBJECT |
53 |
53 |
54 public: |
54 public: |
55 HWMap(); |
55 HWMap(); |
|
56 virtual ~HWMap(); |
56 void getImage(std::string seed); |
57 void getImage(std::string seed); |
57 |
58 |
58 signals: |
59 signals: |
59 void ImageReceived(const QImage newImage); |
60 void ImageReceived(const QImage newImage); |
|
61 void isReadyNow(); |
60 |
62 |
61 private: |
63 private: |
|
64 static int isBusy; |
|
65 void RealStart(); |
|
66 |
62 bool m_isStarted; |
67 bool m_isStarted; |
63 std::string m_seed; |
68 std::string m_seed; |
64 QTcpServer * IPCServer; |
69 QTcpServer * IPCServer; |
65 QTcpSocket * IPCSocket; |
70 QTcpSocket * IPCSocket; |
66 |
71 |
73 private slots: |
78 private slots: |
74 void NewConnection(); |
79 void NewConnection(); |
75 void ClientDisconnect(); |
80 void ClientDisconnect(); |
76 void ClientRead(); |
81 void ClientRead(); |
77 void StartProcessError(QProcess::ProcessError error); |
82 void StartProcessError(QProcess::ProcessError error); |
|
83 |
|
84 void tcpServerReady(); |
78 }; |
85 }; |
79 |
86 |
80 #endif // _HWMAP_INCLUDED |
87 #endif // _HWMAP_INCLUDED |