diff options
| author | Jeffrey Stedfast <fejj@ximian.com> | 2003-07-16 20:45:26 +0000 |
|---|---|---|
| committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-07-16 20:45:26 +0000 |
| commit | 7021e8a83d333182b02c65926ab2368adc9070f3 (patch) | |
| tree | 5d04dfe22433a1badc468e681bc2b50de219cfca /camel/camel-mime-part.h | |
| parent | 4eb6682f51b4d11de230f2e5282b7ebff02fa03a (diff) | |
| download | evolution-data-server-7021e8a83d333182b02c65926ab2368adc9070f3.tar.gz | |
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.
Diffstat (limited to 'camel/camel-mime-part.h')
| -rw-r--r-- | camel/camel-mime-part.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/camel/camel-mime-part.h b/camel/camel-mime-part.h index c925643f2..d53b660f5 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; |
