File indexing completed on 2024-11-17 04:44:13
0001 /* 0002 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "externalcomposerplugineditor.h" 0008 #include "externalcomposerconfiguredialog.h" 0009 #include "externalcomposerplugineditorinterface.h" 0010 #include <KPluginFactory> 0011 0012 K_PLUGIN_CLASS_WITH_JSON(ExternalComposerPluginEditor, "kmail_externalcomposereditorplugin.json") 0013 0014 ExternalComposerPluginEditor::ExternalComposerPluginEditor(QObject *parent, const QList<QVariant> &) 0015 : MessageComposer::PluginEditorInit(parent) 0016 { 0017 } 0018 0019 ExternalComposerPluginEditor::~ExternalComposerPluginEditor() = default; 0020 0021 MessageComposer::PluginEditorInitInterface *ExternalComposerPluginEditor::createInterface(QObject *parent) 0022 { 0023 return new ExternalComposerPluginEditorInterface(parent); 0024 } 0025 0026 bool ExternalComposerPluginEditor::hasConfigureDialog() const 0027 { 0028 return true; 0029 } 0030 0031 void ExternalComposerPluginEditor::showConfigureDialog(QWidget *parent) 0032 { 0033 ExternalComposerConfigureDialog dlg(parent); 0034 dlg.exec(); 0035 } 0036 0037 #include "externalcomposerplugineditor.moc" 0038 0039 #include "moc_externalcomposerplugineditor.cpp"