Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / providers / local / camel-spool-folder.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
2  *
3  * Author: Michael Zucchi <notzed@ximian.com>
4  *
5  * Copyright (C) 2001 Ximian Inc (www.ximian.com/)
6  *
7  * This program is free software; you can redistribute it and/or 
8  * modify it under the terms of version 2 of the GNU Lesser General Public 
9  * License as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19  * USA
20  */
21
22 #ifndef CAMEL_SPOOL_FOLDER_H
23 #define CAMEL_SPOOL_FOLDER_H 1
24
25 #include "camel-mbox-folder.h"
26 #include <camel/camel-folder-search.h>
27 #include <camel/camel-index.h>
28 #include "camel-spool-summary.h"
29 #include "camel-lock.h"
30
31 /*  #include "camel-store.h" */
32
33 #define CAMEL_SPOOL_FOLDER_TYPE     (camel_spool_folder_get_type ())
34 #define CAMEL_SPOOL_FOLDER(obj)     (CAMEL_CHECK_CAST((obj), CAMEL_SPOOL_FOLDER_TYPE, CamelSpoolFolder))
35 #define CAMEL_SPOOL_FOLDER_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_SPOOL_FOLDER_TYPE, CamelSpoolFolderClass))
36 #define CAMEL_IS_SPOOL_FOLDER(o)    (CAMEL_CHECK_TYPE((o), CAMEL_SPOOL_FOLDER_TYPE))
37
38 G_BEGIN_DECLS
39
40 typedef struct {
41         CamelMboxFolder parent;
42
43         struct _CamelSpoolFolderPrivate *priv;
44
45         int lockid;             /* lock id for dot locking */
46 } CamelSpoolFolder;
47
48 typedef struct {
49         CamelMboxFolderClass parent_class;
50 } CamelSpoolFolderClass;
51
52 /* Standard Camel function */
53 CamelType camel_spool_folder_get_type(void);
54
55 CamelFolder *camel_spool_folder_new(CamelStore *parent_store, const char *full_name, guint32 flags, CamelException *ex);
56
57 G_END_DECLS
58
59 #endif /* CAMEL_SPOOL_FOLDER_H */