Messagelib

encrypted.h
1/*
2 SPDX-FileCopyrightText: 2017 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 "interfaces/bodypartformatter.h"
11
12namespace MimeTreeParser
13{
14class EncryptedBodyPartFormatter : public Interface::BodyPartFormatter
15{
16public:
17 enum EncryptionFlag {
18 AutoPGP = 0x0, ///< Detect PGP data automatically
19 ForcePGP = 0x1, ///< Always decode PGP data
20 };
21 Q_DECLARE_FLAGS(EncryptionFlags, EncryptionFlag)
22
23 [[nodiscard]] MessagePartPtr process(Interface::BodyPart &part) const override;
24 static const Interface::BodyPartFormatter *create(EncryptionFlags flags);
25
26private:
27 EncryptionFlags mFlags;
28};
29
30Q_DECLARE_OPERATORS_FOR_FLAGS(EncryptedBodyPartFormatter::EncryptionFlags)
31}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.