From 63f1ba7ab140cada16c54ad9913a3f95ff565410 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 19 Feb 2001 23:38:53 +0000 Subject: New handy dandy function to ref and return the vfolder storage (will 2001-02-19 Jeffrey Stedfast * mail-vfolder.c (mail_vfolder_get_vfolder_storage): New handy dandy function to ref and return the vfolder storage (will probably be disavowed once I figure out how to get the vTrash folder to show up in the EvolutionLocalStorage). * main.c (main): Call vtrash_cleanup(). * mail-vtrash.c: New file. (vtrash_uri_to_folder): vtrash: URI handler (vtrash_create): Replacement async vtrash function for the old one in mail-ops.c (vtrash_cleanup): Cleanup code - unrefs the cached vtrash folders and free's the hashtable. * Makefile.am: Added mail-vtrash.[c,h]. * mail-tools.c (mail_tool_uri_to_folder): If we have a vtrash: URI, call the vtrash URI handler function rather than continuing on. Yes, I know this is a hack and it needs to be fixed. * mail-ops.c (mail_do_setup_trash): Removed. (mail_trash_get): Removed. * component-factory.c (owner_set_cb): Create the vTrash folder for the LocalStore here. * mail-local.c (get_folder_info): Implement. svn path=/trunk/; revision=8288 --- mail/mail-vtrash.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 mail/mail-vtrash.h (limited to 'mail/mail-vtrash.h') diff --git a/mail/mail-vtrash.h b/mail/mail-vtrash.h new file mode 100644 index 0000000000..a53269e236 --- /dev/null +++ b/mail/mail-vtrash.h @@ -0,0 +1,46 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * Authors: Jeffrey Stedfast + * + * Copyright 2001 Ximian, Inc. (www.ximian.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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 Street #330, Boston, MA 02111-1307, USA. + * + */ + +#ifndef MAIL_VTRASH_H +#define MAIL_VTRASH_H + +#include +#include + +#ifdef __cplusplus +extern "C" { +#pragma } +#endif /* __cplusplus */ + +CamelFolder *vtrash_uri_to_folder (const char *uri, CamelException *ex); + +int vtrash_create (const char *store_uri, + void (*done) (char *store_uri, CamelFolder *folder, void *data), + void *data); + +void vtrash_cleanup (void); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* MAIL_VTRASH_H */ -- cgit v1.2.3