Extending test-client-custom-summary to try e_book_client_get_contacts_uids()
[platform/upstream/evolution-data-server.git] / camel / camel-vtrash-folder.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  *  Authors: Jeffrey Stedfast <fejj@ximian.com>
4  *
5  *  Copyright (C) 1999-2008 Novell, Inc. (www.novell.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 GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this program; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  */
22
23 #if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION)
24 #error "Only <camel/camel.h> can be included directly."
25 #endif
26
27 #ifndef CAMEL_VTRASH_FOLDER_H
28 #define CAMEL_VTRASH_FOLDER_H
29
30 #include <camel/camel-folder.h>
31 #include <camel/camel-vee-folder.h>
32
33 /* Standard GObject macros */
34 #define CAMEL_TYPE_VTRASH_FOLDER \
35         (camel_vtrash_folder_get_type ())
36 #define CAMEL_VTRASH_FOLDER(obj) \
37         (G_TYPE_CHECK_INSTANCE_CAST \
38         ((obj), CAMEL_TYPE_VTRASH_FOLDER, CamelVTrashFolder))
39 #define CAMEL_VTRASH_FOLDER_CLASS(cls) \
40         (G_TYPE_CHECK_CLASS_CAST \
41         ((cls), CAMEL_TYPE_VTRASH_FOLDER, CamelVTrashFolderClass))
42 #define CAMEL_IS_VTRASH_FOLDER(obj) \
43         (G_TYPE_CHECK_INSTANCE_TYPE \
44         ((obj), CAMEL_TYPE_VTRASH_FOLDER))
45 #define CAMEL_IS_VTRASH_FOLDER_CLASS(cls) \
46         (G_TYPE_CHECK_CLASS_TYPE \
47         ((cls), CAMEL_TYPE_VTRASH_FOLDER))
48 #define CAMEL_VTRASH_FOLDER_GET_CLASS(obj) \
49         (G_TYPE_INSTANCE_GET_CLASS \
50         ((obj), CAMEL_TYPE_VTRASH_FOLDER, CamelVTrashFolderClass))
51
52 #define CAMEL_VTRASH_NAME       ".#evolution/Trash"
53 #define CAMEL_VJUNK_NAME        ".#evolution/Junk"
54
55 G_BEGIN_DECLS
56
57 typedef struct _CamelVTrashFolder CamelVTrashFolder;
58 typedef struct _CamelVTrashFolderClass CamelVTrashFolderClass;
59
60 typedef enum {
61         CAMEL_VTRASH_FOLDER_TRASH,
62         CAMEL_VTRASH_FOLDER_JUNK,
63         CAMEL_VTRASH_FOLDER_LAST
64 } camel_vtrash_folder_t;
65
66 struct _CamelVTrashFolder {
67         CamelVeeFolder parent;
68
69         camel_vtrash_folder_t type;
70         guint32 bit;
71 };
72
73 struct _CamelVTrashFolderClass {
74         CamelVeeFolderClass parent_class;
75 };
76
77 GType           camel_vtrash_folder_get_type    (void);
78 CamelFolder *   camel_vtrash_folder_new         (CamelStore *parent_store,
79                                                  camel_vtrash_folder_t type);
80
81 G_END_DECLS
82
83 #endif /* CAMEL_VTRASH_FOLDER_H */