Messagelib

richtextcomposersignatures.h
1 /*
2  SPDX-FileCopyrightText: 2015-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "messagecomposer_export.h"
10 #include <QObject>
11 #include <memory>
12 namespace KIdentityManagement
13 {
14 class Signature;
15 }
16 
17 namespace MessageComposer
18 {
19 class RichTextComposerNg;
20 /**
21  * @brief The RichTextComposerSignatures class
22  * @author Laurent Montel <[email protected]>
23  */
24 class MESSAGECOMPOSER_EXPORT RichTextComposerSignatures : public QObject
25 {
26  Q_OBJECT
27 public:
28  explicit RichTextComposerSignatures(MessageComposer::RichTextComposerNg *composer, QObject *parent = nullptr);
29  ~RichTextComposerSignatures() override;
30 
31  void cleanWhitespace(const KIdentityManagement::Signature &sig);
32 
33  Q_REQUIRED_RESULT bool replaceSignature(const KIdentityManagement::Signature &oldSig, const KIdentityManagement::Signature &newSig);
34 
35 private:
36  class RichTextComposerSignaturesPrivate;
37  std::unique_ptr<RichTextComposerSignaturesPrivate> const d;
38 };
39 }
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
The RichTextComposerNg class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:12 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.