Messagelib

plugineditorbase.cpp
1 /*
2  SPDX-FileCopyrightText: 2021-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "plugineditorbase.h"
8 
9 using namespace MessageComposer;
10 
11 class MessageComposer::PluginEditorBasePrivate
12 {
13 public:
14  PluginEditorBasePrivate() = default;
15 
16  bool mIsEnabled = false;
17 };
18 
19 PluginEditorBase::PluginEditorBase(QObject *parent)
20  : QObject(parent)
21  , d(new MessageComposer::PluginEditorBasePrivate)
22 {
23 }
24 
25 PluginEditorBase::~PluginEditorBase() = default;
26 
27 bool PluginEditorBase::hasConfigureDialog() const
28 {
29  return false;
30 }
31 
32 void PluginEditorBase::showConfigureDialog(QWidget *parent)
33 {
34  Q_UNUSED(parent)
35 }
36 
37 void PluginEditorBase::emitConfigChanged()
38 {
39  Q_EMIT configChanged();
40 }
41 
42 QString PluginEditorBase::description() const
43 {
44  return {};
45 }
46 
47 void PluginEditorBase::setIsEnabled(bool enabled)
48 {
49  d->mIsEnabled = enabled;
50 }
51 
52 bool PluginEditorBase::isEnabled() const
53 {
54  return d->mIsEnabled;
55 }
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-2023 The KDE developers.
Generated on Mon Mar 27 2023 04:08:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.