aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-data-wrapper.h
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@inria.fr>1999-05-09 00:31:26 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-05-09 00:31:26 +0800
commitfb68f5a78c905babb62460b92ac378a036b03231 (patch)
tree9751d050f565a3f11700435758523da69dbcdc44 /camel/camel-data-wrapper.h
parent6e4afd20567494cda7ab80c466a6b0fc05b8db31 (diff)
downloadgsoc2013-evolution-fb68f5a78c905babb62460b92ac378a036b03231.tar.gz
gsoc2013-evolution-fb68f5a78c905babb62460b92ac378a036b03231.tar.zst
gsoc2013-evolution-fb68f5a78c905babb62460b92ac378a036b03231.zip
method to stream data content in a buffer.
1999-05-08 bertrand <Bertrand.Guiheneuf@inria.fr> * camel/camel-data-wrapper.c (camel_data_wrapper_write_to_buffer): method to stream data content in a buffer. (camel_data_wrapper_write_to_file): (camel_data_wrapper_construct_from_buffer): (camel_data_wrapper_construct_from_file): new methods. Basic data_wrapper interface. Will have to add MIME content type and bonobo object creation from content type. Bertrand. svn path=/trunk/; revision=893
Diffstat (limited to 'camel/camel-data-wrapper.h')
-rw-r--r--camel/camel-data-wrapper.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/camel/camel-data-wrapper.h b/camel/camel-data-wrapper.h
index ef3a7cd1f3..e6b0b2a18a 100644
--- a/camel/camel-data-wrapper.h
+++ b/camel/camel-data-wrapper.h
@@ -1,4 +1,5 @@
-/* camelDataWrapper.h : Abstract class for a datawrapper */
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/* camelDataWrapper.h : Abstract class for a data wrapper */
/*
*
@@ -31,6 +32,7 @@ extern "C" {
#endif /* __cplusplus }*/
#include <gtk/gtk.h>
+#include <stdio.h>
@@ -51,8 +53,12 @@ typedef struct
typedef struct {
GtkObjectClass parent_class;
-
+
/* Virtual methods */
+ void (*write_to_buffer) (CamelDataWrapper *data_wrapper, gchar *buffer);
+ void (*write_to_file) (CamelDataWrapper *data_wrapper, FILE *file);
+ void (*construct_from_buffer) (CamelDataWrapper *data_wrapper, gchar *buffer, guint size);
+ void (*construct_from_file) (CamelDataWrapper *data_wrapper, FILE *file, guint size);
} CamelDataWrapperClass;
@@ -63,7 +69,10 @@ GtkType camel_data_wrapper_get_type (void);
/* public methods */
-
+void camel_data_wrapper_write_to_buffer(CamelDataWrapper *data_wrapper, gchar *buffer);
+void camel_data_wrapper_write_to_file(CamelDataWrapper *data_wrapper, FILE *file);
+void camel_data_wrapper_construct_from_buffer(CamelDataWrapper *data_wrapper, gchar *buffer, guint size);
+void camel_data_wrapper_construct_from_file (CamelDataWrapper *data_wrapper, FILE *file, guint size);
#ifdef __cplusplus
}