1 /* 2 * e-autosave-utils.h 3 * 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. 7 * 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. 12 * 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/>. 15 * 16 */ 17 18 #ifndef E_AUTOSAVE_UTILS_H 19 #define E_AUTOSAVE_UTILS_H 20 21 #include <shell/e-shell.h> 22 #include <composer/e-msg-composer.h> 23 24 G_BEGIN_DECLS 25 26 GList * e_composer_find_orphans (GQueue *registry, 27 GError **error); 28 void e_composer_load_snapshot (EShell *shell, 29 GFile *snapshot_file, 30 GCancellable *cancellable, 31 GAsyncReadyCallback callback, 32 gpointer user_data); 33 EMsgComposer * e_composer_load_snapshot_finish (EShell *shell, 34 GAsyncResult *result, 35 GError **error); 36 void e_composer_save_snapshot (EMsgComposer *composer, 37 GCancellable *cancellable, 38 GAsyncReadyCallback callback, 39 gpointer user_data); 40 gboolean e_composer_save_snapshot_finish (EMsgComposer *composer, 41 GAsyncResult *result, 42 GError **error); 43 GFile * e_composer_get_snapshot_file (EMsgComposer *composer); 44 void e_composer_prevent_snapshot_file_delete 45 (EMsgComposer *composer); 46 void e_composer_allow_snapshot_file_delete 47 (EMsgComposer *composer); 48 49 G_END_DECLS 50 51 #endif /* E_AUTOSAVE_UTILS_H */ 52