Use RIAA wrapper for wxSpinCtrl event disabling in wxGTK.
[wxWidgets.git] / include / wx / ipc.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/ipc.h
3 // Purpose: wrapper around different wxIPC classes implementations
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 15.04.02
7 // Copyright: (c) 2002 Vadim Zeitlin
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_IPC_H_
12 #define _WX_IPC_H_
13
14 // Set wxUSE_DDE_FOR_IPC to 1 to use DDE for IPC under Windows. If it is set to
15 // 0, or if the platform is not Windows, use TCP/IP for IPC implementation
16
17 #if !defined(wxUSE_DDE_FOR_IPC)
18 #ifdef __WINDOWS__
19 #define wxUSE_DDE_FOR_IPC 1
20 #else
21 #define wxUSE_DDE_FOR_IPC 0
22 #endif
23 #endif // !defined(wxUSE_DDE_FOR_IPC)
24
25 #if !defined(__WINDOWS__)
26 #undef wxUSE_DDE_FOR_IPC
27 #define wxUSE_DDE_FOR_IPC 0
28 #endif
29
30 #if wxUSE_DDE_FOR_IPC
31 #define wxConnection wxDDEConnection
32 #define wxServer wxDDEServer
33 #define wxClient wxDDEClient
34
35 #include "wx/dde.h"
36 #else // !wxUSE_DDE_FOR_IPC
37 #define wxConnection wxTCPConnection
38 #define wxServer wxTCPServer
39 #define wxClient wxTCPClient
40
41 #include "wx/sckipc.h"
42 #endif // wxUSE_DDE_FOR_IPC/!wxUSE_DDE_FOR_IPC
43
44 #endif // _WX_IPC_H_