File indexing completed on 2024-06-16 04:42:42

0001 /*
0002    SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "sharetextplugin.h"
0008 #include "sharetextinterface.h"
0009 #include <KPluginFactory>
0010 
0011 K_PLUGIN_CLASS_WITH_JSON(ShareTextPlugin, "ruqola_sharetextplugin.json")
0012 
0013 ShareTextPlugin::ShareTextPlugin(QObject *parent, const QVariantList &)
0014     : PluginText(parent)
0015 {
0016 }
0017 
0018 ShareTextPlugin::~ShareTextPlugin() = default;
0019 
0020 PluginTextInterface *ShareTextPlugin::createInterface(QObject *parent)
0021 {
0022     auto shareTextInterface = new ShareTextInterface(parent);
0023     connect(shareTextInterface, &ShareTextInterface::errorMessage, this, &ShareTextPlugin::errorMessage);
0024     connect(shareTextInterface, &ShareTextInterface::successMessage, this, &ShareTextPlugin::successMessage);
0025     return shareTextInterface;
0026 }
0027 
0028 #include "sharetextplugin.moc"
0029 
0030 #include "moc_sharetextplugin.cpp"