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 "viewerplugincreatetodo.h"
0008 #include "viewerplugincreatetodointerface.h"
0009 #include <KActionCollection>
0010 #include <KPluginFactory>
0011 
0012 using namespace MessageViewer;
0013 K_PLUGIN_CLASS_WITH_JSON(ViewerPluginCreatetodo, "messageviewer_createtodoplugin.json")
0014 
0015 ViewerPluginCreatetodo::ViewerPluginCreatetodo(QObject *parent, const QList<QVariant> &)
0016     : MessageViewer::ViewerPlugin(parent)
0017 {
0018 }
0019 
0020 ViewerPluginInterface *ViewerPluginCreatetodo::createView(QWidget *parent, KActionCollection *ac)
0021 {
0022     MessageViewer::ViewerPluginInterface *view = new MessageViewer::ViewerPluginCreateTodoInterface(ac, parent);
0023     return view;
0024 }
0025 
0026 QString ViewerPluginCreatetodo::viewerPluginName() const
0027 {
0028     return QStringLiteral("create-todo");
0029 }
0030 
0031 #include "viewerplugincreatetodo.moc"
0032 
0033 #include "moc_viewerplugincreatetodo.cpp"