From 7c553e6e5bb47c7b4b26f9bed147e7b7df234f96 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 3 May 2001 20:52:59 +0000 Subject: new abstract class for disconnectable remote stores * camel-disco-store.c: new abstract class for disconnectable remote stores * camel-disco-folder.c: new abstract class for folders on disconnectable stores. * Makefile.am: Add camel-disco-folder.[ch] and camel-disco-store.[ch]. * providers/imap/camel-imap-store.c: Make this a subclass of CamelDiscoStore, and fix up the offline interfaces for the changes since they were first written (particularly the fact that some IMAP stores don't just use subscribed folders). * providers/imap/camel-imap-folder.c: Make this a subclass of CamelDiscoFolder, although most ops still fail in disconnected mode. * camel-store.c (camel_store_get_folder_info): Change gboolean, gboolean, gboolean to guint32 in the prototype for this function. * providers/local/camel-local-store.c (get_folder_info): Update for prototype change. svn path=/trunk/; revision=9659 --- camel/providers/imap/camel-imap-store.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'camel/providers/imap/camel-imap-store.h') diff --git a/camel/providers/imap/camel-imap-store.h b/camel/providers/imap/camel-imap-store.h index b05e525845..8c0453cb53 100644 --- a/camel/providers/imap/camel-imap-store.h +++ b/camel/providers/imap/camel-imap-store.h @@ -33,7 +33,7 @@ extern "C" { #endif /* __cplusplus }*/ #include "camel-imap-types.h" -#include "camel-remote-store.h" +#include "camel-disco-store.h" #define CAMEL_IMAP_STORE_TYPE (camel_imap_store_get_type ()) #define CAMEL_IMAP_STORE(obj) (CAMEL_CHECK_CAST((obj), CAMEL_IMAP_STORE_TYPE, CamelImapStore)) @@ -59,7 +59,7 @@ typedef enum { #define IMAP_PARAM_FILTER_INBOX (1 << 2) struct _CamelImapStore { - CamelRemoteStore parent_object; + CamelDiscoStore parent_object; struct _CamelImapStorePrivate *priv; /* Information about the command channel / connection status */ @@ -77,7 +77,7 @@ struct _CamelImapStore { typedef struct { - CamelRemoteStoreClass parent_class; + CamelDiscoStoreClass parent_class; } CamelImapStoreClass; @@ -85,8 +85,6 @@ typedef struct { /* Standard Camel function */ CamelType camel_imap_store_get_type (void); -gboolean camel_imap_store_check_online (CamelImapStore *store, CamelException *ex); - #ifdef __cplusplus } #endif /* __cplusplus */ -- cgit v1.2.3