diff options
author | Sandro Knauß <sknauss@kde.org> | 2016-11-22 15:36:47 +0100 |
---|---|---|
committer | Sandro Knauß <sknauss@kde.org> | 2016-11-23 16:38:21 +0100 |
commit | 397ecfa3a4acde2a4c3cff1ceba95ad8c803fa6a (patch) | |
tree | bc06efb6cf221ba5bda214750655209ff4a3660c /framework/domain/mimetreeparser/interface.cpp | |
parent | 2629a080ee31fbb4ec91b7fd12db2c6f647a3281 (diff) | |
download | kube-397ecfa3a4acde2a4c3cff1ceba95ad8c803fa6a.tar.gz kube-397ecfa3a4acde2a4c3cff1ceba95ad8c803fa6a.zip |
Add some TODOs
Diffstat (limited to 'framework/domain/mimetreeparser/interface.cpp')
-rw-r--r-- | framework/domain/mimetreeparser/interface.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/domain/mimetreeparser/interface.cpp b/framework/domain/mimetreeparser/interface.cpp index 2380e624..663a2013 100644 --- a/framework/domain/mimetreeparser/interface.cpp +++ b/framework/domain/mimetreeparser/interface.cpp | |||
@@ -247,7 +247,6 @@ Signature::Signature(SignaturePrivate *d_ptr) | |||
247 | :d(std::unique_ptr<SignaturePrivate>(d_ptr)) | 247 | :d(std::unique_ptr<SignaturePrivate>(d_ptr)) |
248 | { | 248 | { |
249 | d->q = this; | 249 | d->q = this; |
250 | |||
251 | } | 250 | } |
252 | 251 | ||
253 | Signature::~Signature() | 252 | Signature::~Signature() |
@@ -679,6 +678,8 @@ QByteArray Content::charset() const | |||
679 | QString Content::encodedContent() const | 678 | QString Content::encodedContent() const |
680 | { | 679 | { |
681 | return QString::fromUtf8(content()); | 680 | return QString::fromUtf8(content()); |
681 | // TODO: should set "raw" content not the already utf8 encoded content | ||
682 | // return encodedContent(charset()); | ||
682 | } | 683 | } |
683 | 684 | ||
684 | QString Content::encodedContent(const QByteArray &charset) const | 685 | QString Content::encodedContent(const QByteArray &charset) const |
@@ -828,7 +829,7 @@ void SinglePartPrivate::fillFrom(const MimeTreeParser::TextMessagePart::Ptr &par | |||
828 | mContent.clear(); | 829 | mContent.clear(); |
829 | foreach (const auto &mp, part->subParts()) { | 830 | foreach (const auto &mp, part->subParts()) { |
830 | auto d_ptr = new ContentPrivate; | 831 | auto d_ptr = new ContentPrivate; |
831 | d_ptr->mContent = mp->text().toUtf8(); | 832 | d_ptr->mContent = mp->text().toUtf8(); // TODO: should set "raw" content not the already utf8 encoded content |
832 | d_ptr->mParent = q; | 833 | d_ptr->mParent = q; |
833 | const auto enc = mp.dynamicCast<MimeTreeParser::EncryptedMessagePart>(); | 834 | const auto enc = mp.dynamicCast<MimeTreeParser::EncryptedMessagePart>(); |
834 | auto sig = mp.dynamicCast<MimeTreeParser::SignedMessagePart>(); | 835 | auto sig = mp.dynamicCast<MimeTreeParser::SignedMessagePart>(); |