File indexing completed on 2025-01-05 04:49:46
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "viewerplugincreatenote.h" 0008 #include "viewerplugincreatenoteinterface.h" 0009 #include <KActionCollection> 0010 #include <KPluginFactory> 0011 0012 using namespace MessageViewer; 0013 K_PLUGIN_CLASS_WITH_JSON(ViewerPluginCreatenote, "messageviewer_createnoteplugin.json") 0014 0015 ViewerPluginCreatenote::ViewerPluginCreatenote(QObject *parent, const QList<QVariant> &) 0016 : MessageViewer::ViewerPlugin(parent) 0017 { 0018 } 0019 0020 ViewerPluginInterface *ViewerPluginCreatenote::createView(QWidget *parent, KActionCollection *ac) 0021 { 0022 MessageViewer::ViewerPluginInterface *view = new MessageViewer::ViewerPluginCreatenoteInterface(ac, parent); 0023 return view; 0024 } 0025 0026 QString ViewerPluginCreatenote::viewerPluginName() const 0027 { 0028 return QStringLiteral("create-task"); 0029 } 0030 0031 #include "viewerplugincreatenote.moc" 0032 0033 #include "moc_viewerplugincreatenote.cpp"