I#27 - [IMAPx] Ignore DavMail's CR/LF in BODYSTRUCTURE response
[evolution-data-server.git] / src / libedataserverui / e-webdav-discover-widget.h
blobe3240260b76ed713084e15a2e1348b9e3f499e3a
1 /*
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
11 * for more details.
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."
20 #endif
22 #ifndef E_WEBDAV_DISCOVER_WIDGET_H
23 #define E_WEBDAV_DISCOVER_WIDGET_H
25 #include <gio/gio.h>
27 #include <gtk/gtk.h>
29 #include <libedataserver/libedataserver.h>
30 #include <libedataserverui/e-credentials-prompter.h>
32 G_BEGIN_DECLS
34 GtkWidget * e_webdav_discover_content_new (ECredentialsPrompter *credentials_prompter,
35 ESource *source,
36 const gchar *base_url,
37 guint supports_filter);
38 GtkTreeSelection *
39 e_webdav_discover_content_get_tree_selection
40 (GtkWidget *content);
41 gboolean e_webdav_discover_content_get_multiselect
42 (GtkWidget *content);
43 void e_webdav_discover_content_set_multiselect
44 (GtkWidget *content,
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,
50 gint index,
51 gchar **out_href,
52 guint *out_supports,
53 gchar **out_display_name,
54 gchar **out_color);
55 gchar * e_webdav_discover_content_get_user_address
56 (GtkWidget *content);
57 void e_webdav_discover_content_refresh (GtkWidget *content,
58 const gchar *display_name,
59 GCancellable *cancellable,
60 GAsyncReadyCallback callback,
61 gpointer user_data);
62 gboolean e_webdav_discover_content_refresh_finish
63 (GtkWidget *content,
64 GAsyncResult *result,
65 GError **error);
66 void e_webdav_discover_content_show_error (GtkWidget *content,
67 const GError *error);
69 GtkDialog * e_webdav_discover_dialog_new (GtkWindow *parent,
70 const gchar *title,
71 ECredentialsPrompter *credentials_prompter,
72 ESource *source,
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);
79 G_END_DECLS
81 #endif /* E_WEBDAV_DISCOVER_WIDGET_H */