Messagelib

plugineditorinitinterface.cpp
1/*
2 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "plugineditorinitinterface.h"
8
9using namespace MessageComposer;
10
11class MessageComposer::PluginEditorInitInterfacePrivate
12{
13public:
14 PluginEditorInitInterfacePrivate() = default;
15
16 QWidget *mParentWidget = nullptr;
17 KPIMTextEdit::RichTextComposer *mEditor = nullptr;
18};
19
20PluginEditorInitInterface::PluginEditorInitInterface(QObject *parent)
21 : QObject(parent)
22 , d(new MessageComposer::PluginEditorInitInterfacePrivate)
23{
24}
25
26PluginEditorInitInterface::~PluginEditorInitInterface() = default;
27
28void PluginEditorInitInterface::setParentWidget(QWidget *parent)
29{
30 d->mParentWidget = parent;
31}
32
33QWidget *PluginEditorInitInterface::parentWidget() const
34{
35 return d->mParentWidget;
36}
37
38KPIMTextEdit::RichTextComposer *PluginEditorInitInterface::richTextEditor() const
39{
40 return d->mEditor;
41}
42
43void PluginEditorInitInterface::setRichTextEditor(KPIMTextEdit::RichTextComposer *richTextEditor)
44{
45 d->mEditor = richTextEditor;
46}
47
48void PluginEditorInitInterface::reloadConfig()
49{
50 // Reimplement it
51}
52
53#include "moc_plugineditorinitinterface.cpp"
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-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.