+bool MyConnection::OnStopAdvise(const wxString& topic, const wxString& item)
+{
+ wxLogMessage("OnStopAdvise(\"%s\",\"%s\")", topic, item);
+ wxLogMessage("Returning true");
+ m_advise.clear();
+ wxGetApp().GetFrame()->UpdateUI();
+ return true;
+}
+
+bool
+MyConnection::DoAdvise(const wxString& item,
+ const void *data,
+ size_t size,
+ wxIPCFormat format)
+{
+ Log("Advise", "", item, data, size, format);
+ return wxConnection::DoAdvise(item, data, size, format);
+}
+
+bool MyConnection::OnDisconnect()
+{
+ wxLogMessage("OnDisconnect()");
+ wxGetApp().GetFrame()->Disconnect();
+ return true;
+}