summaryrefslogtreecommitdiffstats
path: root/framework/src/domain/mimetreeparser/otp/autotests/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/domain/mimetreeparser/otp/autotests/util.h')
-rw-r--r--framework/src/domain/mimetreeparser/otp/autotests/util.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/framework/src/domain/mimetreeparser/otp/autotests/util.h b/framework/src/domain/mimetreeparser/otp/autotests/util.h
deleted file mode 100644
index ac4aa54f..00000000
--- a/framework/src/domain/mimetreeparser/otp/autotests/util.h
+++ /dev/null
@@ -1,43 +0,0 @@
1/*
2 Copyright (c) 2010 Thomas McGuire <thomas.mcguire@kdab.com>
3
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.
8
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.
13
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.
18*/
19#include "htmlwriter.h"
20
21#include <KMime/Message>
22
23class TestHtmlWriter : public MimeTreeParser::HtmlWriter
24{
25public:
26 explicit TestHtmlWriter() {}
27 virtual ~TestHtmlWriter() {}
28
29 void begin(const QString &) Q_DECL_OVERRIDE {}
30 void write(const QString &) Q_DECL_OVERRIDE {}
31 void end() Q_DECL_OVERRIDE {}
32 void reset() Q_DECL_OVERRIDE {}
33 void queue(const QString &str) Q_DECL_OVERRIDE {
34 html.append(str);
35 }
36 void flush() Q_DECL_OVERRIDE {}
37 void embedPart(const QByteArray &, const QString &) Q_DECL_OVERRIDE {}
38 void extraHead(const QString &) Q_DECL_OVERRIDE {}
39
40 QString html;
41};
42
43KMime::Message::Ptr readAndParseMail(const QString &mailFile);