SVN_SILENT made messages (.desktop file) - always resolve ours
[kdepim.git] / messageviewer / autotests / util.h
blob4ce45c0309572366f2d45f3479066891d5fdff7b
1 /*
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
17 02110-1301, USA.
19 #include "interfaces/htmlwriter.h"
20 #include "viewer/csshelper.h"
22 #include <KMime/Message>
24 class TestHtmlWriter : public MessageViewer::HtmlWriter
26 public:
27 explicit TestHtmlWriter() {}
28 virtual ~TestHtmlWriter() {}
30 virtual void begin(const QString &) {}
31 virtual void write(const QString &) {}
32 virtual void end() {}
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
42 public:
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);