2 Copyright (c) 2010 Thomas McGuire <thomas.mcguire@kdab.com>
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 #include "interfaces/htmlwriter.h"
20 #include "viewer/csshelper.h"
22 #include <KMime/Message>
24 class TestHtmlWriter
: public MessageViewer::HtmlWriter
27 explicit TestHtmlWriter() {}
28 virtual ~TestHtmlWriter() {}
30 virtual void begin(const QString
&) {}
31 virtual void write(const QString
&) {}
33 virtual void reset() {}
34 virtual void queue(const QString
&) {}
35 virtual void flush() {}
36 virtual void embedPart(const QByteArray
&, const QString
&) {}
37 virtual void extraHead(const QString
&) {}
40 class TestCSSHelper
: public MessageViewer::CSSHelper
43 TestCSSHelper() : MessageViewer::CSSHelper(0) {}
44 virtual ~TestCSSHelper() {}
46 QString
nonQuotedFontTag() const
48 return QStringLiteral("<");
51 QString
quoteFontTag(int) const
53 return QStringLiteral("<");
57 KMime::Message::Ptr
readAndParseMail(const QString
&mailFile
);