1 /* 2 * 3 * This program is free software; you can redistribute it and/or modify it 4 * under the terms of the GNU Lesser General Public License as published by 5 * the Free Software Foundation. 6 * 7 * This program is distributed in the hope that it will be useful, but 8 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 9 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 10 * for more details. 11 * 12 * You should have received a copy of the GNU Lesser General Public License 13 * along with this program; if not, see <http://www.gnu.org/licenses/>. 14 * 15 * 16 * Authors: 17 * Michael Zucchi <notzed@ximian.com> 18 * 19 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) 20 * 21 */ 22 23 #ifndef __EM_FOLDER_PROPERTIES_H__ 24 #define __EM_FOLDER_PROPERTIES_H__ 25 26 #include <camel/camel.h> 27 #include <e-util/e-util.h> 28 #include <mail/e-mail-backend.h> 29 30 G_BEGIN_DECLS 31 32 void em_folder_properties_show (CamelStore *store, 33 const gchar *folder_name, 34 EAlertSink *alert_sink, 35 GtkWindow *parent_window); 36 37 typedef enum { 38 E_AUTO_ARCHIVE_CONFIG_UNKNOWN, 39 E_AUTO_ARCHIVE_CONFIG_MOVE_TO_ARCHIVE, 40 E_AUTO_ARCHIVE_CONFIG_MOVE_TO_CUSTOM, 41 E_AUTO_ARCHIVE_CONFIG_DELETE 42 } EAutoArchiveConfig; 43 44 typedef enum { 45 E_AUTO_ARCHIVE_UNIT_UNKNOWN, 46 E_AUTO_ARCHIVE_UNIT_DAYS, 47 E_AUTO_ARCHIVE_UNIT_WEEKS, 48 E_AUTO_ARCHIVE_UNIT_MONTHS 49 } EAutoArchiveUnit; 50 51 gboolean em_folder_properties_autoarchive_get 52 (EMailBackend *mail_backend, 53 const gchar *folder_uri, 54 gboolean *enabled, 55 EAutoArchiveConfig *config, 56 gint *n_units, 57 EAutoArchiveUnit *unit, 58 gchar **custom_target_folder_uri); 59 60 void em_folder_properties_autoarchive_set 61 (EMailBackend *mail_backend, 62 const gchar *folder_uri, 63 gboolean enabled, 64 EAutoArchiveConfig config, 65 gint n_units, 66 EAutoArchiveUnit unit, 67 const gchar *custom_target_folder_uri); 68 69 G_END_DECLS 70 71 #endif /* __EM_FOLDER_PROPERTIES_H__ */ 72