Extending test-client-custom-summary to try e_book_client_get_contacts_uids()
[platform/upstream/evolution-data-server.git] / camel / camel-vee-store.h
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  *  Authors: Michael Zucchi <notzed@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 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 #if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION)
23 #error "Only <camel/camel.h> can be included directly."
24 #endif
25
26 #ifndef CAMEL_VEE_STORE_H
27 #define CAMEL_VEE_STORE_H
28
29 #include <camel/camel-store.h>
30 #include <camel/camel-vee-data-cache.h>
31
32 /* Standard GObject macros */
33 #define CAMEL_TYPE_VEE_STORE \
34         (camel_vee_store_get_type ())
35 #define CAMEL_VEE_STORE(obj) \
36         (G_TYPE_CHECK_INSTANCE_CAST \
37         ((obj), CAMEL_TYPE_VEE_STORE, CamelVeeStore))
38 #define CAMEL_VEE_STORE_CLASS(cls) \
39         (G_TYPE_CHECK_CLASS_CAST \
40         ((cls), CAMEL_TYPE_VEE_STORE, CamelVeeStoreClass))
41 #define CAMEL_IS_VEE_STORE(obj) \
42         (G_TYPE_CHECK_INSTANCE_TYPE \
43         ((obj), CAMEL_TYPE_VEE_STORE))
44 #define CAMEL_IS_VEE_STORE_CLASS(cls) \
45         (G_TYPE_CHECK_CLASS_TYPE \
46         ((cls), CAMEL_TYPE_VEE_STORE))
47 #define CAMEL_VEE_STORE_GET_CLASS(obj) \
48         (G_TYPE_INSTANCE_GET_CLASS \
49         ((obj), CAMEL_TYPE_VEE_STORE, CamelVeeStoreClass))
50
51 G_BEGIN_DECLS
52
53 typedef struct _CamelVeeStore CamelVeeStore;
54 typedef struct _CamelVeeStorePrivate CamelVeeStorePrivate;
55 typedef struct _CamelVeeStoreClass CamelVeeStoreClass;
56
57 struct _CamelVeeStore {
58         CamelStore parent;
59
60         CamelVeeStorePrivate *priv;
61 };
62
63 struct _CamelVeeStoreClass {
64         CamelStoreClass parent_class;
65 };
66
67 GType                   camel_vee_store_get_type                        (void);
68 CamelVeeStore *         camel_vee_store_new                             (void);
69 CamelVeeDataCache *     camel_vee_store_get_vee_data_cache              (CamelVeeStore *vstore);
70 struct _CamelVeeFolder *camel_vee_store_get_unmatched_folder            (CamelVeeStore *vstore);
71 gboolean                camel_vee_store_get_unmatched_enabled           (CamelVeeStore *vstore);
72 void                    camel_vee_store_set_unmatched_enabled           (CamelVeeStore *vstore,
73                                                                          gboolean is_enabled);
74 void                    camel_vee_store_note_subfolder_used             (CamelVeeStore *vstore,
75                                                                          CamelFolder *subfolder,
76                                                                          struct _CamelVeeFolder *used_by);
77 void                    camel_vee_store_note_subfolder_unused           (CamelVeeStore *vstore,
78                                                                          CamelFolder *subfolder,
79                                                                          struct _CamelVeeFolder *unused_by);
80 void                    camel_vee_store_note_vuid_used                  (CamelVeeStore *vstore,
81                                                                          CamelVeeMessageInfoData *mi_data,
82                                                                          struct _CamelVeeFolder *used_by);
83 void                    camel_vee_store_note_vuid_unused                (CamelVeeStore *vstore,
84                                                                          CamelVeeMessageInfoData *mi_data,
85                                                                          struct _CamelVeeFolder *unused_by);
86 void                    camel_vee_store_rebuild_unmatched_folder        (CamelVeeStore *vstore,
87                                                                          GCancellable *cancellable,
88                                                                          GError **error);
89
90 G_END_DECLS
91
92 #endif /* CAMEL_VEE_STORE_H */