Messagelib

plugineditorbase.cpp
1/*
2 SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "plugineditorbase.h"
8
9using namespace MessageComposer;
10
11class MessageComposer::PluginEditorBasePrivate
12{
13public:
14 PluginEditorBasePrivate() = default;
15
16 bool mIsEnabled = false;
17};
18
19PluginEditorBase::PluginEditorBase(QObject *parent)
20 : QObject(parent)
21 , d(new MessageComposer::PluginEditorBasePrivate)
22{
23}
24
25PluginEditorBase::~PluginEditorBase() = default;
26
27bool PluginEditorBase::hasConfigureDialog() const
28{
29 return false;
30}
31
32void PluginEditorBase::showConfigureDialog(QWidget *parent)
33{
34 Q_UNUSED(parent)
35}
36
37void PluginEditorBase::emitConfigChanged()
38{
39 Q_EMIT configChanged();
40}
41
42QString PluginEditorBase::description() const
43{
44 return {};
45}
46
47void PluginEditorBase::setIsEnabled(bool enabled)
48{
49 d->mIsEnabled = enabled;
50}
51
52bool PluginEditorBase::isEnabled() const
53{
54 return d->mIsEnabled;
55}
56
57#include "moc_plugineditorbase.cpp"
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
Q_EMITQ_EMIT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.