Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / providers / local / camel-mbox-folder.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
2  *
3  * Authors: Michael Zucchi <notzed@ximian.com>
4  *
5  * Copyright (C) 1999 Ximian .
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_MBOX_FOLDER_H
23 #define CAMEL_MBOX_FOLDER_H 1
24
25 #include "camel-local-folder.h"
26 #include "camel-mbox-summary.h"
27
28 #define CAMEL_MBOX_FOLDER_TYPE     (camel_mbox_folder_get_type ())
29 #define CAMEL_MBOX_FOLDER(obj)     (CAMEL_CHECK_CAST((obj), CAMEL_MBOX_FOLDER_TYPE, CamelMboxFolder))
30 #define CAMEL_MBOX_FOLDER_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_MBOX_FOLDER_TYPE, CamelMboxFolderClass))
31 #define CAMEL_IS_MBOX_FOLDER(o)    (CAMEL_CHECK_TYPE((o), CAMEL_MBOX_FOLDER_TYPE))
32
33 G_BEGIN_DECLS
34
35 typedef struct {
36         CamelLocalFolder parent_object;
37
38         int lockfd;             /* for when we have a lock on the folder */
39 } CamelMboxFolder;
40
41 typedef struct {
42         CamelLocalFolderClass parent_class;
43
44         /* Virtual methods */   
45         
46 } CamelMboxFolderClass;
47
48 /* public methods */
49 /* flags are taken from CAMEL_STORE_FOLDER_* flags */
50 CamelFolder *camel_mbox_folder_new(CamelStore *parent_store, const char *full_name, guint32 flags, CamelException *ex);
51
52 /* Standard Camel function */
53 CamelType camel_mbox_folder_get_type(void);
54
55 G_END_DECLS
56
57 #endif /* CAMEL_MBOX_FOLDER_H */