49
49
typedef struct _CamelLocalStore CamelLocalStore;
50
50
typedef struct _CamelLocalStoreClass CamelLocalStoreClass;
51
typedef struct _CamelLocalStorePrivate CamelLocalStorePrivate;
52
53
struct _CamelLocalStore {
55
CamelLocalStorePrivate *priv;
55
57
gchar *toplevel_dir;
56
58
gboolean is_main_store;
59
61
struct _CamelLocalStoreClass {
60
62
CamelStoreClass parent_class;
62
gchar *(*get_full_path)(CamelLocalStore *ls, const gchar *full_name);
63
gchar *(*get_meta_path)(CamelLocalStore *ls, const gchar *full_name, const gchar *ext);
64
gchar * (*get_full_path) (CamelLocalStore *ls,
65
const gchar *full_name);
66
gchar * (*get_meta_path) (CamelLocalStore *ls,
67
const gchar *full_name,
66
GType camel_local_store_get_type (void);
68
const gchar *camel_local_store_get_toplevel_dir (CamelLocalStore *store);
70
gboolean camel_local_store_is_main_store (CamelLocalStore *store);
71
guint32 camel_local_store_get_folder_type_by_full_name (CamelLocalStore *store, const gchar *full_name);
73
#define camel_local_store_get_full_path(ls, name) \
74
(CAMEL_LOCAL_STORE_GET_CLASS (ls)->get_full_path \
75
(CAMEL_LOCAL_STORE (ls), (name)))
76
#define camel_local_store_get_meta_path(ls, name, ext) \
77
(CAMEL_LOCAL_STORE_GET_CLASS (ls)->get_meta_path \
78
(CAMEL_LOCAL_STORE (ls), (name), (ext)))
71
GType camel_local_store_get_type (void);
72
const gchar * camel_local_store_get_toplevel_dir
73
(CamelLocalStore *store);
74
gboolean camel_local_store_is_main_store (CamelLocalStore *store);
75
gchar * camel_local_store_get_full_path (CamelLocalStore *store,
76
const gchar *full_name);
77
gchar * camel_local_store_get_meta_path (CamelLocalStore *store,
78
const gchar *full_name,
80
guint32 camel_local_store_get_folder_type_by_full_name
81
(CamelLocalStore *store,
82
const gchar *full_name);