25 #ifndef __LIBS_GUI_UTILS_SERVICE_SELECTOR_CBE_H_
26 #define __LIBS_GUI_UTILS_SERVICE_SELECTOR_CBE_H_
28 #include <netcomm/fawkes/client_handler.h>
32 # include <libglademm/xml.h>
40 class FawkesNetworkClient;
42 class ConnectionDispatcher;
47 #if GTK_VERSION_GE(3,0)
51 const char* service =
"_fawkes._tcp" );
53 Gtk::ToolButton* connect,
55 const char* service =
"_fawkes._tcp" );
60 const char* service =
"_fawkes._tcp" );
62 Gtk::ToolButton* connect,
64 const char* service =
"_fawkes._tcp" );
67 const char* cbe_name =
"cbeServices",
68 const char* btn_name =
"btnConnect",
69 const char* wnd_name =
"wndMain",
70 const char* service =
"_fawkes._tcp" );
74 Glib::ustring get_hostname();
75 Glib::ustring get_name();
76 unsigned int get_port();
78 sigc::signal<void> signal_connected();
79 sigc::signal<void> signal_disconnected();
83 void on_btn_connect_clicked();
84 void on_service_selected();
86 void on_disconnected();
89 #if GTK_VERSION_GE(3,0)
90 Gtk::ComboBox *m_cbe_services;
102 Glib::ustring __hostname;
103 Glib::ustring __servicename;
104 unsigned short __port;