diff options
Diffstat (limited to 'framework/domain/objecttreesource.cpp')
-rw-r--r-- | framework/domain/objecttreesource.cpp | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/framework/domain/objecttreesource.cpp b/framework/domain/objecttreesource.cpp index d14b7b9b..e5e3b9cc 100644 --- a/framework/domain/objecttreesource.cpp +++ b/framework/domain/objecttreesource.cpp | |||
@@ -19,7 +19,8 @@ | |||
19 | 19 | ||
20 | #include "objecttreesource.h" | 20 | #include "objecttreesource.h" |
21 | 21 | ||
22 | #include <MessageViewer/AttachmentStrategy> | 22 | #include <MimeTreeParser/AttachmentStrategy> |
23 | #include <MimeTreeParser/BodyPartFormatterBaseFactory> | ||
23 | 24 | ||
24 | class ObjectSourcePrivate | 25 | class ObjectSourcePrivate |
25 | { | 26 | { |
@@ -33,16 +34,17 @@ public: | |||
33 | { | 34 | { |
34 | 35 | ||
35 | } | 36 | } |
36 | MessageViewer::HtmlWriter *mWriter; | 37 | MimeTreeParser::HtmlWriter *mWriter; |
37 | MessageViewer::CSSHelperBase *mCSSHelper; | 38 | MimeTreeParser::CSSHelperBase *mCSSHelper; |
39 | MimeTreeParser::BodyPartFormatterBaseFactory mBodyPartFormatterBaseFactory; | ||
38 | bool mAllowDecryption; | 40 | bool mAllowDecryption; |
39 | bool mHtmlLoadExternal; | 41 | bool mHtmlLoadExternal; |
40 | bool mHtmlMail; | 42 | bool mHtmlMail; |
41 | }; | 43 | }; |
42 | 44 | ||
43 | ObjectTreeSource::ObjectTreeSource(MessageViewer::HtmlWriter *writer, | 45 | ObjectTreeSource::ObjectTreeSource(MimeTreeParser::HtmlWriter *writer, |
44 | MessageViewer::CSSHelperBase *cssHelper) | 46 | MimeTreeParser::CSSHelperBase *cssHelper) |
45 | : MessageViewer::ObjectTreeSourceIf() | 47 | : MimeTreeParser::ObjectTreeSourceIf() |
46 | , d(new ObjectSourcePrivate) | 48 | , d(new ObjectSourcePrivate) |
47 | { | 49 | { |
48 | d->mWriter = writer; | 50 | d->mWriter = writer; |
@@ -59,11 +61,11 @@ void ObjectTreeSource::setAllowDecryption(bool allowDecryption) | |||
59 | d->mAllowDecryption = allowDecryption; | 61 | d->mAllowDecryption = allowDecryption; |
60 | } | 62 | } |
61 | 63 | ||
62 | MessageViewer::HtmlWriter *ObjectTreeSource::htmlWriter() | 64 | MimeTreeParser::HtmlWriter *ObjectTreeSource::htmlWriter() |
63 | { | 65 | { |
64 | return d->mWriter; | 66 | return d->mWriter; |
65 | } | 67 | } |
66 | MessageViewer::CSSHelperBase *ObjectTreeSource::cssHelper() | 68 | MimeTreeParser::CSSHelperBase *ObjectTreeSource::cssHelper() |
67 | { | 69 | { |
68 | return d->mCSSHelper; | 70 | return d->mCSSHelper; |
69 | } | 71 | } |
@@ -113,9 +115,9 @@ QString ObjectTreeSource::createMessageHeader(KMime::Message *message) | |||
113 | return QString(); | 115 | return QString(); |
114 | } | 116 | } |
115 | 117 | ||
116 | const MessageViewer::AttachmentStrategy *ObjectTreeSource::attachmentStrategy() | 118 | const MimeTreeParser::AttachmentStrategy *ObjectTreeSource::attachmentStrategy() |
117 | { | 119 | { |
118 | return MessageViewer::AttachmentStrategy::smart(); | 120 | return MimeTreeParser::AttachmentStrategy::smart(); |
119 | } | 121 | } |
120 | 122 | ||
121 | QObject *ObjectTreeSource::sourceObject() | 123 | QObject *ObjectTreeSource::sourceObject() |
@@ -123,7 +125,7 @@ QObject *ObjectTreeSource::sourceObject() | |||
123 | return Q_NULLPTR; | 125 | return Q_NULLPTR; |
124 | } | 126 | } |
125 | 127 | ||
126 | void ObjectTreeSource::setHtmlMode(MessageViewer::Util::HtmlMode mode) | 128 | void ObjectTreeSource::setHtmlMode(MimeTreeParser::Util::HtmlMode mode) |
127 | { | 129 | { |
128 | Q_UNUSED(mode); | 130 | Q_UNUSED(mode); |
129 | } | 131 | } |
@@ -142,3 +144,8 @@ bool ObjectTreeSource::showExpandQuotesMark() const | |||
142 | { | 144 | { |
143 | return false; | 145 | return false; |
144 | } | 146 | } |
147 | |||
148 | const MimeTreeParser::BodyPartFormatterBaseFactory *ObjectTreeSource::bodyPartFormatterFactory() | ||
149 | { | ||
150 | return &(d->mBodyPartFormatterBaseFactory); | ||
151 | } | ||