7 This file is part of avahi.
9 avahi is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Lesser General Public License as
11 published by the Free Software Foundation; either version 2.1 of the
12 License, or (at your option) any later version.
14 avahi is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
17 Public License for more details.
19 You should have received a copy of the GNU Lesser General Public
20 License along with avahi; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
25 #include <gtk/gtkwidget.h>
26 #include <gtk/gtkdialog.h>
28 #include <avahi-client/client.h>
32 #define AUI_TYPE_SERVICE_DIALOG (aui_service_dialog_get_type())
33 #define AUI_SERVICE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AUI_TYPE_SERVICE_DIALOG, AuiServiceDialog))
34 #define AUI_SERVICE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), AUI_TYPE_SERVICE_DIALOG, AuiServiceDialogClass))
35 #define AUI_IS_SERVICE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), AUI_TYPE_SERVICE_DIALOG))
36 #define AUI_IS_SERVICE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), AUI_TYPE_SERVICE_DIALOG))
37 #define AUI_SERVICE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), AUI_TYPE_SERVICE_DIALOG, AuiServiceDialogClass))
39 typedef struct _AuiServiceDialog AuiServiceDialog;
40 typedef struct _AuiServiceDialogClass AuiServiceDialogClass;
42 struct _AuiServiceDialogClass {
43 GtkDialogClass parent_class;
45 /* Padding for future expansion */
46 void (*_aui_reserved1)(void);
47 void (*_aui_reserved2)(void);
48 void (*_aui_reserved3)(void);
49 void (*_aui_reserved4)(void);
53 GType aui_service_dialog_get_type(void) G_GNUC_CONST;
54 GtkWidget* aui_service_dialog_new(const gchar *title);
56 void aui_service_dialog_set_browse_service_types(AuiServiceDialog *d, const gchar *type, ...) G_GNUC_NULL_TERMINATED;
57 void aui_service_dialog_set_browse_service_typesv(AuiServiceDialog *d, const gchar *const*type);
58 const gchar*const* aui_service_dialog_get_browse_service_types(AuiServiceDialog *d);
60 void aui_service_dialog_set_domain(AuiServiceDialog *d, const gchar *domain);
61 const gchar* aui_service_dialog_get_domain(AuiServiceDialog *d);
63 void aui_service_dialog_set_service_type(AuiServiceDialog *d, const gchar *name);
64 const gchar* aui_service_dialog_get_service_type(AuiServiceDialog *d);
66 void aui_service_dialog_set_service_name(AuiServiceDialog *d, const gchar *name);
67 const gchar* aui_service_dialog_get_service_name(AuiServiceDialog *d);
69 const AvahiAddress* aui_service_dialog_get_address(AuiServiceDialog *d);
70 guint16 aui_service_dialog_get_port(AuiServiceDialog *d);
71 const gchar* aui_service_dialog_get_host_name(AuiServiceDialog *d);
72 const AvahiStringList *aui_service_dialog_get_txt_data(AuiServiceDialog *d);
74 void aui_service_dialog_set_resolve_service(AuiServiceDialog *d, gboolean resolve);
75 gboolean aui_service_dialog_get_resolve_service(AuiServiceDialog *d);
77 void aui_service_dialog_set_resolve_host_name(AuiServiceDialog *d, gboolean resolve);
78 gboolean aui_service_dialog_get_resolve_host_name(AuiServiceDialog *d);
80 void aui_service_dialog_set_address_family(AuiServiceDialog *d, AvahiProtocol proto);
81 AvahiProtocol aui_service_dialog_get_address_family(AuiServiceDialog *d);