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 */
5 * Copyright 2000 Ximian, Inc. (www.ximian.com)
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.
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.
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
23 #ifndef CAMEL_IMAP_WRAPPER_H
24 #define CAMEL_IMAP_WRAPPER_H 1
26 #include <camel/camel-data-wrapper.h>
27 #include "camel-imap-types.h"
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))
37 CamelDataWrapper parent_object;
39 struct _CamelImapWrapperPrivate *priv;
41 CamelImapFolder *folder;
42 char *uid, *part_spec;
47 CamelDataWrapperClass parent_class;
49 } CamelImapWrapperClass;
51 /* Standard Camel function */
52 CamelType camel_imap_wrapper_get_type (void);
55 CamelDataWrapper *camel_imap_wrapper_new (CamelImapFolder *imap_folder,
56 CamelContentType *type,
57 CamelTransferEncoding encoding,
59 const char *part_spec,
64 #endif /* CAMEL_DATA_WRAPPER_H */