X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4b89c618454fad682c484e86310008f583b9ab55..460354e939bc52de1b5a749b6d88d6ef21f5827b:/samples/ipc/server.h?ds=sidebyside diff --git a/samples/ipc/server.h b/samples/ipc/server.h index 03b358b1f4..6f65c463ba 100644 --- a/samples/ipc/server.h +++ b/samples/ipc/server.h @@ -30,6 +30,7 @@ public: MyFrame(wxFrame *frame, const wxString& title); void OnListBoxClick(wxCommandEvent& event); + void OnExit(wxCommandEvent& event); private: wxPanel *panel; @@ -41,15 +42,14 @@ class IPCDialogBox; class MyConnection : public wxConnection { public: - MyConnection(char *buf, int size); + MyConnection(); ~MyConnection(); - bool OnExecute(const wxString& topic, char *data, int size, wxIPCFormat format); - char *OnRequest(const wxString& topic, const wxString& item, int *size, wxIPCFormat format); - bool OnPoke(const wxString& topic, const wxString& item, char *data, int size, wxIPCFormat format); + bool OnExecute(const wxString& topic, wxChar *data, int size, wxIPCFormat format); + wxChar *OnRequest(const wxString& topic, const wxString& item, int *size, wxIPCFormat format); + bool OnPoke(const wxString& topic, const wxString& item, wxChar *data, int size, wxIPCFormat format); bool OnStartAdvise(const wxString& topic, const wxString& item); -private: IPCDialogBox *dialog; }; @@ -67,15 +67,15 @@ public: const wxPoint& pos, const wxSize& size, MyConnection *the_connection); + ~IPCDialogBox( ); void OnQuit(wxCommandEvent& event); -private: MyConnection *m_connection; DECLARE_EVENT_TABLE() }; -#define SERVER_QUIT wxID_EXIT +#define SERVER_EXIT wxID_EXIT #define SERVER_LISTBOX 500 #define SERVER_QUIT_BUTTON 501