aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-10-09 11:07:39 +0800
committerDan Winship <danw@src.gnome.org>2001-10-09 11:07:39 +0800
commit5931b31034fb4d19482e517f6d8e5508fa1da908 (patch)
tree51e741ef213cd6af06a263b55df3d5c3d45c27bf /camel/camel-folder.h
parentc5a91116e208aa02e8412ab778b7c959dc089ddd (diff)
downloadgsoc2013-evolution-5931b31034fb4d19482e517f6d8e5508fa1da908.tar
gsoc2013-evolution-5931b31034fb4d19482e517f6d8e5508fa1da908.tar.gz
gsoc2013-evolution-5931b31034fb4d19482e517f6d8e5508fa1da908.tar.bz2
gsoc2013-evolution-5931b31034fb4d19482e517f6d8e5508fa1da908.tar.lz
gsoc2013-evolution-5931b31034fb4d19482e517f6d8e5508fa1da908.tar.xz
gsoc2013-evolution-5931b31034fb4d19482e517f6d8e5508fa1da908.tar.zst
gsoc2013-evolution-5931b31034fb4d19482e517f6d8e5508fa1da908.zip
replace the ever-growing list of gbooleans with a single guint32 for
* camel-folder.h (struct _CamelFolder): replace the ever-growing list of gbooleans with a single guint32 for flags. * camel-folder.c: Update folder flag setting/checking. * providers/pop3/camel-pop3-folder.c (camel_pop3_folder_init): * providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new): * providers/local/camel-spool-folder.c (spool_init, camel_spool_folder_new): * providers/local/camel-maildir-folder.c (camel_maildir_folder_new): * providers/local/camel-local-folder.c (local_init): * providers/imap/camel-imap-folder.c (camel_imap_folder_init, camel_imap_folder_new): * camel-vtrash-folder.c (camel_vtrash_folder_init): * camel-vee-folder.c (camel_vee_folder_init): * camel-digest-folder.c (camel_digest_folder_init): update folder flag setting. svn path=/trunk/; revision=13509
Diffstat (limited to 'camel/camel-folder.h')
-rw-r--r--camel/camel-folder.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/camel/camel-folder.h b/camel/camel-folder.h
index 786e346627..e9b15b1306 100644
--- a/camel/camel-folder.h
+++ b/camel/camel-folder.h
@@ -63,14 +63,16 @@ struct _CamelFolder
CamelStore *parent_store;
CamelFolderSummary *summary;
+ guint32 folder_flags;
guint32 permanent_flags;
- gboolean has_summary_capability:1;
- gboolean has_search_capability:1;
- gboolean filter_recent:1;
- gboolean deleted:1;
-
};
+#define CAMEL_FOLDER_HAS_SUMMARY_CAPABILITY (1<<0)
+#define CAMEL_FOLDER_HAS_SEARCH_CAPABILITY (1<<1)
+#define CAMEL_FOLDER_FILTER_RECENT (1<<2)
+#define CAMEL_FOLDER_HAS_BEEN_DELETED (1<<3)
+#define CAMEL_FOLDER_IS_TRASH (1<<4)
+
typedef struct {
CamelObjectClass parent_class;