Messagelib
multipartencrypted.cpp
44 ATTENTION: This code is to be replaced by the new 'auto-detect' feature. --------------------------------------
57 ---------------------------------------------------------------------------------------------------------------
61 return MessagePart::Ptr(new MimeMessagePart(part.objectTreeParser(), node->contents().at(0), false));
67 new EncryptedMessagePart(part.objectTreeParser(), data->decodedText(), useThisCryptProto, part.nodeHelper()->fromAsString(data), node));
73 part.nodeHelper()->setNodeProcessed(data, false); // Set the data node to done to prevent it from being processed
77 // if we already have a decrypted node for part.objectTreeParser() encrypted node, don't do the decryption again
85 part.nodeHelper()->setNodeProcessed(data, false); // Set the data node to done to prevent it from being processed
The BodyPartFormatter class.
Definition: bodypartformatter.h:30
virtual MimeTreeParser::ObjectTreeParser * objectTreeParser() const =0
For making it easier to refactor, add objectTreeParser.
Content * parent() const
The EncryptedMessagePart class.
Definition: mimetreeparser/src/messagepart.h:332
virtual MimeTreeParser::NodeHelper * nodeHelper() const =0
Ok, this is ugly, exposing the node helper here, but there is too much useful stuff in there for real...
QString decodedText(bool trimText=false, bool removeTrailingNewlines=false)
QList< Content * > contents() const
The MimeMessagePart class.
Definition: mimetreeparser/src/messagepart.h:149
virtual bool decryptMessage() const =0
Return true if an encrypted mail should be decrypted.
virtual KMime::Content * content() const =0
Returns the KMime::Content node represented here.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 04:03:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 04:03:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.