From d224d1aaad9aca13a716278df6f81b96e9d58aea Mon Sep 17 00:00:00 2001 From: bertrand Date: Sun, 25 Apr 1999 21:58:27 +0000 Subject: initialize folder object. 1999-04-25 bertrand * camel/camel-session.c (camel_session_get_store_from_provider): initialize folder object. * camel/camel-store.c (init): new method. called by session object at instantiation time. * camel/camel-store.h (struct _CamelStore): new fields : session and url_name svn path=/trunk/; revision=879 --- camel/camel-store.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'camel/camel-store.h') diff --git a/camel/camel-store.h b/camel/camel-store.h index 55401577d0..df8409f92e 100644 --- a/camel/camel-store.h +++ b/camel/camel-store.h @@ -37,6 +37,7 @@ typedef struct _CamelStore CamelStore; #include "camel-folder.h" #include "camel-service.h" +#include "camel-session.h" #define CAMEL_STORE_TYPE (camel_store_get_type ()) #define CAMEL_STORE(obj) (GTK_CHECK_CAST((obj), CAMEL_STORE_TYPE, CamelStore)) @@ -48,6 +49,8 @@ struct _CamelStore { CamelService parent_object; + CamelSession *session; + GString *url_name; gchar separator; }; @@ -55,7 +58,8 @@ struct _CamelStore typedef struct { CamelServiceClass parent_class; - + + void (*init) (CamelStore *store, CamelSession *session, GString *url_name); void (*set_separator) (CamelStore *store, gchar sep); gchar (*get_separator) (CamelStore *store); CamelFolder * (*get_folder) (CamelStore *store, GString *folder_name); @@ -70,7 +74,7 @@ typedef struct { /* Standard Gtk function */ GtkType camel_store_get_type (void); -CamelStore *camel_store_new(GString *url); +void camel_store_init(CamelStore *store, CamelSession *session, GString *url_name); CamelFolder *camel_store_get_folder(CamelStore *store, GString *folder_name); gchar camel_store_get_separator(CamelStore *store); -- cgit