avahi 0.6.30

avahi-ui/avahi-ui.h

Go to the documentation of this file.
00001 #ifndef fooavahiuihfoo
00002 #define fooavahiuihfoo
00003 
00004 /***
00005   This file is part of avahi.
00006 
00007   avahi is free software; you can redistribute it and/or modify it
00008   under the terms of the GNU Lesser General Public License as
00009   published by the Free Software Foundation; either version 2.1 of the
00010   License, or (at your option) any later version.
00011 
00012   avahi is distributed in the hope that it will be useful, but WITHOUT
00013   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
00014   or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
00015   Public License for more details.
00016 
00017   You should have received a copy of the GNU Lesser General Public
00018   License along with avahi; if not, write to the Free Software
00019   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00020   USA.
00021 ***/
00022 
00023 #include <gtk/gtk.h>
00024 
00025 #include <avahi-client/client.h>
00026 
00029 G_BEGIN_DECLS
00030 
00031 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00032 
00033 #define AUI_TYPE_SERVICE_DIALOG            (aui_service_dialog_get_type())
00034 #define AUI_SERVICE_DIALOG(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), AUI_TYPE_SERVICE_DIALOG, AuiServiceDialog))
00035 #define AUI_SERVICE_DIALOG_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass), AUI_TYPE_SERVICE_DIALOG, AuiServiceDialogClass))
00036 #define AUI_IS_SERVICE_DIALOG(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), AUI_TYPE_SERVICE_DIALOG))
00037 #define AUI_IS_SERVICE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), AUI_TYPE_SERVICE_DIALOG))
00038 #define AUI_SERVICE_DIALOG_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), AUI_TYPE_SERVICE_DIALOG, AuiServiceDialogClass))
00039 
00040 typedef struct _AuiServiceDialogPrivate AuiServiceDialogPrivate;
00041 typedef struct _AuiServiceDialogClass  AuiServiceDialogClass;
00042 
00043 struct _AuiServiceDialogClass {
00044     GtkDialogClass parent_class;
00045 
00046     /* Padding for future expansion */
00047     void (*_aui_reserved1)(void);
00048     void (*_aui_reserved2)(void);
00049     void (*_aui_reserved3)(void);
00050     void (*_aui_reserved4)(void);
00051 };
00052 
00053 struct _AuiServiceDialog {
00054     GtkDialog parent_instance;
00055     AuiServiceDialogPrivate *priv;
00056 };
00057 
00058 /* ServiceDialog */
00059 GType aui_service_dialog_get_type(void) G_GNUC_CONST;
00060 
00061 #endif
00062 
00064 typedef struct _AuiServiceDialog AuiServiceDialog;
00065 
00072 GtkWidget* aui_service_dialog_new(
00073         const gchar *title,
00074         GtkWindow *parent,
00075         const gchar *first_button_text, ...) G_GNUC_NULL_TERMINATED;
00076 
00078 GtkWidget *aui_service_dialog_new_valist(
00079         const gchar *title,
00080         GtkWindow *parent,
00081         const gchar *first_button_text,
00082         va_list varargs);
00090 void aui_service_dialog_set_browse_service_types(AuiServiceDialog *d, const gchar *type, ...) G_GNUC_NULL_TERMINATED;
00092 void aui_service_dialog_set_browse_service_typesv(AuiServiceDialog *d, const gchar *const*type);
00094 const gchar*const* aui_service_dialog_get_browse_service_types(AuiServiceDialog *d);
00096 void aui_service_dialog_set_service_type_name(AuiServiceDialog *d, const gchar *type, const gchar *name);
00097 
00103 void aui_service_dialog_set_domain(AuiServiceDialog *d, const gchar *domain);
00105 const gchar* aui_service_dialog_get_domain(AuiServiceDialog *d);
00106 
00112 void aui_service_dialog_set_service_type(AuiServiceDialog *d, const gchar *name);
00113 
00115 const gchar* aui_service_dialog_get_service_type(AuiServiceDialog *d);
00116 
00118 void aui_service_dialog_set_service_name(AuiServiceDialog *d, const gchar *name);
00119 
00121 const gchar* aui_service_dialog_get_service_name(AuiServiceDialog *d);
00122 
00128 const AvahiAddress* aui_service_dialog_get_address(AuiServiceDialog *d);
00129 
00131 guint16 aui_service_dialog_get_port(AuiServiceDialog *d);
00132 
00134 const gchar* aui_service_dialog_get_host_name(AuiServiceDialog *d);
00135 
00137 const AvahiStringList *aui_service_dialog_get_txt_data(AuiServiceDialog *d);
00138 
00149 void aui_service_dialog_set_resolve_service(AuiServiceDialog *d, gboolean resolve);
00150 
00152 gboolean aui_service_dialog_get_resolve_service(AuiServiceDialog *d);
00153 
00160 void aui_service_dialog_set_resolve_host_name(AuiServiceDialog *d, gboolean resolve);
00161 
00163 gboolean aui_service_dialog_get_resolve_host_name(AuiServiceDialog *d);
00164 
00172 void aui_service_dialog_set_address_family(AuiServiceDialog *d, AvahiProtocol proto);
00173 
00175 AvahiProtocol aui_service_dialog_get_address_family(AuiServiceDialog *d);
00176 
00179 G_END_DECLS
00180 
00181 #endif