Messagelib

encrypted.h
1 /*
2  SPDX-FileCopyrightText: 2017 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 "interfaces/bodypartformatter.h"
11 
12 namespace MimeTreeParser
13 {
14 class EncryptedBodyPartFormatter : public Interface::BodyPartFormatter
15 {
16 public:
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  MessagePartPtr process(Interface::BodyPart &part) const override;
24  static const Interface::BodyPartFormatter *create(EncryptionFlags flags);
25 
26 private:
27  EncryptionFlags mFlags;
28 };
29 
30 Q_DECLARE_OPERATORS_FOR_FLAGS(EncryptedBodyPartFormatter::EncryptionFlags)
31 }
QAction * create(StandardAction id, const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu May 19 2022 03:53:25 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.