22 #include "eclipse_debugger.h" 24 #include <blackboard/remote.h> 25 #include <gui_utils/interface_dispatcher.h> 26 #include <gui_utils/logview.h> 27 #include <gui_utils/service_chooser_dialog.h> 28 #include <netcomm/fawkes/client.h> 29 #include <utils/system/argparser.h> 53 connection_dispatcher.signal_connected().connect(
54 sigc::mem_fun(*
this, &EclipseDebugger::on_connect));
55 connection_dispatcher.signal_disconnected().connect(
56 sigc::mem_fun(*
this, &EclipseDebugger::on_disconnect));
58 establish_connection();
67 EclipseDebugger::establish_connection()
69 if (!connection_dispatcher.get_client()->connected()) {
73 connection_dispatcher.get_client()->disconnect();
79 EclipseDebugger::on_connect()
87 debugger_if_->msgq_enqueue(cm);
90 char * host = debugger_if_->host();
91 unsigned int port = debugger_if_->port();
92 std::stringstream portstr;
94 execlp(
"tktools-clp",
"tktools-clp",
"-h", host,
"-p", portstr.str().c_str(), (
char *)0);
98 Glib::ustring message = *(e.
begin());
99 Gtk::MessageDialog md(*
this,
105 md.set_title(
"BlackBoard connection failed");
109 connection_dispatcher.get_client()->disconnect();
115 EclipseDebugger::on_disconnect()
121 EclipseDebugger::close_bb()
Fawkes library namespace.
EclipseDebugger(BaseObjectType *cobject, const Glib::RefPtr< Gtk::Builder > &builder)
Constructor.
Base class for exceptions in Fawkes.
EclipseDebuggerInterface Fawkes BlackBoard Interface.
void run_and_connect()
Run dialog and try to connect.
iterator begin()
Get iterator for messages.
ConnectionMessage Fawkes BlackBoard Interface Message.
~EclipseDebugger()
Destructor.
virtual Interface * open_for_reading(const char *interface_type, const char *identifier, const char *owner=NULL)
Open interface for reading.