diff options
author | Vincent Richard <[email protected]> | 2013-02-24 15:28:13 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-02-24 15:28:13 +0000 |
commit | 0c5d4a10e6f616f5a63787b8fbda86ec9fc487a9 (patch) | |
tree | c04b535bffeeba3e95adae01b961740bdc3a938e /src/bodyPart.cpp | |
parent | Fixed filename case. (diff) | |
download | vmime-0c5d4a10e6f616f5a63787b8fbda86ec9fc487a9.tar.gz vmime-0c5d4a10e6f616f5a63787b8fbda86ec9fc487a9.zip |
Message generation/parsing context. Charset conversion options. Preliminary implementation of RFC-6532.
Diffstat (limited to 'src/bodyPart.cpp')
-rw-r--r-- | src/bodyPart.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/bodyPart.cpp b/src/bodyPart.cpp index fbe9f1ed..32544ba8 100644 --- a/src/bodyPart.cpp +++ b/src/bodyPart.cpp @@ -47,17 +47,18 @@ bodyPart::bodyPart(weak_ref <vmime::bodyPart> parentPart) void bodyPart::parseImpl - (ref <utility::parserInputStreamAdapter> parser, + (const parsingContext& ctx, + ref <utility::parserInputStreamAdapter> parser, const utility::stream::size_type position, const utility::stream::size_type end, utility::stream::size_type* newPosition) { // Parse the headers string::size_type pos = position; - m_header->parse(parser, pos, end, &pos); + m_header->parse(ctx, parser, pos, end, &pos); // Parse the body contents - m_body->parse(parser, pos, end, NULL); + m_body->parse(ctx, parser, pos, end, NULL); setParsedBounds(position, end); @@ -66,14 +67,15 @@ void bodyPart::parseImpl } -void bodyPart::generateImpl(utility::outputStream& os, const string::size_type maxLineLength, - const string::size_type /* curLinePos */, string::size_type* newLinePos) const +void bodyPart::generateImpl + (const generationContext& ctx, utility::outputStream& os, + const string::size_type /* curLinePos */, string::size_type* newLinePos) const { - m_header->generate(os, maxLineLength); + m_header->generate(ctx, os); os << CRLF; - m_body->generate(os, maxLineLength); + m_body->generate(ctx, os); if (newLinePos) *newLinePos = 0; |