aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-part.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-07-17 04:45:26 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-07-17 04:45:26 +0800
commitb83ddf044ce11b4c52996f7827d843465ad5659b (patch)
tree906e25e3703bfa9c2f048c1511cc37baa0189e18 /camel/camel-mime-part.h
parent0b562324921620bf50b946efe05895ac930fbb6e (diff)
downloadgsoc2013-evolution-b83ddf044ce11b4c52996f7827d843465ad5659b.tar
gsoc2013-evolution-b83ddf044ce11b4c52996f7827d843465ad5659b.tar.gz
gsoc2013-evolution-b83ddf044ce11b4c52996f7827d843465ad5659b.tar.bz2
gsoc2013-evolution-b83ddf044ce11b4c52996f7827d843465ad5659b.tar.lz
gsoc2013-evolution-b83ddf044ce11b4c52996f7827d843465ad5659b.tar.xz
gsoc2013-evolution-b83ddf044ce11b4c52996f7827d843465ad5659b.tar.zst
gsoc2013-evolution-b83ddf044ce11b4c52996f7827d843465ad5659b.zip
Add the CamelMimePartEncodingType definition here.
2003-07-14 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-utils.h: Add the CamelMimePartEncodingType definition here. * camel-mime-part.h: Remove the CamelMimePartEncodingType definition. * camel-mime-part-utils.c (simple_data_wrapper_construct_from_parser): Don't do any of the auto-detection we used to do here anymore. Just read the content into a memory buffer and record the encoding type. (camel_mime_part_construct_content_from_parser): Don't mangle the Content-Type struct here anymore. * camel-data-wrapper.c (camel_data_wrapper_init): Init encoding to DEFAULT. (write_to_stream): If the stream needs to be decoded, decode it. svn path=/trunk/; revision=21842
Diffstat (limited to 'camel/camel-mime-part.h')
-rw-r--r--camel/camel-mime-part.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/camel/camel-mime-part.h b/camel/camel-mime-part.h
index c925643f24..d53b660f50 100644
--- a/camel/camel-mime-part.h
+++ b/camel/camel-mime-part.h
@@ -31,7 +31,7 @@
#ifdef __cplusplus
extern "C" {
#pragma }
-#endif /* __cplusplus }*/
+#endif /* __cplusplus */
#include <camel/camel-medium.h>
#include <camel/camel-mime-utils.h>
@@ -42,23 +42,8 @@ extern "C" {
#define CAMEL_MIME_PART_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_MIME_PART_TYPE, CamelMimePartClass))
#define CAMEL_IS_MIME_PART(o) (CAMEL_CHECK_TYPE((o), CAMEL_MIME_PART_TYPE))
-/* note, if you change this, make sure you change the 'encodings' array in camel-mime-part.c */
-enum _CamelMimePartEncodingType {
- CAMEL_MIME_PART_ENCODING_DEFAULT,
- CAMEL_MIME_PART_ENCODING_7BIT,
- CAMEL_MIME_PART_ENCODING_8BIT,
- CAMEL_MIME_PART_ENCODING_BASE64,
- CAMEL_MIME_PART_ENCODING_QUOTEDPRINTABLE,
- CAMEL_MIME_PART_ENCODING_BINARY,
- CAMEL_MIME_PART_ENCODING_UUENCODE,
- CAMEL_MIME_PART_NUM_ENCODINGS
-};
-typedef enum _CamelMimePartEncodingType CamelMimePartEncodingType;
-
-
/* Do not change these values directly, you would regret it one day */
-struct _CamelMimePart
-{
+struct _CamelMimePart {
CamelMedium parent_object;
CamelContentType *content_type;