Messagelib
applicationpgpencrypted.cpp
32MessagePart::Ptr ApplicationPGPEncryptedBodyPartFormatter::process(Interface::BodyPart &part) const
37 qCWarning(MIMETREEPARSER_LOG) << "Unknown PGP Version String:" << node->decodedContent().trimmed();
44 KMime::Content *data = findTypeInDirectChilds(part.content()->parent(), "application/octet-stream");
53 new EncryptedMessagePart(part.objectTreeParser(), data->decodedText(), QGpgME::openpgp(), part.nodeHelper()->fromAsString(data), node));
58 part.nodeHelper()->setNodeProcessed(data, false); // Set the data node to done to prevent it from being processed
67 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()
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 Sat Dec 21 2024 16:59:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.