From bcb6619fbe01bca83d0c0d5f36fddc4b2fbe50d3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 3 Jul 2009 12:46:19 +0000 Subject: [PATCH 1/1] fix overriding OnPoke() too git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/helpview/src/helpview.cpp | 22 +++++----------------- utils/helpview/src/helpview.h | 5 ++--- 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/utils/helpview/src/helpview.cpp b/utils/helpview/src/helpview.cpp index 64db2d8d52..bbb44a061d 100644 --- a/utils/helpview/src/helpview.cpp +++ b/utils/helpview/src/helpview.cpp @@ -436,10 +436,12 @@ bool hvConnection::OnExec(const wxString& WXUNUSED(topic), bool hvConnection::OnPoke(const wxString& WXUNUSED(topic), const wxString& item, - wxChar *data, - int WXUNUSED(size), - wxIPCFormat WXUNUSED(format)) + const void *buf, + size_t size, + wxIPCFormat format) { + const wxString data = GetTextFromData(buf, size, format); + // wxLogStatus("Poke command: %s = %s", item.c_str(), data); //topic is not tested @@ -486,18 +488,4 @@ bool hvConnection::OnPoke(const wxString& WXUNUSED(topic), return true; } -wxChar *hvConnection::OnRequest(const wxString& WXUNUSED(topic), - const wxString& WXUNUSED(item), - int * WXUNUSED(size), - wxIPCFormat WXUNUSED(format)) -{ - return NULL; -} - -bool hvConnection::OnStartAdvise(const wxString& WXUNUSED(topic), - const wxString& WXUNUSED(item)) -{ - return true; -} - #endif // #if wxUSE_IPC diff --git a/utils/helpview/src/helpview.h b/utils/helpview/src/helpview.h index 2c789b0fdb..2d020e78cb 100644 --- a/utils/helpview/src/helpview.h +++ b/utils/helpview/src/helpview.h @@ -68,9 +68,8 @@ public: virtual ~hvConnection(); bool OnExec(const wxString& topic, const wxString& data); - 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); + bool OnPoke(const wxString& topic, const wxString& item, + const void *data, size_t size, wxIPCFormat format); private: }; -- 2.45.2