1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /* mail-folder-cache.h: Stores information about open folders */ |
---|
3 | |
---|
4 | /* |
---|
5 | * Authors: Peter Williams <peterw@ximian.com> |
---|
6 | * Michael Zucchi <notzed@ximian.com> |
---|
7 | * |
---|
8 | * Copyright 2000,2001 Ximian, Inc. (www.ximian.com) |
---|
9 | * |
---|
10 | * This program is free software; you can redistribute it and/or |
---|
11 | * modify it under the terms of version 2 of the GNU General Public |
---|
12 | * License as published by the Free Software Foundation. |
---|
13 | * |
---|
14 | * This program is distributed in the hope that it will be useful, |
---|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
17 | * GNU General Public License for more details. |
---|
18 | * |
---|
19 | * You should have received a copy of the GNU General Public License |
---|
20 | * along with this program; if not, write to the Free Software |
---|
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
---|
22 | * USA |
---|
23 | */ |
---|
24 | |
---|
25 | #ifndef _MAIL_FOLDER_CACHE_H |
---|
26 | #define _MAIL_FOLDER_CACHE_H |
---|
27 | |
---|
28 | #include <shell/evolution-storage.h> |
---|
29 | |
---|
30 | /* Add a store whose folders should appear in the shell |
---|
31 | The folders are scanned from the store, and/or added at |
---|
32 | runtime via the folder_created event */ |
---|
33 | void |
---|
34 | mail_note_store(CamelStore *store, EvolutionStorage *storage, GNOME_Evolution_Storage corba_storage, |
---|
35 | void (*done)(CamelStore *store, CamelFolderInfo *info, void *data), void *data); |
---|
36 | |
---|
37 | /* de-note a store */ |
---|
38 | void mail_note_store_remove(CamelStore *store); |
---|
39 | |
---|
40 | /* When a folder has been opened, notify it for watching. |
---|
41 | The folder must have already been created on the store (which has already been noted) |
---|
42 | before the folder can be opened |
---|
43 | */ |
---|
44 | void mail_note_folder(struct _CamelFolder *folder); |
---|
45 | |
---|
46 | /* Returns true if a folder is available (yet), and also sets *folderp (if supplied) |
---|
47 | to a (referenced) copy of the folder if it has already been opened */ |
---|
48 | int mail_note_get_folder_from_uri(const char *uri, CamelFolder **folderp); |
---|
49 | |
---|
50 | #endif |
---|