Messagelib

plugineditorinitinterface.cpp
1 /*
2  SPDX-FileCopyrightText: 2017-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "plugineditorinitinterface.h"
8 
9 using namespace MessageComposer;
10 
11 class MessageComposer::PluginEditorInitInterfacePrivate
12 {
13 public:
14  PluginEditorInitInterfacePrivate() = default;
15 
16  QWidget *mParentWidget = nullptr;
17  KPIMTextEdit::RichTextComposer *mEditor = nullptr;
18 };
19 
20 PluginEditorInitInterface::PluginEditorInitInterface(QObject *parent)
21  : QObject(parent)
22  , d(new MessageComposer::PluginEditorInitInterfacePrivate)
23 {
24 }
25 
26 PluginEditorInitInterface::~PluginEditorInitInterface() = default;
27 
28 void PluginEditorInitInterface::setParentWidget(QWidget *parent)
29 {
30  d->mParentWidget = parent;
31 }
32 
33 QWidget *PluginEditorInitInterface::parentWidget() const
34 {
35  return d->mParentWidget;
36 }
37 
38 KPIMTextEdit::RichTextComposer *PluginEditorInitInterface::richTextEditor() const
39 {
40  return d->mEditor;
41 }
42 
43 void PluginEditorInitInterface::setRichTextEditor(KPIMTextEdit::RichTextComposer *richTextEditor)
44 {
45  d->mEditor = richTextEditor;
46 }
47 
48 void PluginEditorInitInterface::reloadConfig()
49 {
50  // Reimplement it
51 }
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Mar 24 2023 04:08:32 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.