From 4c65eab5b1429f35b7dcd17c417cc4206989786a Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Tue, 14 May 2002 21:34:59 +0000 Subject: Call e_shell_offline_sync_all_folders() if no connection is reported here. * e-shell-offline-handler.c (e_shell_offline_handler_put_components_offline): Call e_shell_offline_sync_all_folders() if no connection is reported here. (dialog_handle_ok): Sync all the folders here through e_shell_offline_sync_all_folders(). * e-shell-offline-sync.c: New. * e-shell-offline-sync.h: New. * Evolution-Offline.idl (syncFolder): Make oneway. (cancelSyncFolder): Likewise. (SyncFolderProgressListener::reportSuccess): New method. svn path=/trunk/; revision=16792 --- shell/e-shell-offline-sync.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 shell/e-shell-offline-sync.h (limited to 'shell/e-shell-offline-sync.h') diff --git a/shell/e-shell-offline-sync.h b/shell/e-shell-offline-sync.h new file mode 100644 index 0000000000..f214938585 --- /dev/null +++ b/shell/e-shell-offline-sync.h @@ -0,0 +1,33 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/* e-shell-offline-sync.h - Sync folders before going into Offline mode. + * + * Copyright (C) 2002 Ximian, Inc. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of version 2 of the GNU General Public + * License as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Ettore Perazzoli + */ + +#ifndef E_SHELL_OFFLINE_SYNC_H +#define E_SHELL_OFFLINE_SYNC_H + +#include "e-shell.h" + +#include + +void e_shell_offline_sync_all_folders (EShell *shell, + GtkWindow *widget); + +#endif /* E_SHELL_OFFLINE_SYNC_H */ -- cgit v1.2.3