Messagelib

richtextcomposersignatures.h
1 /*
2  SPDX-FileCopyrightText: 2015-2021 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 }
The RichTextComposerNg class.
The RichTextComposerSignatures class.
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Dec 2 2021 23:06:09 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.