Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / providers / imap / camel-imap-wrapper.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* camel-imap-wrapper.h: data wrapper for offline IMAP data */
3
4 /*
5  * Copyright 2000 Ximian, Inc. (www.ximian.com)
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of version 2 of the GNU Lesser General Public
9  * License as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19  * USA
20  */
21
22
23 #ifndef CAMEL_IMAP_WRAPPER_H
24 #define CAMEL_IMAP_WRAPPER_H 1
25
26 #include <camel/camel-data-wrapper.h>
27 #include "camel-imap-types.h"
28
29 #define CAMEL_IMAP_WRAPPER_TYPE     (camel_imap_wrapper_get_type ())
30 #define CAMEL_IMAP_WRAPPER(obj)     (CAMEL_CHECK_CAST((obj), CAMEL_IMAP_WRAPPER_TYPE, CamelImapWrapper))
31 #define CAMEL_IMAP_WRAPPER_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_IMAP_WRAPPER_TYPE, CamelImapWrapperClass))
32 #define CAMEL_IS_IMAP_WRAPPER(o)    (CAMEL_CHECK_TYPE((o), CAMEL_IMAP_WRAPPER_TYPE))
33
34 G_BEGIN_DECLS
35
36 typedef struct {
37         CamelDataWrapper parent_object;
38
39         struct _CamelImapWrapperPrivate *priv;
40
41         CamelImapFolder *folder;
42         char *uid, *part_spec;
43         CamelMimePart *part;
44 } CamelImapWrapper;
45
46 typedef struct {
47         CamelDataWrapperClass parent_class;
48
49 } CamelImapWrapperClass;
50
51 /* Standard Camel function */
52 CamelType camel_imap_wrapper_get_type (void);
53
54 /* Constructor */
55 CamelDataWrapper *camel_imap_wrapper_new (CamelImapFolder *imap_folder,
56                                           CamelContentType *type,
57                                           CamelTransferEncoding encoding,
58                                           const char *uid,
59                                           const char *part_spec,
60                                           CamelMimePart *part);
61
62 G_END_DECLS
63
64 #endif /* CAMEL_DATA_WRAPPER_H */