Messagelib
nodehelper.h
77 [[nodiscard]] QList<MessagePartPtr> messagePartsOfMailHeader(const char *header, const KMime::Content *message) const;
78 KMime::Headers::Base const *mailHeaderAsBase(const char *header, const KMime::Content *message) const;
79 [[nodiscard]] QSharedPointer<KMime::Headers::Generics::AddressList> mailHeaderAsAddressList(const char *header, const KMime::Content *message) const;
80 [[nodiscard]] QList<KMime::Headers::Base *> headers(const char *header, const KMime::Content *message);
88 /** Get the extra nodes attached to the @param topLevelNode and all sub-nodes of @param topLevelNode */
91 /** Return a modified message (node tree) starting from @param topLevelNode that has the original nodes and the extra nodes.
102 Interface::BodyPartMemento *bodyPartMemento(KMime::Content *node, const QByteArray &which) const;
104 void setBodyPartMemento(KMime::Content *node, const QByteArray &which, Interface::BodyPartMemento *memento);
149 [[nodiscard]] KMime::Content *fromHREF(const KMime::Message::Ptr &mMessage, const QUrl &href) const;
177 [[nodiscard]] static QString fixEncoding(const QString &encoding); // TODO(Andras) move to a utility class?
185 [[nodiscard]] static QString encodingForName(const QString &descriptiveName); // TODO(Andras) move to a utility class?
209 [[nodiscard]] KMime::Message::Ptr unencryptedMessage(const KMime::Message::Ptr &originalMessage);
225 bool unencryptedMessage_helper(KMime::Content *node, QByteArray &resultingData, bool addHeaders, int recursionLevel = 1);
QSharedPointer< Message > Ptr
The AttachmentTemporaryFilesDirs class.
Definition attachmenttemporaryfilesdirs.h:21
interface of classes that implement status for BodyPartFormatters.
Definition bodypart.h:34
static QByteArray charset(const KMime::Content *node)
Returns the charset for the given node.
Definition nodehelper.cpp:327
static QStringList supportedEncodings()
Return a list of the supported encodings.
Definition nodehelper.cpp:801
QUrl tempFileUrlFromNode(const KMime::Content *node)
Returns the temporary file path and name where this node was saved, or an empty url if it wasn't save...
Definition nodehelper.cpp:245
static QString fixEncoding(const QString &encoding)
Fixes an encoding received by a KDE function and returns the proper, MIME-compliant encoding name ins...
Definition nodehelper.cpp:781
QList< KMime::Content * > extraContents(KMime::Content *topLevelNode) const
Get the extra nodes attached to the.
Definition nodehelper.cpp:847
KMime::Message * messageWithExtraContent(KMime::Content *topLevelNode)
Return a modified message (node tree) starting from.
Definition nodehelper.cpp:899
static QString encodingForName(const QString &descriptiveName)
Drop-in replacement for KCharsets::encodingForName().
Definition nodehelper.cpp:795
void addTempFile(const QString &file)
Add a file to the list of managed temporary files.
Definition nodehelper.cpp:308
QList< KMime::Content * > attachmentsOfExtraContents() const
Returns a list of attachments of attached extra content nodes.
Definition nodehelper.cpp:1074
static bool isInEncapsulatedMessage(KMime::Content *node)
Definition nodehelper.cpp:313
static QString fileName(const KMime::Content *node)
Returns a usable filename for a node, that can be the filename from the content disposition header,...
Definition nodehelper.cpp:587
KMime::Message::Ptr unencryptedMessage(const KMime::Message::Ptr &originalMessage)
This function returns the unencrypted message that is based on originalMessage.
Definition nodehelper.cpp:1053
void attachExtraContent(KMime::Content *topLevelNode, KMime::Content *content)
Attach an extra node to an existing node.
Definition nodehelper.cpp:835
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
QString createTempDir(const QString ¶m=QString())
Creates a temporary dir for saving attachments, etc.
Definition nodehelper.cpp:269
QString writeNodeToTempFile(KMime::Content *node)
Writes the given message part to a temporary file and returns the name of this file or QString() if w...
Definition nodehelper.cpp:197
QByteArray codecName(KMime::Content *node) const
Get a codec suitable for this message part.
Definition nodehelper.cpp:559
void setOverrideCodec(KMime::Content *node, const QByteArray &codec)
Set the charset the user selected for the message to display.
Definition nodehelper.cpp:550
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:40 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:40 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.