24 #ifndef __LIBS_GUI_UTILS_SERVICE_CHOOSER_DIALOG_H_ 25 #define __LIBS_GUI_UTILS_SERVICE_CHOOSER_DIALOG_H_ 27 #include <gui_utils/service_model.h> 29 #include <gtkmm/dialog.h> 30 #include <gtkmm/treeview.h> 31 #include <gtkmm/entry.h> 32 #include <gtkmm/expander.h> 33 #include <gtkmm/scrolledwindow.h> 38 #include <sys/types.h> 39 #include <sys/socket.h> 43 class FawkesNetworkClient;
52 Glib::ustring title =
"Select Service",
53 const char *service =
"_fawkes._tcp");
56 Glib::ustring title =
"Select Service",
57 const char *service =
"_fawkes._tcp");
62 unsigned short int &port);
76 Gtk::Window &__parent;
77 Gtk::TreeView __treeview;
79 Gtk::Expander __expander;
80 Gtk::ScrolledWindow __scrollwin;
82 Glib::RefPtr<Gnome::Conf::Client> __gconf;
Abstract base class for widgets that allow to view the detected services of a certain type...
virtual void on_expander_changed()
Signal handler for expander event.
Simple Fawkes network client.
Fawkes library namespace.
ServiceChooserDialog(Gtk::Window &parent, FawkesNetworkClient *client, Glib::ustring title="Select Service", const char *service="_fawkes._tcp")
Constructor.
void run_and_connect()
Run dialog and try to connect.
void get_raw_address(struct sockaddr *addr, socklen_t addr_size)
Get raw address.
virtual ~ServiceChooserDialog()
Destructor.
void get_selected_service(Glib::ustring &name, Glib::ustring &hostname, unsigned short int &port)
Get selected service.