summaryrefslogtreecommitdiff
path: root/Bus
diff options
context:
space:
mode:
Diffstat (limited to 'Bus')
-rw-r--r--Bus/IvyProbe/IvyProbeDlg.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/Bus/IvyProbe/IvyProbeDlg.cpp b/Bus/IvyProbe/IvyProbeDlg.cpp
index 997ae6f..3d0e7b2 100644
--- a/Bus/IvyProbe/IvyProbeDlg.cpp
+++ b/Bus/IvyProbe/IvyProbeDlg.cpp
@@ -157,6 +157,7 @@ BOOL CIvyProbeDlg::OnInitDialog()
m_busnumber = cmd.m_busNumber;
bus = new Ivy( "IvyProbe Windows","IvyProbe Windows Ready",this,FALSE);
+ bus->SetBindCallback( this );
// bus->BindMsg("(.*)", BUS_CALLBACK_OF(CTestDlg, IvyCallback ));
@@ -203,7 +204,7 @@ void CIvyProbeDlg::OnStart()
UpdateData(FALSE);
}
-void CIvyProbeDlg::IvyCallback(IvyApplication *app, int argc, const char **argv)
+void CIvyProbeDlg::OnMessage(IvyApplication *app, int argc, const char **argv)
{
int i;
CString text;
@@ -233,6 +234,20 @@ void CIvyProbeDlg::OnApplicationDisconnected(IvyApplication *app)
{
WriteMessage( "Application: %s bye",(LPCSTR)(app->GetName()) );
}
+
+void CIvyProbeDlg::OnAddBind (IvyApplication *app, int id, const char * regexp)
+{
+ WriteMessage( "Application: %s Add Binding %s",(LPCSTR)(app->GetName()), regexp );
+}
+void CIvyProbeDlg::OnRemoveBind (IvyApplication *app, int id, const char * regexp)
+{
+ WriteMessage( "Application: %s Remove Binding %s",(LPCSTR)(app->GetName()), regexp );
+}
+void CIvyProbeDlg::OnFilterBind (IvyApplication *app, int id, const char * regexp)
+{
+ WriteMessage( "Application: %s Filtered Binding %s",(LPCSTR)(app->GetName()), regexp );
+}
+
void CIvyProbeDlg::WriteMessage(const char *format, ...)
{
char str[4096];
@@ -280,7 +295,7 @@ void CIvyProbeDlg::OnBind()
m_expr.SetEditSel( 0, -1 );
m_expr.GetWindowText( buffer );
if ( buffer.IsEmpty() ) return;
- int count = bus->BindMsg( CONVSTR(buffer) , BUS_CALLBACK_OF(CIvyProbeDlg, IvyCallback ));
+ int count = bus->BindMsg( CONVSTR(buffer) , this );
if ( m_expr.FindStringExact(-1, buffer) == CB_ERR )
{
m_expr.AddString( buffer );