31 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33 #define AUI_TYPE_SERVICE_DIALOG (aui_service_dialog_get_type())
34 #define AUI_SERVICE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AUI_TYPE_SERVICE_DIALOG, AuiServiceDialog))
35 #define AUI_SERVICE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), AUI_TYPE_SERVICE_DIALOG, AuiServiceDialogClass))
36 #define AUI_IS_SERVICE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), AUI_TYPE_SERVICE_DIALOG))
37 #define AUI_IS_SERVICE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), AUI_TYPE_SERVICE_DIALOG))
38 #define AUI_SERVICE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), AUI_TYPE_SERVICE_DIALOG, AuiServiceDialogClass))
40 typedef struct _AuiServiceDialogPrivate AuiServiceDialogPrivate;
41 typedef struct _AuiServiceDialogClass AuiServiceDialogClass;
43 struct _AuiServiceDialogClass {
44 GtkDialogClass parent_class;
47 void (*_aui_reserved1)(void);
48 void (*_aui_reserved2)(void);
49 void (*_aui_reserved3)(void);
50 void (*_aui_reserved4)(void);
53 struct _AuiServiceDialog {
54 GtkDialog parent_instance;
55 AuiServiceDialogPrivate *priv;
59 GType aui_service_dialog_get_type(
void) G_GNUC_CONST;
75 const gchar *first_button_text, ...) G_GNUC_NULL_TERMINATED;
78 GtkWidget *aui_service_dialog_new_valist(
81 const gchar *first_button_text,
void aui_service_dialog_set_service_type_name(AuiServiceDialog *d, const gchar *type, const gchar *name)
Overwrite the pretty name shown in the service type column.
void aui_service_dialog_set_resolve_host_name(AuiServiceDialog *d, gboolean resolve)
Disable/Enable automatic host name resolving.
void aui_service_dialog_set_address_family(AuiServiceDialog *d, AvahiProtocol proto)
Select the address family to look for services of.
Protocol (address family) independent address structure.
AvahiProtocol aui_service_dialog_get_address_family(AuiServiceDialog *d)
Query the address family we're looking for.
int AvahiProtocol
Protocol family specification, takes the values AVAHI_PROTO_INET, AVAHI_PROTO_INET6, AVAHI_PROTO_UNSPEC.
void aui_service_dialog_set_browse_service_types(AuiServiceDialog *d, const gchar *type,...) G_GNUC_NULL_TERMINATED
Select the service types to browse for.
GtkWidget * aui_service_dialog_new(const gchar *title, GtkWindow *parent, const gchar *first_button_text,...) G_GNUC_NULL_TERMINATED
Create a new service browser dialog with the specific title, parent window and the speicified buttons...
void aui_service_dialog_set_service_type(AuiServiceDialog *d, const gchar *name)
Set the service type for the service to select.
const gchar * aui_service_dialog_get_domain(AuiServiceDialog *d)
Query the domain that is browsed in.
const AvahiAddress * aui_service_dialog_get_address(AuiServiceDialog *d)
Return the IP address of the selected service.
const gchar * aui_service_dialog_get_host_name(AuiServiceDialog *d)
Return the host name of the selected service.
Linked list of strings that can contain any number of binary characters, including NUL bytes...
void aui_service_dialog_set_service_name(AuiServiceDialog *d, const gchar *name)
Set the service name for the service to select.
const gchar * aui_service_dialog_get_service_name(AuiServiceDialog *d)
Query the service name of the currently select service.
void aui_service_dialog_set_domain(AuiServiceDialog *d, const gchar *domain)
Set the domain to browse in.
gboolean aui_service_dialog_get_resolve_host_name(AuiServiceDialog *d)
Query the last status of aui_service_dialog_set_resolve_host_name()
typedefG_BEGIN_DECLS struct _AuiServiceDialog AuiServiceDialog
The GTK service dialog structure.
void aui_service_dialog_set_browse_service_typesv(AuiServiceDialog *d, const gchar *const *type)
Same as aui_service_dialog_set_browse_service_types() but take a NULL terminated array.
const gchar *const * aui_service_dialog_get_browse_service_types(AuiServiceDialog *d)
Return the service types currently browsed for.
guint16 aui_service_dialog_get_port(AuiServiceDialog *d)
Return the IP port number of the selected service.
void aui_service_dialog_set_resolve_service(AuiServiceDialog *d, gboolean resolve)
Disable/Enable automatic service resolving.
Definitions and functions for the client API over D-Bus.
const gchar * aui_service_dialog_get_service_type(AuiServiceDialog *d)
Query the service type of the currently selected service.
const AvahiStringList * aui_service_dialog_get_txt_data(AuiServiceDialog *d)
Return the TXT metadata of the selected service.
gboolean aui_service_dialog_get_resolve_service(AuiServiceDialog *d)
Query the last status of aui_service_dialog_set_resolve_service()