Messagelib
encrypted.cpp
22const Interface::BodyPartFormatter *EncryptedBodyPartFormatter::create(EncryptedBodyPartFormatter::EncryptionFlags flags)
74 new EncryptedMessagePart(part.objectTreeParser(), node->decodedText(), useThisCryptProto, nodeHelper->fromAsString(node), node));
80 nodeHelper->setNodeProcessed(node, false); // Set the data node to done to prevent it from being processed
82 // if we already have a decrypted node for part.objectTreeParser() encrypted node, don't do the decryption again
109 if (node->topLevel()->textContent() != node && node->contentDisposition(false) && !tempNode->contentDisposition(false)) {
129 nodeHelper->setNodeProcessed(node, false); // Set the data node to done to prevent it from being processed
QString decodedText(bool trimText, bool removeTrailingNewlines=false) const
Content * textContent()
QByteArray decodedContent() const
const Headers::ContentDisposition * contentDisposition() const
Content * topLevel()
QList< Content * > contents()
contentDisposition disposition() const
QString filename() const
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.
virtual QByteArray overrideCodecName() const =0
The override codec that should be used for the mail.
The MimeMessagePart class.
Definition mimetreeparser/src/messagepart.h:149
static void magicSetType(KMime::Content *node, bool autoDecode=true)
Set the 'Content-Type' by mime-magic from the contents of the body.
Definition nodehelper.cpp:457
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.