Messagelib

utils.h
1 /*
2  SPDX-FileCopyrightText: 2016 Sandro Knauß <[email protected]>
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 
14 namespace 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 Q_REQUIRED_RESULT MimeMessagePart::Ptr createAndParseTempNode(Interface::BodyPart &part, KMime::Content *parentNode, const char *content, const char *cntDesc);
22 
23 Q_REQUIRED_RESULT KMime::Content *findTypeInDirectChilds(KMime::Content *content, const QByteArray &mimeType);
24 
25 Q_REQUIRED_RESULT MessagePart::Ptr toplevelTextNode(MessagePart::Ptr messageTree);
26 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Mar 27 2023 04:08:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.