summaryrefslogtreecommitdiff
path: root/camel/camel-mime-part.h
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@inria.fr>1999-06-28 14:36:11 +0000
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-06-28 14:36:11 +0000
commit18655f2d7b5863766c1e38b5ddf84e3507b4aee4 (patch)
tree0d77029075cdaeeddd9ccd310053aad236038bbe /camel/camel-mime-part.h
parent910e71b5a813f9fd568e478160d8545e6a995172 (diff)
downloadevolution-data-server-18655f2d7b5863766c1e38b5ddf84e3507b4aee4.tar.gz
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
Diffstat (limited to 'camel/camel-mime-part.h')
-rw-r--r--camel/camel-mime-part.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/camel/camel-mime-part.h b/camel/camel-mime-part.h
index eadf65ce6..ad3ce17d2 100644
--- a/camel/camel-mime-part.h
+++ b/camel/camel-mime-part.h
@@ -58,7 +58,8 @@ typedef struct
GString *encoding;
GString *filename;
GList *header_lines;
-
+
+ GMimeContentField *content_type;
CamelDataWrapper *content; /* part real content */
} CamelMimePart;
@@ -88,6 +89,8 @@ typedef struct {
GList * (*get_content_languages) (CamelMimePart *mime_part);
void (*set_header_lines) (CamelMimePart *mime_part, GList *header_lines);
GList * (*get_header_lines) (CamelMimePart *mime_part);
+ void (*set_content_type) (CamelMimePart *mime_part, GString *content_type);
+ GString * (*get_content_type) (CamelMimePart *mime_part);
gboolean (*parse_header_pair) (CamelMimePart *mime_part, GString *header_name, GString *header_value);