Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / providers / local / camel-local-store.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* camel-mbox-store.h : class for an mbox store */
3
4 /* 
5  *
6  * Copyright (C) 2000 Ximian, Inc. <bertrand@helixcode.com>
7  *
8  * This program is free software; you can redistribute it and/or 
9  * modify it under the terms of version 2 of the GNU Lesser General Public 
10  * License as published by the Free Software Foundation.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
20  * USA
21  */
22
23 #ifndef CAMEL_LOCAL_STORE_H
24 #define CAMEL_LOCAL_STORE_H 1
25
26 #include "camel-store.h"
27
28 #define CAMEL_LOCAL_STORE_TYPE     (camel_local_store_get_type ())
29 #define CAMEL_LOCAL_STORE(obj)     (CAMEL_CHECK_CAST((obj), CAMEL_LOCAL_STORE_TYPE, CamelLocalStore))
30 #define CAMEL_LOCAL_STORE_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_LOCAL_STORE_TYPE, CamelLocalStoreClass))
31 #define CAMEL_IS_LOCAL_STORE(o)    (CAMEL_CHECK_TYPE((o), CAMEL_LOCAL_STORE_TYPE))
32
33 G_BEGIN_DECLS
34
35 typedef struct {
36         CamelStore parent_object;       
37
38         char *toplevel_dir;
39 } CamelLocalStore;
40
41 typedef struct {
42         CamelStoreClass parent_class;
43
44         char *(*get_full_path)(CamelLocalStore *ls, const char *full_name);
45         char *(*get_meta_path)(CamelLocalStore *ls, const char *full_name, const char *ext);
46 } CamelLocalStoreClass;
47
48 /* Standard Camel function */
49 CamelType camel_local_store_get_type (void);
50
51 const gchar *camel_local_store_get_toplevel_dir (CamelLocalStore *store);
52
53 #define camel_local_store_get_full_path(ls, name) ((CamelLocalStoreClass *)((CamelObject *)ls)->klass)->get_full_path((CamelLocalStore *)ls, name)
54 #define camel_local_store_get_meta_path(ls, name, ext) ((CamelLocalStoreClass *)((CamelObject *)ls)->klass)->get_meta_path((CamelLocalStore *)ls, name, ext)
55
56 G_END_DECLS
57
58 #endif /* CAMEL_LOCAL_STORE_H */
59
60