diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-29 16:17:04 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-04 12:57:04 +0200 |
commit | e452707fdfbd61be1e5633b516b653b7337e7865 (patch) | |
tree | 1e1d4b48ebf8d381f292436f2ba04b8763edc5de /framework/src/domain/mime/mimetreeparser/autotests/nodehelpertest.h | |
parent | 5a1033bdace740799a6e03389bee30e5a4de5d44 (diff) | |
download | kube-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/autotests/nodehelpertest.h')
-rw-r--r-- | framework/src/domain/mime/mimetreeparser/autotests/nodehelpertest.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/framework/src/domain/mime/mimetreeparser/autotests/nodehelpertest.h b/framework/src/domain/mime/mimetreeparser/autotests/nodehelpertest.h new file mode 100644 index 00000000..ee01d2cb --- /dev/null +++ b/framework/src/domain/mime/mimetreeparser/autotests/nodehelpertest.h | |||
@@ -0,0 +1,44 @@ | |||
1 | /* Copyright 2015 Sandro Knauß <bugs@sandroknauss.de> | ||
2 | |||
3 | This program is free software; you can redistribute it and/or | ||
4 | modify it under the terms of the GNU General Public License as | ||
5 | published by the Free Software Foundation; either version 2 of | ||
6 | the License or (at your option) version 3 or any later version | ||
7 | accepted by the membership of KDE e.V. (or its successor approved | ||
8 | by the membership of KDE e.V.), which shall act as a proxy | ||
9 | defined in Section 14 of version 3 of the license. | ||
10 | |||
11 | This program is distributed in the hope that it will be useful, | ||
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | GNU General Public License for more details. | ||
15 | |||
16 | You should have received a copy of the GNU General Public License | ||
17 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
18 | */ | ||
19 | #ifndef NODEHELPERTEST_H | ||
20 | #define NODEHELPERTEST_H | ||
21 | |||
22 | #include <QObject> | ||
23 | |||
24 | #include <KMime/Message> | ||
25 | |||
26 | namespace MimeTreeParser | ||
27 | { | ||
28 | |||
29 | class NodeHelperTest : public QObject | ||
30 | { | ||
31 | Q_OBJECT | ||
32 | |||
33 | public: | ||
34 | NodeHelperTest(); | ||
35 | |||
36 | private Q_SLOTS: | ||
37 | void testPersistentIndex(); | ||
38 | void testLocalFiles(); | ||
39 | void testHREF(); | ||
40 | void testFromAsString(); | ||
41 | }; | ||
42 | |||
43 | } | ||
44 | #endif | ||