Messagelib

plugineditorinitinterface.h
1 /*
2  SPDX-FileCopyrightText: 2017-2021 Laurent Montel <[email protected]>
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>
12 namespace KPIMTextEdit
13 {
14 class RichTextComposer;
15 }
16 
17 namespace MessageComposer
18 {
19 class PluginEditorInitInterfacePrivate;
20 /**
21  * @brief The PluginEditorInitInterface class
22  * @author Laurent Montel <[email protected]>
23  */
24 class MESSAGECOMPOSER_EXPORT PluginEditorInitInterface : public QObject
25 {
26  Q_OBJECT
27 public:
28  explicit PluginEditorInitInterface(QObject *parent = nullptr);
29  ~PluginEditorInitInterface() override;
30 
31  virtual bool exec() = 0;
32 
33  void setParentWidget(QWidget *parent);
34  Q_REQUIRED_RESULT QWidget *parentWidget() const;
35 
36  Q_REQUIRED_RESULT KPIMTextEdit::RichTextComposer *richTextEditor() const;
37  void setRichTextEditor(KPIMTextEdit::RichTextComposer *richTextEditor);
38 
39 public Q_SLOTS:
40  virtual void reloadConfig();
41 
42 private:
43  std::unique_ptr<PluginEditorInitInterfacePrivate> const d;
44 };
45 }
46 
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
The PluginEditorInitInterface class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Dec 5 2021 23:04:54 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.