Coding style cleanup.
[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
31 /* Standard GObject macros */
32 #define CAMEL_TYPE_VEE_STORE \
33         (camel_vee_store_get_type ())
34 #define CAMEL_VEE_STORE(obj) \
35         (G_TYPE_CHECK_INSTANCE_CAST \
36         ((obj), CAMEL_TYPE_VEE_STORE, CamelVeeStore))
37 #define CAMEL_VEE_STORE_CLASS(cls) \
38         (G_TYPE_CHECK_CLASS_CAST \
39         ((cls), CAMEL_TYPE_VEE_STORE, CamelVeeStoreClass))
40 #define CAMEL_IS_VEE_STORE(obj) \
41         (G_TYPE_CHECK_INSTANCE_TYPE \
42         ((obj), CAMEL_TYPE_VEE_STORE))
43 #define CAMEL_IS_VEE_STORE_CLASS(cls) \
44         (G_TYPE_CHECK_CLASS_TYPE \
45         ((cls), CAMEL_TYPE_VEE_STORE))
46 #define CAMEL_VEE_STORE_GET_CLASS(obj) \
47         (G_TYPE_INSTANCE_GET_CLASS \
48         ((obj), CAMEL_TYPE_VEE_STORE, CamelVeeStoreClass))
49
50 G_BEGIN_DECLS
51
52 typedef struct _CamelVeeStore CamelVeeStore;
53 typedef struct _CamelVeeStoreClass CamelVeeStoreClass;
54
55 /* open mode for folder, vee folder auto-update */
56 #define CAMEL_STORE_VEE_FOLDER_AUTO (1 << 16)
57
58 /**
59  * CAMEL_STORE_VEE_FOLDER_SPECIAL:
60  *
61  * Since: 2.24
62  **/
63 #define CAMEL_STORE_VEE_FOLDER_SPECIAL (1 << 17)
64
65 struct _CamelVeeStore {
66         CamelStore parent;
67
68         /* Unmatched folder, set up in camel_vee_store_init */
69         struct _CamelVeeFolder *folder_unmatched;
70         GHashTable *unmatched_uids;
71 };
72
73 struct _CamelVeeStoreClass {
74         CamelStoreClass parent_class;
75 };
76
77 GType           camel_vee_store_get_type        (void);
78 CamelVeeStore * camel_vee_store_new             (void);
79
80 G_END_DECLS
81
82 #endif /* CAMEL_VEE_STORE_H */