1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | /* e-local-storage.h |
---|
3 | * |
---|
4 | * Copyright (C) 2000, 2001 Ximian, Inc. |
---|
5 | * |
---|
6 | * This program is free software; you can redistribute it and/or |
---|
7 | * modify it under the terms of version 2 of the GNU General Public |
---|
8 | * License as published by the Free Software Foundation. |
---|
9 | * |
---|
10 | * This program is distributed in the hope that it will be useful, |
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
13 | * General Public License for more details. |
---|
14 | * |
---|
15 | * You should have received a copy of the GNU General Public |
---|
16 | * License along with this program; if not, write to the |
---|
17 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
18 | * Boston, MA 02111-1307, USA. |
---|
19 | * |
---|
20 | * Author: Ettore Perazzoli |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef _E_LOCAL_STORAGE_H_ |
---|
24 | #define _E_LOCAL_STORAGE_H_ |
---|
25 | |
---|
26 | #include "e-folder-type-registry.h" |
---|
27 | #include "e-storage.h" |
---|
28 | |
---|
29 | #ifdef __cplusplus |
---|
30 | extern "C" { |
---|
31 | #pragma } |
---|
32 | #endif /* __cplusplus */ |
---|
33 | |
---|
34 | #define E_TYPE_LOCAL_STORAGE (e_local_storage_get_type ()) |
---|
35 | #define E_LOCAL_STORAGE(obj) (GTK_CHECK_CAST ((obj), E_TYPE_LOCAL_STORAGE, ELocalStorage)) |
---|
36 | #define E_LOCAL_STORAGE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), E_TYPE_LOCAL_STORAGE, ELocalStorageClass)) |
---|
37 | #define E_IS_LOCAL_STORAGE(obj) (GTK_CHECK_TYPE ((obj), E_TYPE_LOCAL_STORAGE)) |
---|
38 | #define E_IS_LOCAL_STORAGE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), E_TYPE_LOCAL_STORAGE)) |
---|
39 | |
---|
40 | typedef struct _ELocalStorage ELocalStorage; |
---|
41 | typedef struct _ELocalStoragePrivate ELocalStoragePrivate; |
---|
42 | typedef struct _ELocalStorageClass ELocalStorageClass; |
---|
43 | |
---|
44 | struct _ELocalStorage { |
---|
45 | EStorage parent; |
---|
46 | |
---|
47 | ELocalStoragePrivate *priv; |
---|
48 | }; |
---|
49 | |
---|
50 | struct _ELocalStorageClass { |
---|
51 | EStorageClass parent_class; |
---|
52 | }; |
---|
53 | |
---|
54 | |
---|
55 | GtkType e_local_storage_get_type (void); |
---|
56 | |
---|
57 | EStorage *e_local_storage_open (EFolderTypeRegistry *folder_type_registry, |
---|
58 | const char *base_path); |
---|
59 | const char *e_local_storage_get_base_path (ELocalStorage *storage); |
---|
60 | |
---|
61 | const GNOME_Evolution_Storage e_local_storage_get_corba_interface (ELocalStorage *storage); |
---|
62 | |
---|
63 | #ifdef __cplusplus |
---|
64 | } |
---|
65 | #endif /* __cplusplus */ |
---|
66 | |
---|
67 | #endif /* __E_LOCAL_STORAGE_H__ */ |
---|