1
#ifndef TNY_STREAM_CAMEL_H
2
#define TNY_STREAM_CAMEL_H
4
/* libtinymail-camel - The Tiny Mail base library for Camel
5
* Copyright (C) 2006-2007 Philip Van Hoof <pvanhoof@gnome.org>
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2 of the License, or (at your option) any later version.
12
* This library 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
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with self library; if not, write to the
19
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
* Boston, MA 02111-1307, USA.
24
#include <glib-object.h>
25
#include <tny-stream.h>
27
#include <camel/camel-seekable-stream.h>
31
/* Strange Python binding generator wants this */
32
#define TNY_TYPE_STREAM_CAMEL_STREAM (tny_stream_camel_get_type ())
34
#define TNY_TYPE_STREAM_CAMEL (tny_stream_camel_get_type ())
35
#define TNY_STREAM_CAMEL(obj) (CAMEL_CHECK_CAST((obj), TNY_TYPE_STREAM_CAMEL_STREAM, TnyStreamCamel))
36
#define TNY_STREAM_CAMEL_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), TNY_TYPE_STREAM_CAMEL_STREAM, TnyStreamCamelClass))
38
typedef struct _TnyStreamCamel TnyStreamCamel;
39
typedef struct _TnyStreamCamelClass TnyStreamCamelClass;
41
struct _TnyStreamCamel
48
struct _TnyStreamCamelClass
50
CamelStreamClass parent;
53
CamelType tny_stream_camel_get_type (void);
54
CamelStream* tny_stream_camel_new (TnyStream *stream);
55
void tny_stream_camel_set_stream (TnyStreamCamel *self, TnyStream *stream);
57
gssize tny_stream_camel_write_to_stream (TnyStreamCamel *self, TnyStream *output);