1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
4  *
5  * This library is free software: you can redistribute it and/or modify it
6  * under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation.
8  *
9  * This library is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
12  * for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library. If not, see <http://www.gnu.org/licenses/>.
16  *
17  * Authors: Michael Zucchi <notzed@ximian.com>
18  */
19 
20 #ifndef CAMEL_MBOX_FOLDER_H
21 #define CAMEL_MBOX_FOLDER_H
22 
23 #include "camel-local-folder.h"
24 #include "camel-mbox-summary.h"
25 
26 /* Standard GObject macros */
27 #define CAMEL_TYPE_MBOX_FOLDER \
28 	(camel_mbox_folder_get_type ())
29 #define CAMEL_MBOX_FOLDER(obj) \
30 	(G_TYPE_CHECK_INSTANCE_CAST \
31 	((obj), CAMEL_TYPE_MBOX_FOLDER, CamelMboxFolder))
32 #define CAMEL_MBOX_FOLDER_CLASS(cls) \
33 	(G_TYPE_CHECK_CLASS_CAST \
34 	((cls), CAMEL_TYPE_MBOX_FOLDER, CamelMboxFolderClass))
35 #define CAMEL_IS_MBOX_FOLDER(obj) \
36 	(G_TYPE_CHECK_INSTANCE_TYPE \
37 	((obj), CAMEL_TYPE_MBOX_FOLDER))
38 #define CAMEL_IS_MBOX_FOLDER_CLASS(cls) \
39 	(G_TYPE_CHECK_CLASS_TYPE \
40 	((cls), CAMEL_TYPE_MBOX_FOLDER))
41 #define CAMEL_MBOX_FOLDER_GET_CLASS(obj) \
42 	(G_TYPE_INSTANCE_GET_CLASS \
43 	((obj), CAMEL_TYPE_MBOX_FOLDER, CamelMboxFolderClass))
44 
45 G_BEGIN_DECLS
46 
47 typedef struct _CamelMboxFolder CamelMboxFolder;
48 typedef struct _CamelMboxFolderClass CamelMboxFolderClass;
49 
50 struct _CamelMboxFolder {
51 	CamelLocalFolder parent;
52 
53 	gint lockfd;		/* for when we have a lock on the folder */
54 };
55 
56 struct _CamelMboxFolderClass {
57 	CamelLocalFolderClass parent_class;
58 
59 	/* Padding for future expansion */
60 	gpointer reserved[20];
61 };
62 
63 GType		camel_mbox_folder_get_type	(void);
64 CamelFolder *	camel_mbox_folder_new		(CamelStore *parent_store,
65 						 const gchar *full_name,
66 						 guint32 flags,
67 						 GCancellable *cancellable,
68 						 GError **error);
69 
70 G_END_DECLS
71 
72 #endif /* CAMEL_MBOX_FOLDER_H */
73