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>
35 #include <sys/types.h>
36 #include <sys/socket.h>
40 class FawkesNetworkClient;
49 Glib::ustring title =
"Select Service",
50 const char *service =
"_fawkes._tcp");
53 Glib::ustring title =
"Select Service",
54 const char *service =
"_fawkes._tcp");
59 Glib::ustring &ipaddr,
unsigned short int &port);
71 Gtk::Window &__parent;
72 Gtk::TreeView __treeview;
74 Gtk::Expander __expander;
75 Gtk::ScrolledWindow __scrollwin;
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.
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, Glib::ustring &ipaddr, unsigned short int &port)
Get selected service.