2 * Copyright (C) 2015 Red Hat, Inc. (www.redhat.com)
4 * This library is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation.
8 * This library is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this library. If not, see <http://www.gnu.org/licenses/>.
18 #if !defined (__LIBEDATASERVERUI_H_INSIDE__) && !defined (LIBEDATASERVERUI_COMPILATION)
19 #error "Only <libedataserverui/libedataserverui.h> should be included directly."
22 #ifndef E_WEBDAV_DISCOVER_WIDGET_H
23 #define E_WEBDAV_DISCOVER_WIDGET_H
29 #include <libedataserver/libedataserver.h>
30 #include <libedataserverui/e-credentials-prompter.h>
34 GtkWidget
* e_webdav_discover_content_new (ECredentialsPrompter
*credentials_prompter
,
36 const gchar
*base_url
,
37 guint supports_filter
);
39 e_webdav_discover_content_get_tree_selection
41 gboolean e_webdav_discover_content_get_multiselect
43 void e_webdav_discover_content_set_multiselect
45 gboolean multiselect
);
46 const gchar
* e_webdav_discover_content_get_base_url (GtkWidget
*content
);
47 void e_webdav_discover_content_set_base_url (GtkWidget
*content
,
48 const gchar
*base_url
);
49 gboolean
e_webdav_discover_content_get_selected (GtkWidget
*content
,
53 gchar
**out_display_name
,
55 gchar
* e_webdav_discover_content_get_user_address
57 void e_webdav_discover_content_refresh (GtkWidget
*content
,
58 const gchar
*display_name
,
59 GCancellable
*cancellable
,
60 GAsyncReadyCallback callback
,
62 gboolean e_webdav_discover_content_refresh_finish
66 void e_webdav_discover_content_show_error (GtkWidget
*content
,
69 GtkDialog
* e_webdav_discover_dialog_new (GtkWindow
*parent
,
71 ECredentialsPrompter
*credentials_prompter
,
73 const gchar
*base_url
,
74 guint supports_filter
);
76 GtkWidget
* e_webdav_discover_dialog_get_content (GtkDialog
*dialog
);
77 void e_webdav_discover_dialog_refresh (GtkDialog
*dialog
);
81 #endif /* E_WEBDAV_DISCOVER_WIDGET_H */