aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-store.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-05-04 04:52:59 +0800
committerDan Winship <danw@src.gnome.org>2001-05-04 04:52:59 +0800
commit7c553e6e5bb47c7b4b26f9bed147e7b7df234f96 (patch)
tree75b27df033aa84aa60eeea841fd8341ff6c415e4 /camel/camel-store.h
parent57546880c8e3470834bb7012aee9d892e3ac6708 (diff)
downloadgsoc2013-evolution-7c553e6e5bb47c7b4b26f9bed147e7b7df234f96.tar
gsoc2013-evolution-7c553e6e5bb47c7b4b26f9bed147e7b7df234f96.tar.gz
gsoc2013-evolution-7c553e6e5bb47c7b4b26f9bed147e7b7df234f96.tar.bz2
gsoc2013-evolution-7c553e6e5bb47c7b4b26f9bed147e7b7df234f96.tar.lz
gsoc2013-evolution-7c553e6e5bb47c7b4b26f9bed147e7b7df234f96.tar.xz
gsoc2013-evolution-7c553e6e5bb47c7b4b26f9bed147e7b7df234f96.tar.zst
gsoc2013-evolution-7c553e6e5bb47c7b4b26f9bed147e7b7df234f96.zip
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
Diffstat (limited to 'camel/camel-store.h')
-rw-r--r--camel/camel-store.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/camel/camel-store.h b/camel/camel-store.h
index 51d6570348..d81f08e914 100644
--- a/camel/camel-store.h
+++ b/camel/camel-store.h
@@ -72,6 +72,10 @@ struct _CamelStore
#define CAMEL_STORE_FOLDER_BODY_INDEX (1<<1)
#define CAMEL_STORE_FOLDER_PRIVATE (1<<2) /* a private folder, that shouldn't show up in unmatched/folder info's, etc */
+#define CAMEL_STORE_FOLDER_INFO_FAST (1 << 0)
+#define CAMEL_STORE_FOLDER_INFO_RECURSIVE (1 << 1)
+#define CAMEL_STORE_FOLDER_INFO_SUBSCRIBED (1 << 2)
+
typedef struct {
CamelServiceClass parent_class;
@@ -104,12 +108,9 @@ typedef struct {
void (*sync) (CamelStore *store,
CamelException *ex);
- /* this should take flags instead, so its more futureproof */
CamelFolderInfo *(*get_folder_info) (CamelStore *store,
const char *top,
- gboolean fast,
- gboolean recursive,
- gboolean subscribed_only,
+ guint32 flags,
CamelException *ex);
void (*free_folder_info) (CamelStore *store,
CamelFolderInfo *fi);
@@ -155,9 +156,7 @@ void camel_store_sync (CamelStore *store,
CamelFolderInfo *camel_store_get_folder_info (CamelStore *store,
const char *top,
- gboolean fast,
- gboolean recursive,
- gboolean subscribed_only,
+ guint32 flags,
CamelException *ex);
void camel_store_free_folder_info (CamelStore *store,
CamelFolderInfo *fi);