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:
@@ -436,10 +436,12 @@ bool hvConnection::OnExec(const wxString& WXUNUSED(topic),
|
|||||||
|
|
||||||
bool hvConnection::OnPoke(const wxString& WXUNUSED(topic),
|
bool hvConnection::OnPoke(const wxString& WXUNUSED(topic),
|
||||||
const wxString& item,
|
const wxString& item,
|
||||||
wxChar *data,
|
const void *buf,
|
||||||
int WXUNUSED(size),
|
size_t size,
|
||||||
wxIPCFormat WXUNUSED(format))
|
wxIPCFormat format)
|
||||||
{
|
{
|
||||||
|
const wxString data = GetTextFromData(buf, size, format);
|
||||||
|
|
||||||
// wxLogStatus("Poke command: %s = %s", item.c_str(), data);
|
// wxLogStatus("Poke command: %s = %s", item.c_str(), data);
|
||||||
//topic is not tested
|
//topic is not tested
|
||||||
|
|
||||||
@@ -486,18 +488,4 @@ bool hvConnection::OnPoke(const wxString& WXUNUSED(topic),
|
|||||||
return true;
|
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
|
#endif // #if wxUSE_IPC
|
||||||
|
@@ -68,9 +68,8 @@ public:
|
|||||||
virtual ~hvConnection();
|
virtual ~hvConnection();
|
||||||
|
|
||||||
bool OnExec(const wxString& topic, const wxString& data);
|
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,
|
||||||
bool OnPoke(const wxString& topic, const wxString& item, wxChar *data, int size, wxIPCFormat format);
|
const void *data, size_t size, wxIPCFormat format);
|
||||||
bool OnStartAdvise(const wxString& topic, const wxString& item);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user