From 0c5d4a10e6f616f5a63787b8fbda86ec9fc487a9 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 24 Feb 2013 16:28:13 +0100 Subject: Message generation/parsing context. Charset conversion options. Preliminary implementation of RFC-6532. --- src/mailboxList.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/mailboxList.cpp') diff --git a/src/mailboxList.cpp b/src/mailboxList.cpp index b3106fb8..03a225f8 100644 --- a/src/mailboxList.cpp +++ b/src/mailboxList.cpp @@ -196,17 +196,18 @@ const std::vector > mailboxList::getChildComponents() } -void mailboxList::parseImpl(const string& buffer, const string::size_type position, - const string::size_type end, string::size_type* newPosition) +void mailboxList::parseImpl + (const parsingContext& ctx, const string& buffer, const string::size_type position, + const string::size_type end, string::size_type* newPosition) { - m_list.parse(buffer, position, end, newPosition); + m_list.parse(ctx, buffer, position, end, newPosition); } -void mailboxList::generateImpl(utility::outputStream& os, const string::size_type maxLineLength, +void mailboxList::generateImpl(const generationContext& ctx, utility::outputStream& os, const string::size_type curLinePos, string::size_type* newLinePos) const { - m_list.generate(os, maxLineLength, curLinePos, newLinePos); + m_list.generate(ctx, os, curLinePos, newLinePos); } -- cgit v1.2.3