aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-data-wrapper.c
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@inria.fr>1999-06-28 22:36:11 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-06-28 22:36:11 +0800
commit817f237398296dbdafc091d51a6fed2053a9c1c1 (patch)
treee5b08c4a07a052f67d286852b96daaaddb3c0840 /camel/camel-data-wrapper.c
parent0e4983d6b9e0450741ffa8d7c7b0257d5fbbf3a3 (diff)
downloadgsoc2013-evolution-817f237398296dbdafc091d51a6fed2053a9c1c1.tar
gsoc2013-evolution-817f237398296dbdafc091d51a6fed2053a9c1c1.tar.gz
gsoc2013-evolution-817f237398296dbdafc091d51a6fed2053a9c1c1.tar.bz2
gsoc2013-evolution-817f237398296dbdafc091d51a6fed2053a9c1c1.tar.lz
gsoc2013-evolution-817f237398296dbdafc091d51a6fed2053a9c1c1.tar.xz
gsoc2013-evolution-817f237398296dbdafc091d51a6fed2053a9c1c1.tar.zst
gsoc2013-evolution-817f237398296dbdafc091d51a6fed2053a9c1c1.zip
new field (content_type) and associated methods. (camel_mime_part_init):
1999-06-28 bertrand <Bertrand.Guiheneuf@inria.fr> * camel/camel-mime-part.c: new field (content_type) and associated methods. (camel_mime_part_init): initialize content_type field. (_parse_header_pair): now set content_type MimePart field instead of using DataWrapper Mime typing facility. 1999-06-28 bertrand <Bertrand.Guiheneuf@inria.fr> * camel/camel-data-wrapper.h: s/content_type/mime_type/ 1 svn path=/trunk/; revision=1002
Diffstat (limited to 'camel/camel-data-wrapper.c')
-rw-r--r--camel/camel-data-wrapper.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/camel/camel-data-wrapper.c b/camel/camel-data-wrapper.c
index f885e8a0a6..38d91b13e9 100644
--- a/camel/camel-data-wrapper.c
+++ b/camel/camel-data-wrapper.c
@@ -33,8 +33,8 @@ static GtkObjectClass *parent_class=NULL;
static void _construct_from_stream (CamelDataWrapper *data_wrapper, CamelStream *stream, guint size);
static void _write_to_stream (CamelDataWrapper *data_wrapper, CamelStream *stream);
-static void _set_content_type (CamelDataWrapper *data_wrapper, GString *content_type);
-static GString *_get_content_type (CamelDataWrapper *data_wrapper);
+static void _set_mime_type (CamelDataWrapper *data_wrapper, GString *mime_type);
+static GString *_get_mime_type (CamelDataWrapper *data_wrapper);
static void
camel_data_wrapper_class_init (CamelDataWrapperClass *camel_data_wrapper_class)
@@ -44,8 +44,8 @@ camel_data_wrapper_class_init (CamelDataWrapperClass *camel_data_wrapper_class)
/* virtual method definition */
camel_data_wrapper_class->write_to_stream = _write_to_stream;
camel_data_wrapper_class->construct_from_stream = _construct_from_stream;
- camel_data_wrapper_class->set_content_type = _set_content_type;
- camel_data_wrapper_class->get_content_type = _get_content_type;
+ camel_data_wrapper_class->set_mime_type = _set_mime_type;
+ camel_data_wrapper_class->get_mime_type = _get_mime_type;
/* virtual method overload */
}
@@ -59,7 +59,7 @@ camel_data_wrapper_init (gpointer object, gpointer klass)
{
CamelDataWrapper *camel_data_wrapper = CAMEL_DATA_WRAPPER (object);
- camel_data_wrapper->content_type = gmime_content_field_new (NULL, NULL);
+ camel_data_wrapper->mime_type = gmime_content_field_new (NULL, NULL);
}
@@ -147,29 +147,29 @@ camel_data_wrapper_construct_from_stream (CamelDataWrapper *data_wrapper, CamelS
static void
-_set_content_type (CamelDataWrapper *data_wrapper, GString *content_type)
+_set_mime_type (CamelDataWrapper *data_wrapper, GString *mime_type)
{
- g_assert (content_type);
- gmime_content_field_construct_from_string (data_wrapper->content_type, content_type);
+ g_assert (mime_type);
+ gmime_content_field_construct_from_string (data_wrapper->mime_type, mime_type);
}
void
-camel_data_wrapper_set_content_type (CamelDataWrapper *data_wrapper, GString *content_type)
+camel_data_wrapper_set_mime_type (CamelDataWrapper *data_wrapper, GString *mime_type)
{
- CDW_CLASS(data_wrapper)->set_content_type (data_wrapper, content_type);
+ CDW_CLASS(data_wrapper)->set_mime_type (data_wrapper, mime_type);
}
static GString *
-_get_content_type (CamelDataWrapper *data_wrapper)
+_get_mime_type (CamelDataWrapper *data_wrapper)
{
GString *mime_type;
- mime_type = gmime_content_field_get_mime_type (data_wrapper->content_type);
+ mime_type = gmime_content_field_get_mime_type (data_wrapper->mime_type);
return mime_type;
}
static GString *
-camel_data_wrapper_get_content_type (CamelDataWrapper *data_wrapper)
+camel_data_wrapper_get_mime_type (CamelDataWrapper *data_wrapper)
{
- return CDW_CLASS(data_wrapper)->get_content_type (data_wrapper);
+ return CDW_CLASS(data_wrapper)->get_mime_type (data_wrapper);
}