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
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."
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>
31 gboolean
e_mail_store_create_folder_sync (CamelStore
*store
,
32 const gchar
*full_name
,
33 GCancellable
*cancellable
,
35 void e_mail_store_create_folder (CamelStore
*store
,
36 const gchar
*full_name
,
38 GCancellable
*cancellable
,
39 GAsyncReadyCallback callback
,
41 gboolean e_mail_store_create_folder_finish
46 gboolean
e_mail_store_go_offline_sync (CamelStore
*store
,
47 GCancellable
*cancellable
,
49 void e_mail_store_go_offline (CamelStore
*store
,
51 GCancellable
*cancellable
,
52 GAsyncReadyCallback callback
,
54 gboolean
e_mail_store_go_offline_finish (CamelStore
*store
,
58 gboolean
e_mail_store_go_online_sync (CamelStore
*store
,
59 GCancellable
*cancellable
,
61 void e_mail_store_go_online (CamelStore
*store
,
63 GCancellable
*cancellable
,
64 GAsyncReadyCallback callback
,
66 gboolean
e_mail_store_go_online_finish (CamelStore
*store
,
70 void e_mail_store_prepare_for_offline
73 GCancellable
*cancellable
,
74 GAsyncReadyCallback callback
,
76 gboolean e_mail_store_prepare_for_offline_finish
81 gboolean e_mail_store_save_initial_setup_sync
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
,
94 #endif /* E_MAIL_STORE_UTILS_H */