KMime
content.h
Go to the documentation of this file.
239 return const_cast<Content*>(this)->headers() | std::views::transform([](auto c) -> const Headers::Base* { return c; }) | std::views::as_const;
241 return const_cast<Content*>(this)->headers() | std::views::transform([](auto c) -> const Headers::Base* { return c; });
575 [[nodiscard]] inline QString decodedText(bool trimText, bool removeTrailingNewlines = false) const
619 return const_cast<Content*>(this)->attachments() | std::views::transform([](auto c) -> const Content* { return c; }) | std::views::as_const;
621 return const_cast<Content*>(this)->attachments() | std::views::transform([](auto c) -> const Content* { return c; });
634 return const_cast<Content*>(this)->contents() | std::views::transform([](auto c) -> const Content* { return c; }) | std::views::as_const;
Headers::ContentDescription * contentDescription(bool create=true)
Returns the Content-Description header.
bool removeHeader()
Searches for the first header of type T, and deletes it, removing it from this Content.
Definition content.h:813
Headers::ContentType * contentType(bool create=true)
Returns the Content-Type header.
QString decodedText(bool trimText, bool removeTrailingNewlines=false) const
Returns the decoded text.
Definition content.h:575
const Headers::ContentType * contentType() const
Returns the Content-Type header.
const Headers::ContentLocation * contentLocation() const
Returns the Content-Location header.
Headers::Base * headerByType(QByteArrayView type) const
Returns the first header of type type, if it exists.
Definition content.cpp:568
Headers::ContentTransferEncoding * contentTransferEncoding(bool create=true)
Returns the Content-Transfer-Encoding header.
Headers::ContentDisposition * contentDisposition(bool create=true)
Returns the Content-Disposition header.
const Headers::ContentTransferEncoding * contentTransferEncoding() const
Returns the Content-Transfer-Encoding header.
Headers::ContentID * contentID(bool create=true)
Returns the Content-ID header.
const Headers::ContentDisposition * contentDisposition() const
Returns the Content-Disposition header.
Headers::ContentLocation * contentLocation(bool create=true)
Returns the Content-Location header.
void appendHeader(Headers::Base *h)
Appends the specified header to the headers of this Content.
Definition content.cpp:599
const Headers::ContentDescription * contentDescription() const
Returns the Content-Description header.
Represents a "Content-Description" header.
Definition headers.h:1235
Represents a "Content-Disposition" header.
Definition headers.h:1140
Represents a "Content-Transfer-Encoding" header.
Definition headers.h:863
This file is part of the API for handling MIME data and defines the ContentIndex class.
This file is part of the API for handling MIME data and defines the various header classes:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:30:05 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:30:05 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.