Bug 792688 - Failed mail print operation causes crash
[evolution.git] / src / libemail-engine / e-mail-store-utils.h
bloba19815c6a00d6af4d59ef4d04c728b7e4d6235fb
1 /*
2 * e-mail-store-utils.h
4 * This program 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 program 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 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 program; if not, see <http://www.gnu.org/licenses/>.
18 #if !defined (__LIBEMAIL_ENGINE_H_INSIDE__) && !defined (LIBEMAIL_ENGINE_COMPILATION)
19 #error "Only <libemail-engine/libemail-engine.h> should be included directly."
20 #endif
22 #ifndef E_MAIL_STORE_UTILS_H
23 #define E_MAIL_STORE_UTILS_H
25 /* CamelStore wrappers with Evolution-specific policies. */
27 #include <camel/camel.h>
29 G_BEGIN_DECLS
31 gboolean e_mail_store_create_folder_sync (CamelStore *store,
32 const gchar *full_name,
33 GCancellable *cancellable,
34 GError **error);
35 void e_mail_store_create_folder (CamelStore *store,
36 const gchar *full_name,
37 gint io_priority,
38 GCancellable *cancellable,
39 GAsyncReadyCallback callback,
40 gpointer user_data);
41 gboolean e_mail_store_create_folder_finish
42 (CamelStore *store,
43 GAsyncResult *result,
44 GError **error);
46 gboolean e_mail_store_go_offline_sync (CamelStore *store,
47 GCancellable *cancellable,
48 GError **error);
49 void e_mail_store_go_offline (CamelStore *store,
50 gint io_priority,
51 GCancellable *cancellable,
52 GAsyncReadyCallback callback,
53 gpointer user_data);
54 gboolean e_mail_store_go_offline_finish (CamelStore *store,
55 GAsyncResult *result,
56 GError **error);
58 gboolean e_mail_store_go_online_sync (CamelStore *store,
59 GCancellable *cancellable,
60 GError **error);
61 void e_mail_store_go_online (CamelStore *store,
62 gint io_priority,
63 GCancellable *cancellable,
64 GAsyncReadyCallback callback,
65 gpointer user_data);
66 gboolean e_mail_store_go_online_finish (CamelStore *store,
67 GAsyncResult *result,
68 GError **error);
70 void e_mail_store_prepare_for_offline
71 (CamelStore *store,
72 gint io_priority,
73 GCancellable *cancellable,
74 GAsyncReadyCallback callback,
75 gpointer user_data);
76 gboolean e_mail_store_prepare_for_offline_finish
77 (CamelStore *store,
78 GAsyncResult *result,
79 GError **error);
81 gboolean e_mail_store_save_initial_setup_sync
82 (CamelStore *store,
83 GHashTable *save_setup,
84 ESource *collection_source,
85 ESource *account_source,
86 ESource *submission_source,
87 ESource *transport_source,
88 gboolean write_sources,
89 GCancellable *cancellable,
90 GError **error);
92 G_END_DECLS
94 #endif /* E_MAIL_STORE_UTILS_H */