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: Jeffrey Stedfast <fejj@ximian.com>
18  */
19 
20 #if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION)
21 #error "Only <camel/camel.h> can be included directly."
22 #endif
23 
24 #ifndef CAMEL_VTRASH_FOLDER_H
25 #define CAMEL_VTRASH_FOLDER_H
26 
27 #include <camel/camel-folder.h>
28 #include <camel/camel-vee-folder.h>
29 
30 /* Standard GObject macros */
31 #define CAMEL_TYPE_VTRASH_FOLDER \
32 	(camel_vtrash_folder_get_type ())
33 #define CAMEL_VTRASH_FOLDER(obj) \
34 	(G_TYPE_CHECK_INSTANCE_CAST \
35 	((obj), CAMEL_TYPE_VTRASH_FOLDER, CamelVTrashFolder))
36 #define CAMEL_VTRASH_FOLDER_CLASS(cls) \
37 	(G_TYPE_CHECK_CLASS_CAST \
38 	((cls), CAMEL_TYPE_VTRASH_FOLDER, CamelVTrashFolderClass))
39 #define CAMEL_IS_VTRASH_FOLDER(obj) \
40 	(G_TYPE_CHECK_INSTANCE_TYPE \
41 	((obj), CAMEL_TYPE_VTRASH_FOLDER))
42 #define CAMEL_IS_VTRASH_FOLDER_CLASS(cls) \
43 	(G_TYPE_CHECK_CLASS_TYPE \
44 	((cls), CAMEL_TYPE_VTRASH_FOLDER))
45 #define CAMEL_VTRASH_FOLDER_GET_CLASS(obj) \
46 	(G_TYPE_INSTANCE_GET_CLASS \
47 	((obj), CAMEL_TYPE_VTRASH_FOLDER, CamelVTrashFolderClass))
48 
49 #define CAMEL_VTRASH_NAME	".#evolution/Trash"
50 #define CAMEL_VJUNK_NAME	".#evolution/Junk"
51 
52 G_BEGIN_DECLS
53 
54 typedef struct _CamelVTrashFolder CamelVTrashFolder;
55 typedef struct _CamelVTrashFolderClass CamelVTrashFolderClass;
56 typedef struct _CamelVTrashFolderPrivate CamelVTrashFolderPrivate;
57 
58 typedef enum {
59 	CAMEL_VTRASH_FOLDER_TRASH,
60 	CAMEL_VTRASH_FOLDER_JUNK,
61 	CAMEL_VTRASH_FOLDER_LAST
62 } CamelVTrashFolderType;
63 
64 struct _CamelVTrashFolder {
65 	CamelVeeFolder parent;
66 	CamelVTrashFolderPrivate *priv;
67 };
68 
69 struct _CamelVTrashFolderClass {
70 	CamelVeeFolderClass parent_class;
71 
72 	/* Padding for future expansion */
73 	gpointer reserved[20];
74 };
75 
76 GType		camel_vtrash_folder_get_type	(void);
77 CamelFolder *	camel_vtrash_folder_new		(CamelStore *parent_store,
78 						 CamelVTrashFolderType type);
79 CamelVTrashFolderType
80 		camel_vtrash_folder_get_folder_type
81 						(CamelVTrashFolder *vtrash_folder);
82 
83 G_END_DECLS
84 
85 #endif /* CAMEL_VTRASH_FOLDER_H */
86