1 /* 2 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) 3 * 4 * This library is free software: you can redistribute it and/or modify it 5 * under the terms of the GNU Lesser General Public License as published by 6 * the Free Software Foundation. 7 * 8 * This library is distributed in the hope that it will be useful, but 9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License 11 * for more details. 12 * 13 * You should have received a copy of the GNU Lesser General Public License 14 * along with this library. If not, see <http://www.gnu.org/licenses/>. 15 * 16 * Authors: Michael Zucchi <notzed@ximian.com> 17 * Dan Winship <danw@ximian.com> 18 */ 19 20 #ifndef CAMEL_IMAPX_SUMMARY_H 21 #define CAMEL_IMAPX_SUMMARY_H 22 23 #include <camel/camel.h> 24 25 /* Standard GObject macros */ 26 #define CAMEL_TYPE_IMAPX_SUMMARY \ 27 (camel_imapx_summary_get_type ()) 28 #define CAMEL_IMAPX_SUMMARY(obj) \ 29 (G_TYPE_CHECK_INSTANCE_CAST \ 30 ((obj), CAMEL_TYPE_IMAPX_SUMMARY, CamelIMAPXSummary)) 31 #define CAMEL_IMAPX_SUMMARY_CLASS(cls) \ 32 (G_TYPE_CHECK_CLASS_CAST \ 33 ((cls), CAMEL_TYPE_IMAPX_SUMMARY, CamelIMAPXSummaryClass)) 34 #define CAMEL_IS_IMAPX_SUMMARY(obj) \ 35 (G_TYPE_CHECK_INSTANCE_TYPE \ 36 ((obj), CAMEL_TYPE_IMAPX_SUMMARY)) 37 #define CAMEL_IS_IMAPX_SUMMARY_CLASS(cls) \ 38 (G_TYPE_CHECK_CLASS_TYPE \ 39 ((cls), CAMEL_TYPE_IMAPX_SUMMARY)) 40 #define CAMEL_IMAPX_SUMMARY_GET_CLASS(obj) \ 41 (G_TYPE_INSTANCE_GET_CLASS \ 42 ((obj), CAMEL_TYPE_IMAPX_SUMMARY, CamelIMAPXSummaryClass)) 43 44 #define CAMEL_IMAPX_SERVER_FLAGS \ 45 (CAMEL_MESSAGE_ANSWERED | \ 46 CAMEL_MESSAGE_DELETED | \ 47 CAMEL_MESSAGE_DRAFT | \ 48 CAMEL_MESSAGE_FLAGGED | \ 49 CAMEL_MESSAGE_JUNK | \ 50 CAMEL_MESSAGE_NOTJUNK | \ 51 CAMEL_MESSAGE_SEEN) 52 53 G_BEGIN_DECLS 54 55 typedef struct _CamelIMAPXSummary CamelIMAPXSummary; 56 typedef struct _CamelIMAPXSummaryClass CamelIMAPXSummaryClass; 57 58 struct _CamelIMAPXSummary { 59 CamelFolderSummary parent; 60 61 guint32 version; 62 guint32 uidnext; 63 guint64 validity; 64 guint64 modseq; 65 }; 66 67 struct _CamelIMAPXSummaryClass { 68 CamelFolderSummaryClass parent_class; 69 70 /* Padding for future expansion */ 71 gpointer reserved[20]; 72 }; 73 74 GType camel_imapx_summary_get_type (void); 75 CamelFolderSummary * 76 camel_imapx_summary_new (CamelFolder *folder); 77 78 G_END_DECLS 79 80 #endif /* CAMEL_IMAPX_SUMMARY_H */ 81