1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* camel-mbox-store.h : class for an mbox store */
6 * Copyright (C) 2000 Ximian, Inc. <bertrand@helixcode.com>
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.
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.
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
23 #ifndef CAMEL_LOCAL_STORE_H
24 #define CAMEL_LOCAL_STORE_H 1
26 #include "camel-store.h"
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))
36 CamelStore parent_object;
42 CamelStoreClass parent_class;
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;
48 /* Standard Camel function */
49 CamelType camel_local_store_get_type (void);
51 const gchar *camel_local_store_get_toplevel_dir (CamelLocalStore *store);
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)
58 #endif /* CAMEL_LOCAL_STORE_H */