Debian Codegraph @

src/EWS/evolution/e-ews-config-utils.h

raw
1 /*
2 * SPDX-FileCopyrightText: (C) 2012 Red Hat, Inc. (www.redhat.com)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6 #ifndef E_EWS_CONFIG_UTILS_H
7 #define E_EWS_CONFIG_UTILS_H
8
9 #include <gtk/gtk.h>
10
11 #include <shell/e-shell-view.h>
12
13 #include "common/e-ews-connection.h"
14 #include "camel/camel-ews-store.h"
15
16 typedef void (* EEwsSetupFunc) (GObject *with_object,
17 gpointer user_data,
18 GCancellable *cancellable,
19 GError **perror);
20
21 void e_ews_config_utils_run_in_thread_with_feedback (GtkWindow *parent,
22 GObject *with_object,
23 const gchar *description,
24 EEwsSetupFunc thread_func,
25 EEwsSetupFunc idle_func,
26 gpointer user_data,
27 GDestroyNotify free_user_data);
28
29 void e_ews_config_utils_run_in_thread_with_feedback_modal (GtkWindow *parent,
30 GObject *with_object,
31 const gchar *description,
32 EEwsSetupFunc thread_func,
33 EEwsSetupFunc idle_func,
34 gpointer user_data,
35 GDestroyNotify free_user_data);
36
37 void e_ews_config_utils_run_in_thread (GObject *with_object,
38 EEwsSetupFunc thread_func,
39 EEwsSetupFunc idle_func,
40 gpointer user_data,
41 GDestroyNotify free_user_data,
42 GCancellable *cancellable);
43
44 typedef ESourceAuthenticationResult
45 (* EEwsConfigUtilTryCredentialsFunc) (EEwsConnection *cnc,
46 const ENamedParameters *credentials,
47 gpointer user_data,
48 GCancellable *cancellable,
49 GError **error);
50
51 EEwsConnection * e_ews_config_utils_open_connection_for (ESource *source,
52 CamelEwsSettings *ews_settings,
53 const gchar *connect_url,
54 EEwsConfigUtilTryCredentialsFunc try_credentials_func,
55 gpointer user_data,
56 GCancellable *cancellable,
57 GError **perror);
58
59 void e_ews_config_utils_init_ui (EShellView *shell_view,
60 const gchar *ui_manager_id);
61
62 gboolean e_ews_config_utils_is_online (void);
63
64 GtkWindow * e_ews_config_utils_get_widget_toplevel_window (GtkWidget *widget);
65
66 void e_ews_config_utils_unref_in_thread (GObject *object);
67
68 void e_ews_config_utils_run_folder_sizes_dialog (GtkWindow *parent,
69 ESourceRegistry *registry,
70 ESource *source,
71 CamelEwsStore *ews_store);
72
73
74 #endif /* E_EWS_CONFIG_UTILS */