File indexing completed on 2024-09-01 13:21:32
0001 /* 0002 SPDX-FileCopyrightText: 2013 Sebastian Kügler <sebas@kde.org> 0003 SPDX-FileCopyrightText: 2014 Alex Merry <alexmerry@kde.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0006 */ 0007 0008 #include "multiplugin.h" 0009 #include "kcoreaddons_debug.h" 0010 #include <QDebug> 0011 #include <kexportplugin.h> 0012 #include <kpluginfactory.h> 0013 0014 MultiPlugin1::MultiPlugin1(QObject *parent, const QVariantList &args) 0015 : QObject(parent) 0016 { 0017 qCDebug(KCOREADDONS_DEBUG) << "MultiPlugin1" << args; 0018 setObjectName(QLatin1String("MultiPlugin1")); 0019 } 0020 0021 MultiPlugin2::MultiPlugin2(QObject *parent, const QVariantList &args) 0022 : QObject(parent) 0023 { 0024 qCDebug(KCOREADDONS_DEBUG) << "MultiPlugin2" << args; 0025 setObjectName(QLatin1String("MultiPlugin2")); 0026 } 0027 0028 #if KCOREADDONS_BUILD_DEPRECATED_SINCE(5, 89) 0029 K_PLUGIN_FACTORY(MultiPluginFactory, 0030 registerPlugin<MultiPlugin1>(); 0031 registerPlugin<MultiPlugin2>(QLatin1String("secondary")); // keyword 0032 ) 0033 #else 0034 K_PLUGIN_FACTORY(MultiPluginFactory, registerPlugin<MultiPlugin1>();) 0035 #endif 0036 0037 #include "multiplugin.moc" 0038 0039 #include "moc_multiplugin.cpp"