Messagelib

richtextcomposersignatures.h
1/*
2 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
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>
12namespace KIdentityManagementCore
13{
14class Signature;
15}
16
17namespace MessageComposer
18{
19class RichTextComposerNg;
20/**
21 * @brief The RichTextComposerSignatures class
22 * @author Laurent Montel <montel@kde.org>
23 */
24class MESSAGECOMPOSER_EXPORT RichTextComposerSignatures : public QObject
25{
26 Q_OBJECT
27public:
28 explicit RichTextComposerSignatures(MessageComposer::RichTextComposerNg *composer, QObject *parent = nullptr);
30
31 void cleanWhitespace(const KIdentityManagementCore::Signature &sig);
32
33 [[nodiscard]] bool replaceSignature(const KIdentityManagementCore::Signature &oldSig, const KIdentityManagementCore::Signature &newSig);
34
35private:
36 class RichTextComposerSignaturesPrivate;
37 std::unique_ptr<RichTextComposerSignaturesPrivate> const d;
38};
39}
The RichTextComposerNg 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-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.