File indexing completed on 2025-01-05 04:49:45

0001 /*
0002    SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "viewerpluginexpandurl.h"
0008 #include "viewerpluginexpandurlinterface.h"
0009 #include <KActionCollection>
0010 #include <KPluginFactory>
0011 
0012 using namespace MessageViewer;
0013 K_PLUGIN_CLASS_WITH_JSON(ViewerPluginExpandurl, "messageviewer_expandurlplugin.json")
0014 
0015 ViewerPluginExpandurl::ViewerPluginExpandurl(QObject *parent, const QList<QVariant> &)
0016     : MessageViewer::ViewerPlugin(parent)
0017 {
0018 }
0019 
0020 ViewerPluginInterface *ViewerPluginExpandurl::createView(QWidget *parent, KActionCollection *ac)
0021 {
0022     MessageViewer::ViewerPluginInterface *view = new MessageViewer::ViewerPluginExpandurlInterface(ac, parent);
0023     return view;
0024 }
0025 
0026 QString ViewerPluginExpandurl::viewerPluginName() const
0027 {
0028     return QStringLiteral("expandurl");
0029 }
0030 
0031 #include "viewerpluginexpandurl.moc"
0032 
0033 #include "moc_viewerpluginexpandurl.cpp"