Messagelib
applicationpkcs7mime.cpp
48 const auto isCorrectMimeType = mt == QByteArrayLiteral("application/pkcs7-mime") || mt == QByteArrayLiteral("application/x-pkcs7-mime");
50 && (ct->name().endsWith(QLatin1String("p7m")) || ct->name().endsWith(QLatin1String("p7s")) || ct->name().endsWith(QLatin1String("p7c")));
55 const QString smimeType = node->contentType(false)->parameter(QStringLiteral("smime-type")).toLower();
60 CertMessagePart::Ptr mp(new CertMessagePart(part.objectTreeParser(), node, smimeCrypto, part.source()->autoImportKeys()));
84 new EncryptedMessagePart(part.objectTreeParser(), node->decodedText(), smimeCrypto, part.nodeHelper()->fromAsString(node), node));
91 signTestNode = nullptr; // PENDING(marc) to be abs. sure, we'd need to have to look at the content
133 new SignedMessagePart(part.objectTreeParser(), aCodec->toUnicode(signaturetext), smimeCrypto, part.nodeHelper()->fromAsString(node), signTestNode));
The BodyPartFormatter class.
Definition: bodypartformatter.h:30
virtual MimeTreeParser::ObjectTreeParser * objectTreeParser() const =0
For making it easier to refactor, add objectTreeParser.
virtual bool autoImportKeys() const =0
should keys be imported automatically
QByteArray mimeType() const
The EncryptedMessagePart class.
Definition: mimetreeparser/src/messagepart.h:329
The CertMessagePart class.
Definition: mimetreeparser/src/messagepart.h:289
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)
QString parameter(const QString &key) const
bool isEmpty() const const
virtual bool decryptMessage() const =0
Return true if an encrypted mail should be decrypted.
virtual KMime::Content * content() const =0
Returns the KMime::Content node represented here.
QByteArray head() const
QByteArray decodedContent()
bool isEmpty() const const
The SignedMessagePart class.
Definition: mimetreeparser/src/messagepart.h:397
Headers::ContentType * contentType(bool create=true)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Mar 24 2023 04:08:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Mar 24 2023 04:08:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.