summaryrefslogtreecommitdiffstats
path: root/framework/src/domain/mime/mimetreeparser/bodypartformatter.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-29 16:17:04 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-06-04 12:57:04 +0200
commite452707fdfbd61be1e5633b516b653b7337e7865 (patch)
tree1e1d4b48ebf8d381f292436f2ba04b8763edc5de /framework/src/domain/mime/mimetreeparser/bodypartformatter.cpp
parent5a1033bdace740799a6e03389bee30e5a4de5d44 (diff)
downloadkube-e452707fdfbd61be1e5633b516b653b7337e7865.tar.gz
kube-e452707fdfbd61be1e5633b516b653b7337e7865.zip
Reduced the messagetreeparser to aproximately what we actually require
While in a much more managable state it's still not pretty. However, further refactoring can now gradually happen as we need to do further work on it. Things that should happen eventually: * Simplify the logic that creates the messageparts (we don't need the whole formatter plugin complexity) * Get rid of the nodehelper (let the parts hold the necessary data) * Get rid of partmetadata (let the part handleit)
Diffstat (limited to 'framework/src/domain/mime/mimetreeparser/bodypartformatter.cpp')
-rw-r--r--framework/src/domain/mime/mimetreeparser/bodypartformatter.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/framework/src/domain/mime/mimetreeparser/bodypartformatter.cpp b/framework/src/domain/mime/mimetreeparser/bodypartformatter.cpp
new file mode 100644
index 00000000..924600d4
--- /dev/null
+++ b/framework/src/domain/mime/mimetreeparser/bodypartformatter.cpp
@@ -0,0 +1,50 @@
1/* -*- mode: C++; c-file-style: "gnu" -*-
2 bodypartformatter.cpp
3
4 This file is part of KMail's plugin interface.
5 Copyright (c) 2016 Sandro Knauß <sknauss@kde.org>
6
7 KMail is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 KMail is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
21 In addition, as a special exception, the copyright holders give
22 permission to link the code of this program with any edition of
23 the Qt library by Trolltech AS, Norway (or with modified versions
24 of Qt that use the same license as Qt), and distribute linked
25 combinations including the two. You must obey the GNU General
26 Public License in all respects for all of the code used other than
27 Qt. If you modify this file, you may extend this exception to
28 your version of the file, but you are not obligated to do so. If
29 you do not wish to do so, delete this exception statement from
30 your version.
31*/
32
33#include "bodypartformatter.h"
34
35#include "bodypart.h"
36#include "objecttreeparser.h"
37
38using namespace MimeTreeParser::Interface;
39
40namespace MimeTreeParser
41{
42namespace Interface
43{
44
45MessagePart::Ptr BodyPartFormatter::process(BodyPart &part) const
46{
47 return {};
48}
49}
50}