Messagelib
encrypted.cpp
24 const Interface::BodyPartFormatter *EncryptedBodyPartFormatter::create(EncryptedBodyPartFormatter::EncryptionFlags flags)
76 new EncryptedMessagePart(part.objectTreeParser(), node->decodedText(), useThisCryptProto, nodeHelper->fromAsString(node), node));
82 nodeHelper->setNodeProcessed(node, false); // Set the data node to done to prevent it from being processed
84 // if we already have a decrypted node for part.objectTreeParser() encrypted node, don't do the decryption again
112 if (node->topLevel()->textContent() != node && node->contentDisposition(false) && !tempNode->contentDisposition(false)) {
The BodyPartFormatter class.
Definition: bodypartformatter.h:30
virtual MimeTreeParser::ObjectTreeParser * objectTreeParser() const =0
For making it easier to refactor, add objectTreeParser.
QString filename() const
The EncryptedMessagePart class.
Definition: mimetreeparser/src/messagepart.h:329
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)
Content * topLevel() const
contentDisposition disposition() const
The MimeMessagePart class.
Definition: mimetreeparser/src/messagepart.h:145
QTextCodec * codecForName(const QByteArray &name)
virtual bool decryptMessage() const =0
Return true if an encrypted mail should be decrypted.
Headers::ContentDisposition * contentDisposition(bool create=true)
virtual KMime::Content * content() const =0
Returns the KMime::Content node represented here.
Content * textContent()
QByteArray decodedContent()
virtual const QTextCodec * overrideCodec()=0
The override codec that should be used for the mail.
static void magicSetType(KMime::Content *node, bool autoDecode=true)
Set the 'Content-Type' by mime-magic from the contents of the body.
Definition: mimetreeparser/src/nodehelper.cpp:491
virtual QByteArray name() const const=0
QVector< Content * > contents() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Mar 27 2023 04:08:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Mar 27 2023 04:08:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.