From 0cccd4dc239e8236dc54f338625e77986813a913 Mon Sep 17 00:00:00 2001 From: bertrand Date: Tue, 25 Jan 2000 04:02:14 +0000 Subject: The CamelDataWrapper can now be provided with input and output streams, so 2000-01-24 bertrand * camel/camel-data-wrapper.h: * camel/camel-data-wrapper.c (_set_input_stream): (_get_input_stream): (_set_output_stream): (_get_output_stream): The CamelDataWrapper can now be provided with input and output streams, so that nothing has to be kept in memory. * camel/camel-stream.c (camel_stream_class_init): added the "data_available" signal. svn path=/trunk/; revision=1624 --- camel/camel-stream.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'camel/camel-stream.c') diff --git a/camel/camel-stream.c b/camel/camel-stream.c index 5128d0309c..0a18ed1ee5 100644 --- a/camel/camel-stream.c +++ b/camel/camel-stream.c @@ -27,6 +27,14 @@ #include #include "camel-stream.h" + +enum { + DATA_AVAILABLE, + LAST_SIGNAL +}; + +static guint camel_stream_signals[LAST_SIGNAL] = { 0 }; + static GtkObjectClass *parent_class = NULL; @@ -49,6 +57,7 @@ default_camel_close (CamelStream *stream) static void camel_stream_class_init (CamelStreamClass *camel_stream_class) { + GtkObjectClass *gtk_object_class = GTK_OBJECT_CLASS (camel_stream_class); parent_class = gtk_type_class (gtk_object_get_type ()); @@ -61,6 +70,18 @@ camel_stream_class_init (CamelStreamClass *camel_stream_class) camel_stream_class->close = default_camel_close; /* virtual method overload */ + + /* signal definition */ + camel_stream_signals[DATA_AVAILABLE] = + gtk_signal_new ("data_available", + GTK_RUN_LAST, + gtk_object_class->type, + GTK_SIGNAL_OFFSET (CamelStreamClass, data_available), + gtk_marshal_NONE__NONE, + GTK_TYPE_NONE, 0); + + gtk_object_class_add_signals (gtk_object_class, camel_stream_signals, LAST_SIGNAL); + } GtkType -- cgit v1.2.3