]> git.meshlink.io Git - catta/blob - avahi-ui/avahi-ui.h
Commit first version of avahi-ui and zssh
[catta] / avahi-ui / avahi-ui.h
1 #ifndef fooavahiuihfoo
2 #define fooavahiuihfoo
3
4 /* $Id$ */
5
6 /***
7   This file is part of avahi.
8  
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.
13  
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.
18  
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
22   USA.
23 ***/
24
25 #include <gtk/gtkwidget.h>
26 #include <gtk/gtkdialog.h>
27
28 #include <avahi-client/client.h>
29
30 G_BEGIN_DECLS
31
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))
38
39 typedef struct _AuiServiceDialog AuiServiceDialog;
40 typedef struct _AuiServiceDialogClass  AuiServiceDialogClass;
41
42 struct _AuiServiceDialogClass {
43     GtkDialogClass parent_class;
44     
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);
50 };
51
52 /* ServiceDialog */
53 GType aui_service_dialog_get_type(void) G_GNUC_CONST;
54 GtkWidget* aui_service_dialog_new(const gchar *title);
55
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);
59
60 void aui_service_dialog_set_domain(AuiServiceDialog *d, const gchar *domain);
61 const gchar* aui_service_dialog_get_domain(AuiServiceDialog *d);
62
63 void aui_service_dialog_set_service_type(AuiServiceDialog *d, const gchar *name);
64 const gchar* aui_service_dialog_get_service_type(AuiServiceDialog *d);
65
66 void aui_service_dialog_set_service_name(AuiServiceDialog *d, const gchar *name);
67 const gchar* aui_service_dialog_get_service_name(AuiServiceDialog *d);
68
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);
73
74 void aui_service_dialog_set_resolve_service(AuiServiceDialog *d, gboolean resolve);
75 gboolean aui_service_dialog_get_resolve_service(AuiServiceDialog *d);
76
77 void aui_service_dialog_set_resolve_host_name(AuiServiceDialog *d, gboolean resolve);
78 gboolean aui_service_dialog_get_resolve_host_name(AuiServiceDialog *d);
79
80 void aui_service_dialog_set_address_family(AuiServiceDialog *d, AvahiProtocol proto);
81 AvahiProtocol aui_service_dialog_get_address_family(AuiServiceDialog *d);
82
83 G_END_DECLS
84
85 #endif
86
87