Mailcommon

cryptoutils.h
1/*
2 * SPDX-FileCopyrightText: 2017 Daniel Vrátil <dvratil@kde.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 *
6 */
7
8#pragma once
9
10#include <KMime/Message>
11
12#include "mailcommon_export.h"
13
14namespace MailCommon
15{
16namespace CryptoUtils
17{
18[[nodiscard]] MAILCOMMON_EXPORT KMime::Message::Ptr assembleMessage(const KMime::Message::Ptr &orig, const KMime::Content *newContent);
19[[nodiscard]] MAILCOMMON_EXPORT KMime::Message::Ptr decryptMessage(const KMime::Message::Ptr &decrypt, bool &wasEncrypted);
20
21[[nodiscard]] MAILCOMMON_EXPORT bool isInlinePGP(const KMime::Content *content);
22[[nodiscard]] MAILCOMMON_EXPORT bool isPGP(const KMime::Content *content, bool allowOctetStream = false);
23[[nodiscard]] MAILCOMMON_EXPORT bool isSMIME(const KMime::Content *content);
24
25[[nodiscard]] MAILCOMMON_EXPORT bool isEncrypted(const KMime::Message *content);
26
27MAILCOMMON_EXPORT void copyHeader(const KMime::Headers::Base *header, KMime::Message::Ptr destMsg);
28[[nodiscard]] MAILCOMMON_EXPORT bool isContentHeader(const KMime::Headers::Base *header);
29}
30}
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:01 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.