Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / providers / nntp / camel-nntp-summary.h
1 /*
2  *  Copyright (C) 2000 Ximian Inc.
3  *
4  *  Authors: Michael Zucchi <notzed@ximian.com>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of version 2 of the GNU Lesser General Public
8  * License as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this program; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20
21 #ifndef _CAMEL_NNTP_SUMMARY_H
22 #define _CAMEL_NNTP_SUMMARY_H
23
24 #include <camel/camel-folder-summary.h>
25
26 #define CAMEL_NNTP_SUMMARY(obj)         CAMEL_CHECK_CAST (obj, camel_nntp_summary_get_type (), CamelNNTPSummary)
27 #define CAMEL_NNTP_SUMMARY_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, camel_nntp_summary_get_type (), CamelNNTPSummaryClass)
28 #define CAMEL_IS_LOCAL_SUMMARY(obj)      CAMEL_CHECK_TYPE (obj, camel_nntp_summary_get_type ())
29
30 G_BEGIN_DECLS
31
32 struct _CamelNNTPStore;
33 struct _CamelFolderChangeInfo;
34 struct _CamelException;
35
36 typedef struct _CamelNNTPSummary      CamelNNTPSummary;
37 typedef struct _CamelNNTPSummaryClass CamelNNTPSummaryClass;
38
39 struct _CamelNNTPSummary {
40         CamelFolderSummary parent;
41
42         struct _CamelNNTPSummaryPrivate *priv;
43
44         guint32 version;
45         guint32 high, low;
46 };
47
48 struct _CamelNNTPSummaryClass {
49         CamelFolderSummaryClass parent_class;
50 };
51
52 CamelType       camel_nntp_summary_get_type     (void);
53 CamelNNTPSummary *camel_nntp_summary_new(struct _CamelFolder *folder, const char *path);
54
55 int camel_nntp_summary_check(CamelNNTPSummary *cns, struct _CamelNNTPStore *store, char *line, struct _CamelFolderChangeInfo *changes, struct _CamelException *ex);
56
57 G_END_DECLS
58
59 #endif /* ! _CAMEL_NNTP_SUMMARY_H */
60