2
* Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
5
* Michael Zucchi <notzed@ximian.com>
6
* Dan Winship <danw@ximian.com>
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of version 2 of the GNU Lesser General Public
10
* License as published by the Free Software Foundation.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this program; if not, write to the
19
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20
* Boston, MA 02110-1301, USA.
23
#ifndef _CAMEL_IMAPX_SUMMARY_H
24
#define _CAMEL_IMAPX_SUMMARY_H
26
//#include "camel-imap-types.h"
27
#include <camel/camel-folder-summary.h>
28
#include <camel/camel-exception.h>
30
#define CAMEL_IMAPX_SUMMARY(obj) CAMEL_CHECK_CAST (obj, camel_imapx_summary_get_type (), CamelIMAPXSummary)
31
#define CAMEL_IMAPX_SUMMARY_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, camel_imapx_summary_get_type (), CamelIMAPXSummaryClass)
32
#define CAMEL_IS_IMAPX_SUMMARY(obj) CAMEL_CHECK_TYPE (obj, camel_imapx_summary_get_type ())
34
#define CAMEL_IMAPX_SERVER_FLAGS (CAMEL_MESSAGE_ANSWERED | \
35
CAMEL_MESSAGE_DELETED | \
36
CAMEL_MESSAGE_DRAFT | \
37
CAMEL_MESSAGE_FLAGGED | \
42
typedef struct _CamelIMAPXSummaryClass CamelIMAPXSummaryClass;
43
typedef struct _CamelIMAPXSummary CamelIMAPXSummary;
45
typedef struct _CamelIMAPXMessageContentInfo {
46
CamelMessageContentInfo info;
48
} CamelIMAPXMessageContentInfo;
50
typedef struct _CamelIMAPXMessageInfo {
51
CamelMessageInfoBase info;
54
struct _CamelFlag *server_user_flags;
55
} CamelIMAPXMessageInfo;
57
struct _CamelIMAPXSummary {
58
CamelFolderSummary parent;
64
struct _CamelIMAPXSummaryClass {
65
CamelFolderSummaryClass parent_class;
69
CamelType camel_imapx_summary_get_type (void);
70
CamelFolderSummary *camel_imapx_summary_new (struct _CamelFolder *folder, const gchar *filename);
72
void camel_imapx_summary_add_offline (CamelFolderSummary *summary,
74
CamelMimeMessage *message,
75
const CamelMessageInfo *info);
77
void camel_imapx_summary_add_offline_uncached (CamelFolderSummary *summary,
79
const CamelMessageInfo *info);
83
#endif /* _CAMEL_IMAPX_SUMMARY_H */