summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--framework/domain/mimetreeparser/objecttreesource.cpp22
-rw-r--r--framework/domain/mimetreeparser/objecttreesource.h5
2 files changed, 11 insertions, 16 deletions
diff --git a/framework/domain/mimetreeparser/objecttreesource.cpp b/framework/domain/mimetreeparser/objecttreesource.cpp
index 12cf88ab..58667444 100644
--- a/framework/domain/mimetreeparser/objecttreesource.cpp
+++ b/framework/domain/mimetreeparser/objecttreesource.cpp
@@ -31,7 +31,7 @@ public:
31 : mWriter(0) 31 : mWriter(0)
32 , mAllowDecryption(true) 32 , mAllowDecryption(true)
33 , mHtmlLoadExternal(true) 33 , mHtmlLoadExternal(true)
34 , mHtmlMail(true) 34 , mPreferredMode(MimeTreeParser::Util::Html)
35 { 35 {
36 36
37 } 37 }
@@ -39,7 +39,7 @@ public:
39 MimeTreeParser::BodyPartFormatterBaseFactory mBodyPartFormatterBaseFactory; 39 MimeTreeParser::BodyPartFormatterBaseFactory mBodyPartFormatterBaseFactory;
40 bool mAllowDecryption; 40 bool mAllowDecryption;
41 bool mHtmlLoadExternal; 41 bool mHtmlLoadExternal;
42 bool mHtmlMail; 42 MimeTreeParser::Util::HtmlMode mPreferredMode;
43}; 43};
44 44
45ObjectTreeSource::ObjectTreeSource(MimeTreeParser::HtmlWriter *writer) 45ObjectTreeSource::ObjectTreeSource(MimeTreeParser::HtmlWriter *writer)
@@ -74,16 +74,6 @@ void ObjectTreeSource::setHtmlLoadExternal(bool loadExternal)
74 d->mHtmlLoadExternal = loadExternal; 74 d->mHtmlLoadExternal = loadExternal;
75} 75}
76 76
77bool ObjectTreeSource::htmlMail() const
78{
79 return d->mHtmlMail;
80}
81
82void ObjectTreeSource::setHtmlMail(bool htmlMail)
83{
84 d->mHtmlMail = htmlMail;
85}
86
87bool ObjectTreeSource::decryptMessage() const 77bool ObjectTreeSource::decryptMessage() const
88{ 78{
89 return d->mAllowDecryption; 79 return d->mAllowDecryption;
@@ -119,9 +109,15 @@ QObject *ObjectTreeSource::sourceObject()
119 return Q_NULLPTR; 109 return Q_NULLPTR;
120} 110}
121 111
122void ObjectTreeSource::setHtmlMode(MimeTreeParser::Util::HtmlMode mode) 112void ObjectTreeSource::setHtmlMode(MimeTreeParser::Util::HtmlMode mode, const QList<MimeTreeParser::Util::HtmlMode> &availableModes)
123{ 113{
124 Q_UNUSED(mode); 114 Q_UNUSED(mode);
115 Q_UNUSED(availableModes);
116}
117
118MimeTreeParser::Util::HtmlMode ObjectTreeSource::preferredMode() const
119{
120 return d->mPreferredMode;
125} 121}
126 122
127bool ObjectTreeSource::autoImportKeys() const 123bool ObjectTreeSource::autoImportKeys() const
diff --git a/framework/domain/mimetreeparser/objecttreesource.h b/framework/domain/mimetreeparser/objecttreesource.h
index bb0cd679..42433e71 100644
--- a/framework/domain/mimetreeparser/objecttreesource.h
+++ b/framework/domain/mimetreeparser/objecttreesource.h
@@ -31,12 +31,11 @@ public:
31 ObjectTreeSource(MimeTreeParser::HtmlWriter *writer); 31 ObjectTreeSource(MimeTreeParser::HtmlWriter *writer);
32 virtual ~ObjectTreeSource(); 32 virtual ~ObjectTreeSource();
33 void setHtmlLoadExternal(bool loadExternal); 33 void setHtmlLoadExternal(bool loadExternal);
34 void setHtmlMail(bool htmlMail);
35 bool htmlMail() const Q_DECL_OVERRIDE;
36 bool decryptMessage() const Q_DECL_OVERRIDE; 34 bool decryptMessage() const Q_DECL_OVERRIDE;
37 bool htmlLoadExternal() const Q_DECL_OVERRIDE; 35 bool htmlLoadExternal() const Q_DECL_OVERRIDE;
38 bool showSignatureDetails() const Q_DECL_OVERRIDE; 36 bool showSignatureDetails() const Q_DECL_OVERRIDE;
39 void setHtmlMode(MimeTreeParser::Util::HtmlMode mode) Q_DECL_OVERRIDE; 37 void setHtmlMode(MimeTreeParser::Util::HtmlMode mode, const QList<MimeTreeParser::Util::HtmlMode> &availableModes) Q_DECL_OVERRIDE;
38 MimeTreeParser::Util::HtmlMode preferredMode() const Q_DECL_OVERRIDE;
40 void setAllowDecryption(bool allowDecryption); 39 void setAllowDecryption(bool allowDecryption);
41 int levelQuote() const Q_DECL_OVERRIDE; 40 int levelQuote() const Q_DECL_OVERRIDE;
42 const QTextCodec *overrideCodec() Q_DECL_OVERRIDE; 41 const QTextCodec *overrideCodec() Q_DECL_OVERRIDE;