Messagelib

plugineditorinitinterface.h
1/*
2 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "messagecomposer_export.h"
10#include <QObject>
11#include <memory>
12namespace KPIMTextEdit
13{
14class RichTextComposer;
15}
16
17namespace MessageComposer
18{
19class PluginEditorInitInterfacePrivate;
20/**
21 * @brief The PluginEditorInitInterface class
22 * @author Laurent Montel <montel@kde.org>
23 */
24class MESSAGECOMPOSER_EXPORT PluginEditorInitInterface : public QObject
25{
26 Q_OBJECT
27public:
28 explicit PluginEditorInitInterface(QObject *parent = nullptr);
30
31 [[nodiscard]] virtual bool exec() = 0;
32
33 void setParentWidget(QWidget *parent);
34 [[nodiscard]] QWidget *parentWidget() const;
35
36 [[nodiscard]] KPIMTextEdit::RichTextComposer *richTextEditor() const;
37 void setRichTextEditor(KPIMTextEdit::RichTextComposer *richTextEditor);
38
39public Q_SLOTS:
40 virtual void reloadConfig();
41
42private:
43 std::unique_ptr<PluginEditorInitInterfacePrivate> const d;
44};
45}
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 Sun Feb 25 2024 18:37:31 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.