Messagelib
applicationpkcs7mime.cpp
46 const auto isCorrectMimeType = mt == QByteArrayLiteral("application/pkcs7-mime") || mt == QByteArrayLiteral("application/x-pkcs7-mime");
48 && (ct->name().endsWith(QLatin1StringView("p7m")) || ct->name().endsWith(QLatin1StringView("p7s")) || ct->name().endsWith(QLatin1StringView("p7c")));
58 CertMessagePart::Ptr mp(new CertMessagePart(part.objectTreeParser(), node, smimeCrypto, part.source()->autoImportKeys()));
82 new EncryptedMessagePart(part.objectTreeParser(), node->decodedText(), smimeCrypto, part.nodeHelper()->fromAsString(node), node));
89 signTestNode = nullptr; // PENDING(marc) to be abs. sure, we'd need to have to look at the content
131 new SignedMessagePart(part.objectTreeParser(), aCodec.decode(signaturetext), smimeCrypto, part.nodeHelper()->fromAsString(node), signTestNode));
QString decodedText(bool trimText, bool removeTrailingNewlines=false) const
const Headers::ContentType * contentType() const
QByteArray head() const
QByteArray decodedContent() const
QByteArray mimeType() const
QString parameter(QByteArrayView key) const
The CertMessagePart class.
Definition mimetreeparser/src/messagepart.h:296
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 autoImportKeys() const =0
should keys be imported automatically
virtual bool decryptMessage() const =0
Return true if an encrypted mail should be decrypted.
The SignedMessagePart class.
Definition mimetreeparser/src/messagepart.h:405
const char * constData() const const
bool isEmpty() const const
bool isEmpty() const const
QString toLower() 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.