process_com.h

main 54 lines · 1.5 KB Raw
Alex Alex Commit Map Editor 18/10/2026 23:40
1//////////////////////////////////////////////////////////////////////
2// This file is part of Remere's Map Editor
3//////////////////////////////////////////////////////////////////////
4// Remere's Map Editor is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// Remere's Map Editor is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with this program. If not, see <http://www.gnu.org/licenses/>.
16//////////////////////////////////////////////////////////////////////
17
18#ifdef _USE_PROCESS_COM
19
20 #ifndef RME_PROCESS_COMMUNICATION_H_
21 #define RME_PROCESS_COMMUNICATION_H_
22
23 #include "wx/ipc.h"
24
25class RMEProcessConnection : public wxConnection {
26public:
27 RMEProcessConnection();
28 ~RMEProcessConnection();
29
30 bool OnExec(const wxString& topic, const wxString& fileName);
31};
32
33class RMEProcessServer : public wxServer {
34public:
35 RMEProcessServer();
36 ~RMEProcessServer();
37
38 wxConnectionBase* OnAcceptConnection(const wxString& topic);
39};
40
41class RMEProcessClient : public wxClient {
42 wxConnectionBase* proc;
43
44public:
45 RMEProcessClient();
46 ~RMEProcessClient();
47
48 wxConnectionBase* OnMakeConnection();
49};
50
51 #endif
52
53#endif
54
Top