fix overriding OnPoke() too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
587b4c84fb
commit
bcb6619fbe
@ -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
|
||||
|
@ -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:
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user