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
QString decodedText(bool trimText, bool removeTrailingNewlines=false) const
Content * parent()
QList< Content * > contents()
The EncryptedMessagePart class.
Definition mimetreeparser/src/messagepart.h:336
The BodyPartFormatter class.
Definition bodypartformatter.h:31
virtual MimeTreeParser::ObjectTreeParser * objectTreeParser() const =0
For making it easier to refactor, add objectTreeParser.
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...
virtual KMime::Content * content() const =0
Returns the KMime::Content node represented here.
virtual bool decryptMessage() const =0
Return true if an encrypted mail should be decrypted.
The MimeMessagePart class.
Definition mimetreeparser/src/messagepart.h:149
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 11:58:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 11:58:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.