~ubuntu-branches/ubuntu/karmic/libtinymail/karmic

« back to all changes in this revision

Viewing changes to libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-wrapper.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-10-12 11:21:12 UTC
  • Revision ID: james.westby@ubuntu.com-20071012112112-fod9fs7yrooxjr7i
Tags: upstream-0.0.2
ImportĀ upstreamĀ versionĀ 0.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 
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 */