Messagelib
multipartsigned.cpp
34 qCDebug(MIMETREEPARSER_LOG) << "multipart/signed must have exactly two child parts!" << Qt::endl << "processing as multipart/mixed";
36 return MessagePart::Ptr(new MimeMessagePart(part.objectTreeParser(), node->contents().at(0), false));
48 const QString signatureContentType = QLatin1StringView(signature->contentType()->mimeType().toLower());
50 qCWarning(MIMETREEPARSER_LOG) << "Message doesn't set the protocol for the multipart/signed content-type, "
57 if (protocolContentType == QLatin1StringView("application/pkcs7-signature") || protocolContentType == QLatin1StringView("application/x-pkcs7-signature")) {
76 new SignedMessagePart(part.objectTreeParser(), aCodec.decode(cleartext), protocol, part.nodeHelper()->fromAsString(node), signedData));
const Headers::ContentType * contentType() const
QByteArray decodedContent() const
QByteArray encodedContent(bool useCrLf=false) const
QList< Content * > contents()
QByteArray mimeType() const
QString parameter(QByteArrayView key) const
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.
The MimeMessagePart class.
Definition mimetreeparser/src/messagepart.h:149
The SignedMessagePart class.
Definition mimetreeparser/src/messagepart.h:405
const char * constData() const const
QByteArray toLower() const const
bool isEmpty() const const
QString toLower() const const
QTextStream & endl(QTextStream &stream)
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.