/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* camelDataWrapper.h : Abstract class for a data wrapper */ /* * * Author : * Bertrand Guiheneuf * * Copyright 1999, 2000 HelixCode (http://www.helixcode.com) . * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #ifndef CAMEL_DATA_WRAPPER_H #define CAMEL_DATA_WRAPPER_H 1 #ifdef __cplusplus extern "C" { #pragma } #endif /* __cplusplus }*/ #include #include "camel-types.h" #include "gmime-content-field.h" #define CAMEL_DATA_WRAPPER_TYPE (camel_data_wrapper_get_type ()) #define CAMEL_DATA_WRAPPER(obj) (GTK_CHECK_CAST((obj), CAMEL_DATA_WRAPPER_TYPE, CamelDataWrapper)) #define CAMEL_DATA_WRAPPER_CLASS(k) (GTK_CHECK_CLASS_CAST ((k), CAMEL_DATA_WRAPPER_TYPE, CamelDataWrapperClass)) #define CAMEL_IS_DATA_WRAPPER(o) (GTK_CHECK_TYPE((o), CAMEL_DATA_WRAPPER_TYPE)) struct _CamelDataWrapper { GtkObject parent_object; CamelStream *input_stream; CamelStream *output_stream; GMimeContentField *mime_type; }; typedef struct { GtkObjectClass parent_class; /* Virtual methods */ void (*set_input_stream) (CamelDataWrapper *data_wrapper, CamelStream *stream); CamelStream * (*get_input_stream) (CamelDataWrapper *data_wrapper); void (*set_output_stream) (CamelDataWrapper *data_wrapper, CamelStream *stream); CamelStream * (*get_output_stream) (CamelDataWrapper *data_wrapper); void (*set_mime_type) (CamelDataWrapper *data_wrapper, const gchar * mime_type); gchar * (*get_mime_type) (CamelDataWrapper *data_wrapper); GMimeContentField * (*get_mime_type_field) (CamelDataWrapper *data_wrapper); void (*set_mime_type_field) (CamelDataWrapper *data_wrapper, GMimeContentField *mime_type_field); /* deprecated method */ CamelStream * (*get_stream) (CamelDataWrapper *data_wrapper); void (*write_to_stream) (CamelDataWrapper *data_wrapper, CamelStream *stream); void (*construct_from_stream) (CamelDataWrapper *data_wrapper, CamelStream *stream); } CamelDataWrapperClass; /* Standard Gtk function */ GtkType camel_data_wrapper_get_type (void); /* public methods */ void camel_data_wrapper_write_to_stream (CamelDataWrapper *data_wrapper, CamelStream *stream); void camel_data_wrapper_set_mime_type (CamelDataWrapper *data_wrapper, const gchar *mime_type); gchar * camel_data_wrapper_get_mime_type (CamelDataWrapper *data_wrapper); GMimeContentField * camel_data_wrapper_get_mime_type_field (CamelDataWrapper *data_wrapper); void camel_data_wrapper_set_mime_type_field (CamelDataWrapper *data_wrapper, GMimeContentField *mime_type); void camel_data_wrapper_set_input_stream (CamelDataWrapper *data_wrapper, CamelStream *stream); CamelStream * camel_data_wrapper_get_input_stream (CamelDataWrapper *data_wrapper); void camel_data_wrapper_set_output_stream (CamelDataWrapper *data_wrapper, CamelStream *stream); CamelStream * camel_data_wrapper_get_output_stream (CamelDataWrapper *data_wrapper); /* deprecated methods. Left until the new parser scheme is ok */ CamelStream * camel_data_wrapper_get_stream (CamelDataWrapper *data_wrapper); void camel_data_wrapper_construct_from_stream (CamelDataWrapper *data_wrapper, CamelStream *stream); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* CAMEL_DATA_WRAPPER_H */ n value='gstreamer0.10-removal'>gstreamer0.10-removal FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* - update png to 1.5.10dinoex2012-06-011-0/+1
* Now that the Java 1.3 and Java 1.4 ports are deprecated and will expire soon,linimon2011-07-211-2/+1
* - Get Rid MD5 supportmiwi2011-03-191-1/+0
* - Update to 1.11pav2010-08-044-62/+169
* - update to 1.4.1dinoex2010-03-281-1/+1
* - update to jpeg-8dinoex2010-02-051-0/+1
* - Update to 0.10.6miwi2009-10-293-6/+4
* - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-221-2/+1
* - Reset maintainer and remove old MASTER_SITES.wxs2009-08-021-1/+1
* Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-0/+1
* - Update to 0.10.5pav2007-10-266-129/+77
* - drop maintainership on maintainer requestmm2007-05-251-1/+4
* - Welcome X.org 7.2 \o/.flz2007-05-201-0/+1
* SHA256ifyedwin2006-01-221-0/+1
* Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-2/+2
* Unbreak by fixing packing listhq2005-12-192-10/+10