Messagelib

utils.h
1/*
2 SPDX-FileCopyrightText: 2016 Sandro Knauß <sknauss@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "interfaces/bodypart.h"
10#include "messagepart.h"
11
12#include <KMime/Content>
13
14namespace MimeTreeParser
15{
16/**
17 1. Create a new partNode using 'content' data and Content-Description
18 found in 'cntDesc'.
19 2. Parse the 'node' to display the content.
20*/
21[[nodiscard]] MimeMessagePart::Ptr createAndParseTempNode(Interface::BodyPart &part, KMime::Content *parentNode, const char *content, const char *cntDesc);
22
23[[nodiscard]] KMime::Content *findTypeInDirectChilds(KMime::Content *content, const QByteArray &mimeType);
24
25[[nodiscard]] MessagePart::Ptr toplevelTextNode(MessagePart::Ptr messageTree);
26}
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

KDE's Doxygen guidelines are available online.